刘冠华 发表于 2023-11-4 07:15:31

通达信波段转换优化副图指标源码公式分享

<p data-first-child >大家好,我是<a href="https://link.zhihu.com/?target=https%3A//mp.weixin.qq.com/mp/profile_ext%3Faction%3Dhome%26__biz%3DMzA5NTE0MjE3OA%3D%3D%23wechat_redirect" class=" wrap external" target="_blank" rel="nofollow noreferrer">追牛抓妖道一</a>,指标自己已经做了优化,系统化软件请参考<a href="https://link.zhihu.com/?target=https%3A//mp.weixin.qq.com/s%3F__biz%3DMzA5NTE0MjE3OA%3D%3D%26mid%3D2648593813%26idx%3D1%26sn%3Defcc332e9846d6c654ffc2393ff2e796%26chksm%3D88691dd8bf1e94ceeb83097bd8383a6188b3a444869eaa17cfb98a9818712e4792fdef6b8204%26token%3D1956372295%26lang%3Dzh_CN%23rd" class=" wrap external" target="_blank" rel="nofollow noreferrer">追牛系统</a>!</p><p >这里发的指标均是通达信电脑版软件指标公式,手机软件有的可能不通用,但大部分通用,具体没测试过。复制指标源码,新建粘贴到软件保存即可。</p><p >指标说明:</p><p ><b>通达信波段转换优化副图,段底买进段顶抛,随波加减不可少;走势底部需确认,走势顶部尽早跑</b></p><p >指标例图:</p><p ><b>指标源:</b></p><p ><b>P:=25;</b></p><p ><b>S:=8;</b></p><p ><b>M:=5;</b></p><p ><b>M1:=14;</b></p><p ><b>M2:=14;</b></p><p ><b>M3:=9;</b></p><p ><b>DRAWTEXT_FIX(1,0.01,0,0,'段底买进段顶抛,随波加减不可少;走势底部需确认,走势顶部尽早跑;心态平和看涨跌,股海淘金乐逍遥,追牛抓妖道一 ABC321410!'),COLORFF00FF;</b></p><p ><b>TYP:= (HIGH + OPEN*2 +2*LOW + CLOSE)/6;</b></p><p ><b>CCI:=(TYP-MA(TYP,M1))/(0.015*AVEDEV(TYP,M1));</b></p><p ><b>WR:=(50-100*(HHV(HIGH,M2)-CLOSE)/(HHV(HIGH,M2)-LLV(LOW,M2)))*3;</b></p><p ><b>RSV:=(CLOSE-LLV(LOW,M3))/(HHV(HIGH,M3)-LLV(LOW,M3))*100;</b></p><p ><b>K:=SMA(RSV,3,1);</b></p><p ><b>D:=SMA(K,3,1);</b></p><p ><b>J:=(3*K-2*D-50)*3;</b></p><p ><b>PJZ:=(CCI+WR+J)/3;</b></p><p ><b>DIFF1:=EMA(EMA(PJZ,S),3)*EMA(EMA(EMA(CLOSE,S),3),3)/100 - EMA(EMA(PJZ,P),5)*EMA(EMA(EMA(CLOSE,P),5),5)/100;</b></p><p ><b>DEA1:=EMA(EMA(DIFF1,M),5);</b></p><p ><b>CMACD:=2*(DIFF1-DEA1);</b></p><p ><b>CCIL:=(TYP-MA(TYP,M1*25))/(0.015*AVEDEV(TYP,M1*25));</b></p><p ><b>WRL:=(50-100*(HHV(HIGH,25*M2)-CLOSE)/(HHV(HIGH,25*M2)-LLV(LOW,25*M2)))*3;</b></p><p ><b>RSVL:=(CLOSE-LLV(LOW,25*M3))/(HHV(HIGH,25*M3)-LLV(LOW,25*M3))*100;</b></p><p ><b>KL:=SMA(RSV,25*3,1);</b></p><p ><b>DL:=SMA(KL,3*25,1);</b></p><p ><b>JL:=(3*KL-2*DL-50)*3;</b></p><p ><b>PJZL:=CCIL+WRL+JL;</b></p><p ><b>CDIFFL:=EMA(EMA(PJZL,S*25),3)*EMA(EMA(EMA(CLOSE,S*25),3),3)/100 - EMA(EMA(PJZL,P*25),5)*EMA(EMA(EMA(CLOSE,P*25),5),5)/100;</b></p><p ><b>CDEAL:=EMA(EMA(CDIFFL,M*25),5);</b></p><p ><b>CMACDL:=(CDIFFL-CDEAL);</b></p><p ><b>STICKLINE(CMACDL>0,0,CMACDL,5,0),COLOR440044;</b></p><p ><b>STICKLINE(CMACDL<0,0,CMACDL,5,0),COLOR440044;</b></p><p ><b>CCIS:=(TYP-MA(TYP,M1*5))/(0.015*AVEDEV(TYP,M1*5));</b></p><p ><b>WRS:=(50-100*(HHV(HIGH,5*M2)-CLOSE)/(HHV(HIGH,5*M2)-LLV(LOW,5*M2)))*3;</b></p><p ><b>RSVS:=(CLOSE-LLV(LOW,5*M3))/(HHV(HIGH,5*M3)-LLV(LOW,5*M3))*100;</b></p><p ><b>KSS:=SMA(RSVS,3*5,1);</b></p><p ><b>DSS:=SMA(KSS,3*5,1);</b></p><p ><b>JS:=(3*KSS-2*DSS-50)*3;</b></p><p ><b>PJZS:=CCIS+WRS+JS;</b></p><p ><b>CDIFFS:=EMA(EMA(PJZS,S*5),3)*EMA(EMA(EMA(CLOSE,S*5),3),3)/100 - EMA(EMA(PJZS,P*5),5)*EMA(EMA(EMA(CLOSE,P*5),5),5)/100;</b></p><p ><b>CDEAS:=EMA(EMA(CDIFFS,M*5),5);</b></p><p ><b>CMACDS:=(CDIFFS-CDEAS);</b></p><p ><b>STICKLINE(CMACDS>0,0,CMACDS,0.1,0),COLOR444400;</b></p><p ><b>STICKLINE(CMACDS<0,0,CMACDS,0.1,0),COLOR444400;</b></p><p ><b>MACDHS:=IF(CMACD>0 AND CMACD>=REF(CMACD,1),CMACD,0);</b></p><p ><b>MACDHX:=IF(CMACD>0 AND CMACD<=REF(CMACD,1),CMACD,0);</b></p><p ><b>MACDLX:=IF(CMACD<0 AND CMACD<=REF(CMACD,1),CMACD,0);</b></p><p ><b>MACDLS:=IF(CMACD<0 AND CMACD>=REF(CMACD,1),CMACD,0);</b></p><p ><b>STICKLINE(MACDHS>0,0,CMACD,2.7,0),COLOR0000BB;</b></p><p ><b>STICKLINE(MACDHS>0,0,CMACD,2.4,0),COLOR0000CC;</b></p><p ><b>STICKLINE(MACDHS>0,0,CMACD,2.1,0),COLOR0011CC;</b></p><p ><b>STICKLINE(MACDHS>0,0,CMACD,1.8,0),COLOR1122DD;</b></p><p ><b>STICKLINE(MACDHS>0,0,CMACD,1.5,0),COLOR2233DD;</b></p><p ><b>STICKLINE(MACDHS>0,0,CMACD,1.2,0),COLOR3344EE;</b></p><p ><b>STICKLINE(MACDHS>0,0,CMACD,0.9,0),COLOR4455EE;</b></p><p ><b>STICKLINE(MACDHS>0,0,CMACD,0.6,0),COLOR5566FF;</b></p><p ><b>STICKLINE(MACDHS>0,0,CMACD,0.3,0),COLOR6677FF;</b></p><p ><b>STICKLINE(MACDHX>0,0,CMACD,2.7,0),COLOR0077BB;</b></p><p ><b>STICKLINE(MACDHX>0,0,CMACD,2.4,0),COLOR0088CC;</b></p><p ><b>STICKLINE(MACDHX>0,0,CMACD,2.1,0),COLOR0099CC;</b></p><p ><b>STICKLINE(MACDHX>0,0,CMACD,1.8,0),COLOR00AADD;</b></p><p ><b>STICKLINE(MACDHX>0,0,CMACD,1.5,0),COLOR00BBDD;</b></p><p ><b>STICKLINE(MACDHX>0,0,CMACD,1.2,0),COLOR00CCEE;</b></p><p ><b>STICKLINE(MACDHX>0,0,CMACD,0.9,0),COLOR00DDEE;</b></p><p ><b>STICKLINE(MACDHX>0,0,CMACD,0.6,0),COLOR00EEFF;</b></p><p ><b>STICKLINE(MACDHX>0,0,CMACD,0.3,0),COLOR00FFFF;</b></p><p ><b>STICKLINE(MACDLX<0,CMACD,0,2.7,0),COLOR770000;</b></p><p ><b>STICKLINE(MACDLX<0,CMACD,0,2.4,0),COLOR881100;</b></p><p ><b>STICKLINE(MACDLX<0,CMACD,0,2.1,0),COLOR992200;</b></p><p ><b>STICKLINE(MACDLX<0,CMACD,0,1.8,0),COLORAA3300;</b></p><p ><b>STICKLINE(MACDLX<0,CMACD,0,1.5,0),COLORBB4400;</b></p><p >(指标<span class="nolink">源代码</span>只有一半,完整代码在 <a href="https://link.zhihu.com/?target=https%3A//mp.weixin.qq.com/mp/profile_ext%3Faction%3Dhome%26__biz%3DMzA5NTE0MjE3OA%3D%3D%23wechat_redirect" class=" wrap external" target="_blank" rel="nofollow noreferrer">追牛抓妖道一</a> 里面)</p><p >↓↓↓</p><p >其他更多精品指标放在了我的公众号:<a href="https://link.zhihu.com/?target=https%3A//mp.weixin.qq.com/mp/profile_ext%3Faction%3Dhome%26__biz%3DMzA5NTE0MjE3OA%3D%3D%23wechat_redirect" class=" wrap external" target="_blank" rel="nofollow noreferrer">追牛抓妖道一</a> 里面,研究学习测试的朋友去自取即可,全部无<span class="nolink">未来函数</span>。</p><p >免责声明:本号提供的所有相关资讯、个人观点、技术战法等,只供学习参考,不构成任何买卖操作,不保证任何收益。股友应牢记股市有风险,投资需谨慎!</p><p >后面分享更多新指标新经验免费分享大家......</p>

丽人至上再 发表于 2023-11-30 22:40:20

不错不错,楼主您辛苦了。。。

唐伯狼乌 发表于 2024-3-22 17:24:17

路过,学习下

梦回忆回p 发表于 2024-3-25 18:47:54

看帖回帖是美德!:lol
页: [1]
查看完整版本: 通达信波段转换优化副图指标源码公式分享