A股小妖女 发表于 2023-5-10 23:29:31

通达信“动能短线副图”指标公式和选股公式——指标分享?,胜率54.28%



公式如下:
OSC:=C-REF(MA(C,13),5);分界:=MA(OSC,8);DIFF:=EMA(OSC,12)-EMA(OSC,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);ZF:=IF(C>REF(H,1),EMA(L,5),IF(C0,0,MACD*4,0,0),COLOR0088FF;STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD*4,0,0),COLORFF88FF;STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD*4,0,0),COLORFFCCFF;STICKLINE(OSC=REF(OSC,1),OSC,REF(OSC,1),3,1),COLORRED;STICKLINE(BARSLAST(XH)<2,OSC,REF(OSC,1),3,1),COLORRED;STICKLINE(XH,OSC,REF(OSC,1),2,0),COLORFF00FF;STICKLINE(OSC<分界,OSC,REF(OSC,1),3,1),COLORFFFF00;黄逃顶白离场:IF(1=1,DRAWNULL,DRAWNULL),COLORYELLOW;梅红启动:IF(1=1,DRAWNULL,DRAWNULL),COLORMAGENTA;红持股兰空仓:IF(1=1,DRAWNULL,DRAWNULL),COLORFFA900;A1:=BARSLAST(REF(CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9)),1));B1:=REF(C,A1+1)>C AND REF("MACD.DIF"(12,26,9),A1+1)<"MACD.DIF"(12,26,9) AND CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9));MACD底背离:=FILTER(B1>0,5);DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信公众号:彩虹桥投资学习'),COLORRED;DRAWTEXT(MACD底背离,-1.68,'M底'),COLOR00FF00;C1:=BARSLAST(REF(CROSS("MACD.DEA"(12,26,9),"MACD.DIF"(12,26,9)),1));D11:=REF(C,C1+1)"MACD.DIF"(12,26,9) AND CROSS("MACD.DEA"(12,26,9),"MACD.DIF"(12,26,9));MACD顶背离:=FILTER(D11>0,5);DRAWTEXT(MACD顶背离,2.28,'M顶'),COLOR00DD00;A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));KDJ底背离:=FILTER(B2>0,5);DRAWTEXT(KDJ底背离,-1.98,'K底'),COLOR00FFFF;C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D22:=REF(C,C2+1)"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));KDJ顶背离:=FILTER(D22>0,5);DRAWTEXT(KDJ顶背离,1.98,'K顶'),COLOR0066FF;A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));RSI底背离:=FILTER(B3>0,5);DRAWTEXT(RSI底背离,-2.28,'R底'),COLORFFCC66;C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=REF(C,C3+1)"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));RSI顶背离:=FILTER(D3>0,5);DRAWTEXT(RSI顶背离,1.68,'R顶'),COLORFF00FF;

信号有几个,就做一个“K底”的选股吧。

选股公式如下 :
AB:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));AA:=REF(C,AB+1)>C AND REF("KDJ.K"(9,3,3),AB+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));FILTER(AA>0,5);

测试一下,平仓规则是,不论盈亏,以持股5天后平仓为条件



胜率54.28%

END

阿拉木江枰 发表于 2023-5-30 15:16:12

只为积分!感谢!

我只欣赏你伪 发表于 2023-6-5 09:05:16

不知该说些什么。。。。。。就是谢谢

幸福教主浦 发表于 2023-8-16 23:09:30

沙发!沙发!

WDIAQG 发表于 2023-8-22 13:24:17

顶贴光荣!

恒信客服赜 发表于 2023-8-28 09:33:48

点赞楼主!
页: [1]
查看完整版本: 通达信“动能短线副图”指标公式和选股公式——指标分享?,胜率54.28%