2023MACD背离买卖 神奇数字趋势《通达信+指标+公式+副图+源码》

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

G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=1;
DIF:IF(GUP1=1,MACD.DIF,0);
DEA:IF(GUP1=1,MACD.DEA,0);
DRAWTEXT_FIX(GUP1=0,0,0.01,0,27);
MACDDIF-DEA)*2,COLORSTICK;
DRAWICON(REF(DIF,1)<REF(DIF,2) AND DIF>REF(DIF,1) AND DIF<0 AND DIF<DEA,DIF*1.1,1),COLORRED;
GUP2:=BARSLAST(REF(MACD,1)<0 AND MACD>0);
GUP3:=LLVBARS(MACD,GUP2+20);
GUP4:=IF(GUP3>GUP2,REF(MACD,GUP3),0);
GUP5:=MACD<0 ANd MACD>GUP4 AND G2=LLV(G2,GUP2+20) AND GUP4<0;
GUP6:=REF(GUP5,1)=1 AND MACD>REF(MACD,1) AND REF(DIF,GUP3)<0 AND MACD<0;
DRAWICON(GUP6,MACD*1.2,25);
GUP7:=HHVBARS(MACD,GUP2+20);
GUP8:=IF(GUP7>GUP2,REF(MACD,GUP7),0);
GUP9:=MACD>0 AND MACD<GUP8 AND G4=HHV(G4,GUP2+20) AND GUP8>0;
GUP10:=REF(GUP9,1)=1 AND MACD>REF(MACD,1) AND REF(DIF,GUP7)>0;
DRAWICON(GUP10,MACD*1.2,15);
GUP11:=G1/MA(G1,40)*100<78;
GUP12:=G1/Ma(G1,60)*100<74;
GUP13:=G4>G2*1.051;
GUP14:=GUP13 AND COUNT(GUP13,5)>1;
GUP15:=IF(GUP14 AND (GUP11 OR GUP12),2,0);
GUP16:=G1/REF(G1,25)<=1.1;
GUP17:=SMA(MAX(G1-REF(G1,2),0),7,1)/SMA(ABS(G1-REF(G1,2)),7,1)*100<15;
GUP18:=(G1-LLV(G2,8))/(HHV(G4,8)-LLV(G2,8))*100;
GUP19:=SMA(GUP18,2,1);
GUP20:=SMA(GUP19,2,1);
GUP21:=IF(GUP19>REF(GUP19,1) AND REF(GUP19,1)<REF(GUP19,2) AND GUP19<23,1.5,0);
GUP22:=100-100*(HHV(G4,5*8)-G1)/(HHV(G4,5*8)-LLV(G2,5*8));
GUP23:=MA(G1,5);
GUP24:=IF(G1>SAR(10,2,20),1,0);
GUP25:=IF(G1<SAR(10,2,20),(-1),0);
GUP26:=ATAN((GUP23/REF(GUP23,1)-1)*100)*180/3.1416;
GUP27:=IF(GUP26>30,1,0);
GUP28:=IF(GUP26<(-30),(-1),0);
GUP29:=GUP24+GUP27+GUP25+GUP28;
IF(GUP29<(-1) OR GUP22<25.01,DIF,DRAWNULL),COLORGREEN,LINETHICK2;
IF(GUP22>74.989998 OR GUP29>0,DIF,DRAWNULL),COLORRED,LINETHICK2;
GUP30:=MACD.MACD;
GUP31:=BARSLASTCOUNT(GUP30>0);
GUP32:=MOD(GUP31,2)*GUP31;
GUP33:=BARSLASTCOUNT(GUP30<0);
GUP34:=MOD(GUP33,2)*GUP33;
DRAWNUMBER(GUP32>0,GUP30,GUP32);
DRAWNUMBER(GUP34>0,GUP30,GUP34);

选股公式源码


{选股公式一:红钻石图标}
GUP1:=1;
DIF:=IF(GUP1=1,MACD.DIF,0);
DEA:=IF(GUP1=1,MACD.DEA,0);
MACD:=(DIF-DEA)*2;
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP2:=BARSLAST(REF(MACD,1)<0 AND MACD>0);
GUP3:=LLVBARS(MACD,GUP2+20);
GUP4:=IF(GUP3>GUP2,REF(MACD,GUP3),0);
GUP5:=MACD<0 ANd MACD>GUP4 AND G2=LLV(G2,GUP2+20) AND GUP4<0;
GUP6:=REF(GUP5,1)=1 AND MACD>REF(MACD,1) AND REF(DIF,GUP3)<0 AND MACD<0;
红钻石图标:GUP6;
{选股公式二:红箭头图标}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=1;
DIF:=IF(GUP1=1,MACD.DIF,0);
DEA:=IF(GUP1=1,MACD.DEA,0);
MACD:=(DIF-DEA)*2;
GUP2:=BARSLAST(REF(MACD,1)<0 AND MACD>0);
GUP3:=LLVBARS(MACD,GUP2+20);
GUP4:=IF(GUP3>GUP2,REF(MACD,GUP3),0);
红箭头图标:REF(DIF,1)<REF(DIF,2) AND DIF>REF(DIF,1) AND DIF<0 AND DIF<DEA;
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则