您现在的位置:程序化交易>> 股票公式>> 通达信>> 通达信公式>>正文内容

神奇九转主图指标 公式 源码[通达信公式]

指标代码分析及使用参考建议:

 

根据给出的代码,这是一种基于价格序列的技术分析指标。下面是对指标思路的简要总结和操作建议:
 
1. 指标思路:
   - A、B和C表示价格序列中的不同条件。
   - T表示满足条件AA的最后一根K线的位置。
   - M表示满足条件T和A的买入信号。M1到M7分别表示满足条件T和A的连续买入信号。
   - N表示满足条件T和A的卖出信号。N1到N7分别表示满足条件T和A的连续卖出信号。
 
2. 操作建议:
   - 当出现买入信号M时,可以考虑开仓做多。
   - 当出现连续买入信号M1到M7时,可以逐步加仓做多。
   - 当出现卖出信号N时,可以考虑平仓离场。
   - 当出现连续卖出信号N1到N7时,可以考虑逐步减仓或者全仓平仓。
 
需要注意的是,以上只是根据代码给出的指标逻辑进行的简要总结和操作建议,并未考虑具体的市场情况和个股特点。在实际操作中,建议结合其他技术分析工具、基本面分析等因素进行综合判断,并制定详细的风险控制和资金管理策略。同时,也建议在模拟或者小额交易验证该指标的可行性和适用性。

 

源码:

 

A1:=C>=REF(C,4);A:=C<REF(C,4);AA:=C<REF(C,4) AND REF(A1,1);T:=BARSLAST(AA)NODRAW;M:=(T=0 AND REFX(T=1 AND NOT(A),1)) OR (REFX(T=2 AND NOT(A),2)) OR (REFX(T=3 AND NOT(A),3)) OR (REFX(T=4 AND NOT(A),4)) OR (REFX(T=5 AND NOT(A),5))OR (REFX(T=6 AND NOT(A),6)) OR (REFX(T=7 AND NOT(A),7)) OR (REFX(T=8 AND NOT(A),8));M1:=T=1 AND REFX(T=2 AND NOT(A),1) OR (REFX(T=3 AND NOT(A),2)) OR (REFX(T=4 AND NOT(A),3)) OR (REFX(T=5 AND NOT(A),4)) OR (REFX(T=6 AND NOT(A),5))OR (REFX(T=7 AND NOT(A),6)) OR (REFX(T=8 AND NOT(A),7));M2:=T=2 AND REFX(T=3 AND NOT(A),1) OR (REFX(T=4 AND NOT(A),2)) OR (REFX(T=5 AND NOT(A),3)) OR (REFX(T=6 AND NOT(A),4)) OR (REFX(T=7 AND NOT(A),5)) OR (REFX(T=8 AND NOT(A),6));M3:=T=3 AND REFX(T=4 AND NOT(A),1)OR (REFX(T=5 AND NOT(A),2)) OR (REFX(T=6 AND NOT(A),3)) OR (REFX(T=7 AND NOT(A),4)) OR (REFX(T=8 AND NOT(A),5));M4:=T=4 AND REFX(T=5 AND NOT(A),1) OR (REFX(T=6 AND NOT(A),2)) OR (REFX(T=7 AND NOT(A),3)) OR (REFX(T=8 AND NOT(A),4));M5:=T=5 AND REFX(T=6 AND NOT(A),1) OR (REFX(T=7 AND NOT(A),2)) OR (REFX(T=8 AND NOT(A),3));M6:=T=6 AND REFX(T=7 AND NOT(A),1) OR (REFX(T=8 AND NOT(A),2));M7:=T=7 AND REFX(T=8 AND NOT(A),1);N:=T=1 AND REF(T=0 AND AA,1) AND A;N1:=T=2 AND REF(N,1) AND A;N2:=T=3 AND REF(N1,1) AND A;N3:=T=4 AND REF(N2,1) AND A;N4:=T=5 AND REF(N3,1) AND A;N5:=T=6 AND REF(N4,1) AND A;N6:=T=7 AND REF(N5,1) AND A;N7:=T=8 AND REF(N6,1) AND A;DRAWTEXT(T=0,H*1.02,'1')COLORGREEN;DRAWTEXT(N,H*1.02,'2')COLORGREEN;DRAWTEXT(N1,H*1.02,'3')COLORGREEN;DRAWTEXT(N2,H*1.02,'4')COLORGREEN;DRAWTEXT(N3,H*1.02,'5')COLORGREEN;DRAWTEXT(N4,H*1.02,'6')COLORGREEN;DRAWTEXT(N5,H*1.02,'7')COLORGREEN;DRAWTEXT(N6,H*1.02,'8')COLORGREEN;DRAWTEXT(N7,H*1.02,'9')COLORGREEN;DRAWICON(N7,H*1.04,1)COLORGREEN;DRAWTEXT(M,H*1.02,'1')COLORBLACK;DRAWTEXT(M1,H*1.02,'2')COLORBLACK;DRAWTEXT(M2,H*1.02,'3')COLORBLACK;DRAWTEXT(M3,H*1.02,'4')COLORBLACK;DRAWTEXT(M4,H*1.02,'5')COLORBLACK;DRAWTEXT(M5,H*1.02,'6')COLORBLACK;DRAWTEXT(M6,H*1.02,'7')COLORBLACK;DRAWTEXT(M7,H*1.02,'8')COLORBLACK;B1:=C<=REF(C,4);B:=C>REF(C,4);BB:=C>REF(C,4) AND REF(B1,1);T1:=BARSLAST(BB)NODRAW;M111:=(T1=0 AND REFX(T1=1 AND NOT(B),1)) OR (REFX(T1=2 AND NOT(B),2)) OR (REFX(T1=3 AND NOT(B),3)) OR (REFX(T1=4 AND NOT(B),4)) OR (REFX(T1=5 AND NOT(B),5))OR (REFX(T1=6 AND NOT(B),6)) OR (REFX(T1=7 AND NOT(B),7)) OR (REFX(T1=8 AND NOT(B),8));M11:=T1=1 AND REFX(T1=2 AND NOT(B),1) OR (REFX(T1=3 AND NOT(B),2)) OR (REFX(T1=4 AND NOT(B),3)) OR (REFX(T1=5 AND NOT(B),4)) OR (REFX(T1=6 AND NOT(B),5))OR (REFX(T1=7 AND NOT(B),6)) OR (REFX(T1=8 AND NOT(B),7));M22:=T1=2 AND REFX(T1=3 AND NOT(B),1) OR (REFX(T1=4 AND NOT(B),2)) OR (REFX(T1=5 AND NOT(B),3)) OR (REFX(T1=6 AND NOT(B),4)) OR (REFX(T1=7 AND NOT(B),5)) OR (REFX(T1=8 AND NOT(B),6));M33:=T1=3 AND REFX(T1=4 AND NOT(B),1)OR (REFX(T1=5 AND NOT(B),2)) OR (REFX(T1=6 AND NOT(B),3)) OR (REFX(T1=7 AND NOT(B),4)) OR (REFX(T1=8 AND NOT(B),5));M44:=T1=4 AND REFX(T1=5 AND NOT(B),1) OR (REFX(T1=6 AND NOT(B),2)) OR (REFX(T1=7 AND NOT(B),7)) OR (REFX(T1=8 AND NOT(B),4));M55:=T1=5 AND REFX(T1=6 AND NOT(B),1) OR (REFX(T1=7 AND NOT(B),2)) OR (REFX(T1=8 AND NOT(B),3));M66:=T1=6 AND REFX(T1=7 AND NOT(B),1) OR (REFX(T1=8 AND NOT(B),2));M77:=T1=7 AND REFX(T1=8 AND NOT(B),1);N111:=T1=1 AND REF(T1=0 AND BB,1) AND B;N11:=T1=2 AND REF(N111,1) AND B;N22:=T1=3 AND REF(N11,1) AND B;N33:=T1=4 AND REF(N22,1) AND B;N44:=T1=5 AND REF(N33,1) AND B;N55:=T1=6 AND REF(N44,1) AND B;N66:=T1=7 AND REF(N55,1) AND B;N77:=T1=8 AND REF(N66,1) AND B;DRAWTEXT(T1=0,H*1.02,'1')COLOR9900CC;DRAWTEXT(N111,H*1.02,'2')COLOR9900CC;DRAWTEXT(N11,H*1.02,'3')COLOR9900CC;DRAWTEXT(N22,H*1.02,'4')COLOR9900CC;DRAWTEXT(N33,H*1.02,'5')COLOR9900CC;DRAWTEXT(N44,H*1.02,'6')COLOR9900CC;DRAWTEXT(N55,H*1.02,'7')COLOR9900CC;DRAWTEXT(N66,H*1.02,'8')COLOR9900CC;DRAWTEXT(N77,H*1.02,'9')COLOR9900CC;DRAWICON(N77,H*1.04,2);{程序化久久公式网}DRAWTEXT(M111,H*1.02,'1')COLORBLACK;DRAWTEXT(M11,H*1.02,'2')COLORBLACK;DRAWTEXT(M22,H*1.02,'3')COLORBLACK;DRAWTEXT(M33,H*1.02,'4')COLORBLACK;DRAWTEXT(M44,H*1.02,'5')COLORBLACK;DRAWTEXT(M55,H*1.02,'6')COLORBLACK;DRAWTEXT(M66,H*1.02,'7')COLORBLACK;DRAWTEXT(M77,H*1.02,'8')COLORBLACK;

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容