最佳买时编一个预警指标

[复制链接]
查看56 | 回复0 | 2022-7-24 07:22:46 | 显示全部楼层 |阅读模式

最佳买时源码

原代码如下:
 VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
 VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
 VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
 VAR6:=(VAR3+VAR4+VAR5)/3;
 VAR7:=EMA(VAR6,5);
 指标:=EMA(EMA(VAR3,5),5)*3;
 VAR8:=IF(VAR6<=-20,10,0);
 VAR9:=HHV(VAR8,10);
 VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
 K:=EMA(VAR7,5)*2,  COLORFF00FF;
 D:=EMA(K,5),  COLORWHITE;
 J:=K*3-D*2, COLORYELLOW;
 换手:=VOL/CAPITAL*100;
 VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)<=REF(ZIG(3,5),3));
 VARC=1,COLORYELLOW;
 DRAWTEXT(VARC,1.3,'*最佳买 '),COLORYELLOW;

101811901.jpg

101811901.jpg

===================================================================================

发出最佳买时编一个预警指标;

最佳买:(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG (3,5),2)<=REF(ZIG(3,5),3));
 
注意未来函数ZIG

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则