FSHORT:=21;
FLONG:=5;
多空线:EMA(CLOSE,FLONG),COLORWHITE,LINETHICK2;
操盘线:=EMA(CLOSE,FSHORT);{股票指标网}
多线:IFF(操盘线>多空线,操盘线 ,DRAWNULL),COLORGREEN,LINETHICK2;
空线:IFF(操盘线<=多空线,操盘线,DRAWNULL),COLORRED,LINETHICK2;
卖信号:=REF(操盘线,1)<=REF(多空线,1) AND 操盘线>多空线;
买信号:=REF(操盘线,1)>=REF(多空线,1) AND 操盘线<多空线;
DRAWICON(买信号,多空线,1);
DRAWICON(卖信号,操盘线,2);