MA5:EMA(CLOSE,5),LINETHICK2,COLORRED;
MA10:EMA(CLOSE,10),LINETHICK2,COLORYELLOW;
NOW:CLOSE,COLORWHITE,NODRAW;
MAA: (C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORGREEN,NODRAW;
LL:=EMA(C,2),COLORRED;
EE:=EMA(SLOPE(C,9)*20+C,37);
买:=CROSS(LL,EE);
卖:=CROSS(EE,LL);
DRAWICON(买,L*0.97,1);
DRAWTEXT(买,L*0.95,'买入'),COLORRED;
DRAWICON(卖,H*1.03,2);
DRAWTEXT(卖,H*1.08,'卖出'),COLORGREEN;
STICKLINE(LL =EE,LOW,HIGH,0.01,0),COLOR0000DD;
STICKLINE(LL =EE,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(LL =EE,LOW,HIGH,0.01,0),COLOR0000DD;
STICKLINE(LL =EE,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(LL EE,LOW,HIGH,0.01,0),COLORFFDD00;
STICKLINE(LL EE,CLOSE,OPEN,2,0),COLORFFFF00;
STICKLINE(CROSS(LL,EE),OPEN,CLOSE,2.5,0),COLORYELLOW;
STICKLINE(CROSS(EE,LL),OPEN,CLOSE,2.5,0),COLORWHITE;