冀苍鸾 发表于 2023-11-30 00:45:04

精选指标」通达信指标公式MACD绝杀指标公式源码

<p data-first-child></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p >公式源码</p><p >VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);</p><p >OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);</p><p >OBV2:=EMA(OBV1,3)-MA(OBV1,9);</p><p >OBV3:=EMA(IF(OBV2>0,OBV2,0),3);</p><p >MAC3:=MA(C,3);</p><p >SHORT:=12;LONG:=26;MID:=9;</p><p >DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)COLORYELLOW ;</p><p >DEA:EMA(DIF,MID)COLORFF9900 ;</p><p >MACD:=(DIF-DEA)*2;</p><p >STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),0,MACD,2,0),COLORYELLOW;</p><p >{持币:STICKLINE((SAR(10,2,20)>=H),MACD,0,1.5,0),COLORGREEN;</p><p >持股:STICKLINE((SAR(10,2,20)<=L),0,MACD,1.5,0),COLORYELLOW;}</p><p >吸:=XLPL.NOTEXT吸,COLORLIRED,CIRCLEDOT,LINETHICK3;</p><p >拉:=XLPL.NOTEXT拉,COLORRED,CIRCLEDOT,LINETHICK3;</p><p >派:=XLPL.NOTEXT派,COLORGREEN,CIRCLEDOT,LINETHICK3;</p><p >落:=XLPL.NOTEXT落,COLORWHITE,CIRCLEDOT,LINETHICK3;</p><p >STICKLINE(吸,0,MACD,1,0),COLORLIRED;</p><p >STICKLINE(拉,0,MACD,1,0),COLORRED;</p><p >STICKLINE(派,0,MACD,1,0),COLORGREEN;</p><p >STICKLINE(落,0,MACD,1,0),COLORWHITE;</p><p >入1:IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK1;</p><p >入2:IF(DIF<REF(DIF,1),DIF,DRAWNULL),COLOR00FF00,LINETHICK1;</p><p >关注我股市不迷路!</p>

流动532 发表于 2024-1-21 10:31:30

顶贴光荣!

亚伯拉汗藕 发表于 2024-1-28 01:27:08

找了很久的东西!

复春 发表于 2024-2-14 17:18:22

多谢分享!
页: [1]
查看完整版本: 精选指标」通达信指标公式MACD绝杀指标公式源码