MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20),LINETHICK3,colorgreen;
DRAWICON(ISLASTBAR,C,41);
IF(MA20>REF(MA20,1),MA20,DRAWNULL),LINETHICK3,colorred;
叉:=10*MA10-REF(C,9)+2*REF(C,4)-10*MA5;
金叉1:=CROSS(MA5,MA10);
金叉2:=CROSS(MA5,MA20);
金叉3:=CROSS(MA10,MA20);
死叉1:=CROSS(MA10,MA5);
死叉2:=CROSS(MA20,MA5);
死叉3:=CROSS(MA20,MA10);
DRAWTEXT(金叉1,CONST(MA5),'1'),colorred;
DRAWTEXT(金叉2,CONST(MA5),'2'),colorred;
DRAWTEXT(金叉3,CONST(MA5),'3'),colorred;
DRAWTEXT(死叉1,CONST(MA5),'1'),colorgreen;
DRAWTEXT(死叉2,CONST(MA5),'2'),colorgreen;
DRAWTEXT(死叉3,CONST(MA5),'3'),colorgreen;
DRAWICON(CURRBARSCOUNT=20+1,C/0.92,40);
DRAWICON(CURRBARSCOUNT=10+1,C/0.92,40);
DRAWICON(CURRBARSCOUNT=5+1,C/0.92,40);
202108202131.jpg
|