通达信数浪划线指标(主图)《通达信+指标+公式+源码》

[复制链接]
查看153182 | 回复0 | 2022-12-9 11:19 | 显示全部楼层 |阅读模式
叶梵宸指标论坛免责声明
叶梵宸指标公式网(www.yefanchen.com)提醒您:本版块指标由市场整理提供 本指标不提供安装指导与使用方法 源码指标自行复制下载后 自行研究 股市是具有不确定性和不可预测性的,请正常对待和使用指标公式!如存在原创侵权问题 联系本平台客服 谢谢配合

划线指标都含有未来函数 供参考!

6392a9279aec5.png
6392a934ebfb9.png
6392a941dfe05.png
指标源码:
GT:ZIG(3,5),COLORAAAAAA;
P5:=ZIG(3,5);
N1:=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);
X1:=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);
P10:=ZIG(3,13);
N2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
X2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
P20:=ZIG(3,26);
N3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
X3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
PL40:=ZIG(3,55);
强一:=BARSLAST(P5<REF(P5,1));
弱一:=BARSLAST(P5>REF(P5,1));
强二 :=BARSLAST(P10<REF(P10,1));
弱二:=BARSLAST(P10>REF(P10,1));
强三:=BARSLAST(P20<REF(P20,1));
弱三:=BARSLAST(P20>REF(P20,1));
ZZ5:=IF(P10>REF(P10,1),COUNT(N1,强二 ),0);
ZD5:=IF(P10>REF(P10,1),COUNT(X1,强二 ),0);
DZ5:=IF(P10<REF(P10,1),COUNT(N1,弱二),0);
DD5:=IF(P10<REF(P10,1),COUNT(X1,弱二),0);
ZZ10:=IF(P20>REF(P20,1),COUNT(N2,强三),0);
ZD10:=IF(P20>REF(P20,1),COUNT(X2,强三),0);
DZ10:=IF(P20<REF(P20,1),COUNT(N2,弱三),0);
DD10:=IF(P20<REF(P20,1),COUNT(X2,弱三),0);
DRAWTEXT(N1 AND DZ5=1,LOW*0.97,'(Ⅰ)'),COLORFFFF00;
DRAWTEXT(X1 AND DD5=2,HIGH*1.03,'(Ⅱ)'),COLORFFFF00;
DRAWTEXT(N2 AND ZZ5=1,LOW*0.97,'(Ⅲ)'),COLORFFFF00;
DRAWTEXT(X1 AND P10>REF(P10,1) AND ZD5=1,HIGH*1.02,'⑴'),COLOR0000FF;
DRAWTEXT(N1 AND P10>REF(P10,1) AND ZZ5=2,LOW*0.98,'⑵'),COLOR0000FF;
DRAWTEXT(X1 AND P10>REF(P10,1) AND ZZ5=2,HIGH*1.02,'⑶'),COLOR0000FF;
DRAWTEXT(N1 AND P10>REF(P10,1) AND
ZZ5=3,LOW*0.98,'⑷'),COLOR0000FF;
DRAWTEXT(X2 AND P20>REF(P20,1) AND
ZD10=1,HIGH*1.02,'⑸'),COLOR0000FF;
DRAWTEXT(N2 AND DZ10=1,LOW*0.94,'【A】'),COLOR00FF00;
DRAWTEXT(X2 AND DD10=2,HIGH*1.05,'【B】'),COLOR00FF00;
DRAWTEXT(N3 AND ZZ10=1,LOW*0.94,'【C】'),COLOR00FF00;
DRAWTEXT(X2 AND P20>REF(P20,1) AND ZD10=1,HIGH*1.04,'①'),COLOR00FFFF;
DRAWTEXT(N2 AND P20>REF(P20,1) AND ZZ10=2,LOW*0.96,'②补仓'),COLOR00FFFF;
DRAWTEXT(X2 AND P20>REF(P20,1) AND ZD10=2 OR (ZD10=0 OR ZD10=2) AND X2,HIGH*1.04,'③'),COLOR00FFFF;
DRAWTEXT(N2 AND P20>REF(P20,1) AND ZZ10=3,LOW*0.96,'④持股'),COLOR00FFFF;
折线:ZIG(3,20);
前峰值:=PEAK(3,20,1);
前谷值:=TROUGH(3,20,1);
DRAWNUMBER(折线>REF(折线,1) AND REF(折线,1)<REF(折线,2),REF(C,1),-(前峰值-REF(C,1))/前峰值*100);
DRAWNUMBER(折线<REF(折线,1) AND REF(折线,1)>REF(折线,2),REF(C,1),(REF(C,1)-前谷值)/前谷值*100);

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

本版积分规则