X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
DRAWICON(CROSS(X2,X3),L*0.98,"buy");
DRAWICON(CROSS(X3,X2),H*1.02,"sell");
STICKLINE(X2>=X3,LOW,HIGH,1,0),colorred;
STICKLINE(X2>=X3,CLOSE,OPEN,10,1),colorred;
STICKLINE(X2<X3,LOW,HIGH,1,0),colorgreen;
STICKLINE(X2<X3,CLOSE,OPEN,10,1),colorgreen;
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,6,0),coloryellow;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,6,0),colorblue;
指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick1,ColorFFffFF;
界: MA(CLOSE,27),linethick1,Color00FFFF;
DRAWTEXT(CROSS(指导线,界),界,'↑★'),ALIGN1,VALIGN0,colorred;
DRAWTEXT(CROSS(界,指导线),界,'↓★'),ALIGN1,colorcyn;