FSHORT:=30;
FLONG:=60;
乾坤线:EMA(CLOSE,FLONG),COLORYELLOW,LINETHICK2;
操盘线:=EMA(CLOSE,FSHORT);
多线:IFF(操盘线>乾坤线,操盘线 ,DRAWNULL),COLORRED,LINETHICK2;
空线:IFF(操盘线<=乾坤线,操盘线,DRAWNULL),COLORBLUE,LINETHICK2;
买信号:=REF(操盘线,1)<=REF(乾坤线,1) AND 操盘线>乾坤线;
卖信号:=REF(操盘线,1)>=REF(乾坤线,1) AND 操盘线<乾坤线;
DRAWICON(买信号,乾坤线,1);
DRAWICON(卖信号,操盘线,2);
14O2Q52c50-53251.jpg
|