MA5:MA(CLOSE,5),DOTLINE; MA10:MA(CLOSE,10),DOTLINE; VAR1:=BARSLAST(crOSS(MA10,MA5)); VAR2:=BARSLAST(CROSS(MA5,MA10)); VAR18:=FINDHIGHBARS(HIGH,VAR1+1,5,1); VAR19:=FINDLOWBARS(LOW,VAR2+1,5,1); A:REF(H,BARSLAST(CURRBARSCOUNT=CONST(VAR18)+1)),COLORRED; B:REF(L,BARSLAST(CURRBARSCOUNT=CONST(VAR19)+1)),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=CONST(VAR18)+1,H,'死叉5天前最高'),COLORYELLOW,DRAWABOVE; DRAWTEXT(CURRBARSCOUNT=CONST(VAR19)+1,L,' 金叉5天前最低'),COLORYELLOW,DRAWABOVE; DRAWTEXT(CURRBARSCOUNT=CONST(VAR1)+1,MA5,'死叉'),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=CONST(VAR2)+1,MA5,'金叉'),COLORRED; DRAWICON(CONST(VAR18)>CONST(VAR19) AND COUNT(C>A,VAR18)=1 AND C>A AND C/B<1.2,H,1);
移动端首页 | PC端
© by gszx.com.cn Mobile Web
MA5:MA(CLOSE,5),DOTLINE;
MA10:MA(CLOSE,10),DOTLINE;
VAR1:=BARSLAST(crOSS(MA10,MA5));
VAR2:=BARSLAST(CROSS(MA5,MA10));
VAR18:=FINDHIGHBARS(HIGH,VAR1+1,5,1);
VAR19:=FINDLOWBARS(LOW,VAR2+1,5,1);
A:REF(H,BARSLAST(CURRBARSCOUNT=CONST(VAR18)+1)),COLORRED;
B:REF(L,BARSLAST(CURRBARSCOUNT=CONST(VAR19)+1)),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=CONST(VAR18)+1,H,'死叉5天前最高'),COLORYELLOW,DRAWABOVE;
DRAWTEXT(CURRBARSCOUNT=CONST(VAR19)+1,L,' 金叉5天前最低'),COLORYELLOW,DRAWABOVE;
DRAWTEXT(CURRBARSCOUNT=CONST(VAR1)+1,MA5,'死叉'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=CONST(VAR2)+1,MA5,'金叉'),COLORRED;
DRAWICON(CONST(VAR18)>CONST(VAR19) AND COUNT(C>A,VAR18)=1 AND C>A AND C/B<1.2,H,1);