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);
通达信优化老鸭头主图指标公式
本文来自网络,不代表公式指标立场,转载请注明出处:https://www.gszb.top/108844.html