通达信优化老鸭头主图指标
2024-11-28 10:02:00来源:本站整理浏览:735
通达信优化老鸭头主图指标
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);
- 上一篇公式:通达信启爆擒牛副图指标 跟踪主力启动主升
- 下一篇公式:通达信济安线战法主图指标