N1:=5;
N2:=5;
红线:MA(C,21),COLORRED,LINETHICK2;
黄线:MA(C,13),COLORYELLOW,NODRAW;
白线:(EMA(C,N1)*7+EMA(C,N2)*3)/10,COLORWHITE,LINETHICK2;
STICKLINE(白线>红线,红线,白线,0.1,1)COLOR0000FF;
STICKLINE(白线<红线,红线,白线,0.1,1),COLORGREEN;
JJ:=(CLOSE+HIGH+LOW)/3;
E:=EMA(JJ,5);
D:=REF(E,1);
买入:CROSS(白线,红线),COLORRED,NODRAW;
卖出:CROSS(黄线,白线),COLORFFAA00,NODRAW;
STICKLINE(E>D,E,D,3,0),COLORFF00FF;
DRAWICON(买入,H+0.03,1);
DRAWICON(卖出,H+0.03,2);
{
选股公式:
N1:=5;
N2:=5;
红线:=MA(C,21);
白线:=(EMA(C,N1)*7+EMA(C,N2)*3)/10;
CROSS(白线,红线);
}