2023背离买牛发家 股价资金走向《通达信+指标+公式+副图+源码》

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



G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=REF(G2,1);
GUP2:=SMA(ABS(G2-GUP1),3,1)/SMA(MAX(G2-GUP1,0),3,1)*100;
GUP3:=EMA(IF(G1*1.2,GUP2*10,GUP2/10),3);
GUP4:=LLV(G2,38);
GUP5:=HHV(GUP3,38);
GUP6:=1971101;
GUP7:=1971201;
GUP8:=IF(DATE>GUP6,IF(G1<80,1,0),0);
GUP9:=IF(DATE>GUP7,1,GUP8);
GUP10:=IF(GUP9=0,1,0);
GUP11:=EMA(IF(G2<=GUP4,(GUP3+GUP5*2)/50,0),3)/258*GUP10;
GUP12:=(G1-LLV(G2,21))/(HHV(G4,21)-LLV(G2,21))*100;
GUP13:=SMA(GUP12,13,8);
GUP14:=VOL/10000;
GUP15:=VOL/((G4-G2)*2-ABS(G1-G3));
GUP16:=IF(G1>G3,GUP15*(G4-G2),IF(G1<G3,GUP15*(G4-G3+(G1-G2)),IF(G1=G3 AND G1>REF(G1,1)*1.09,VOL,0)))/10000;
GUP17:=IF(G1>G3,0-GUP15*(G4-G1+(G3-G2)),IF(G1<G3,0-GUP15*(G4-G2),IF(G1=G3 AND G1<REF(G1,1)*0.91,0-VOL,0)))/10000;
GUP18:=GUP16+GUP17;
GUP19:=SUM(GUP18,5);
GUP20:=MA(GUP18,1);
GUP21:=SMA(SMA(SMA(GUP20,2,1),2,1),2,1);
GUP22:=REF(GUP21,1);
GUP23:=SMA(MAX(GUP21-GUP22,0),7,1)/SMA(ABS(GUP21-GUP22),7,1)*100;
STICKLINE(GUP23>80,97,100,3,0),COLORCYAN;
GUP24:=LLV(GUP21,35);
GUP25:=HHV(GUP21,30);
GUP26:=EMA((GUP21-GUP24)/(GUP25-GUP24)*4,4)*25;
GUP27:=GUP26;
GUP28:=87.5;
GUP29:=(GUP26-LLV(GUP26,4))/(HHV(GUP26,4)-LLV(GUP26,4))*4*25;
GUP30:=EMA(100*(GUP21-LLV(GUP21,18))/(HHV(GUP21,18)-LLV(GUP21,18)),3)/4*4*1;
GUP31:=(2*G1+G4+G2)/4;
GUP32:=LLV(G2,30);
GUP33:=HHV(G4,30);
GUP34:=IF(GUP9!=1,EMA((GUP31-GUP32)/(GUP33-GUP32)*100,8),0);
GUP35:=EMA(GUP34,4);
STICKLINE(GUP34-GUP35>0,GUP34,GUP35,2,1),COLOR990099;
STICKLINE(GUP34-GUP35<0,GUP34,GUP35,2,1),COLOR999900;
GUP36:=GUP21;
GUP37:=LLV(GUP21,30);
GUP38:=HHV(GUP21,30);
GUP39:=IF(GUP9!=1,EMA((GUP36-GUP37)/(GUP38-GUP37)*100,8),0);
GUP40:=EMA(GUP39,4);
STICKLINE(GUP39-GUP40>0,GUP39,GUP40,4,0),COLOR0000CC;
STICKLINE(GUP39-GUP40<0,GUP39,GUP40,4,0),COLOR00CC00;
GUP41:=GUP39>50 AND GUP39-GUP40>0 OR (GUP39-GUP40>0 AND GUP34-GUP35>0 AND GUP30>MA(GUP30,2));
GUP42:=GUP39<50 AND GUP39-GUP40<0 OR (GUP39-GUP40<0 AND GUP34-GUP35<0 AND GUP30<MA(GUP30,2));
STICKLINE(GUP42,GUP39,50,1,(-1)),COLOR00CC00;
STICKLINE(GUP41,GUP39,50,1,(-1)),COLOR0000CC;
GUP43:=GUP21;
GUP44:=LLV(GUP21,21);
GUP45:=HHV(GUP21,34);
GUP46:=EMA((GUP43-GUP44)/(GUP45-GUP44)*100,13);
GUP47:=EMA(0.667*REF(GUP46,1)+0.333*GUP46,2);
GUP48:=EMA(0.382*REF(GUP46,2)+0.618*GUP46,12);
GUP49:=IF(GUP9=1,0,1);
GUP50:=MA((-100)*(HHV(GUP21,34)-GUP21)/(HHV(GUP21,34)-LLV(GUP21,34)),19)*GUP49;
资金:=EMA(100*(GUP21-LLV(GUP21,18))/(HHV(GUP21,18)-LLV(GUP21,18)),3)/4*4*GUP49,COLOR000088;
资金走向:GUP39,NODRAW,COLOR0000CC;
股价走向:GUP34,NODRAW,COLOR990099;
GUP51:=MA((-100)*(HHV(G4,34)-G1)/(HHV(G4,34)-LLV(G2,34)),19);
GUP52:=(-100)*(HHV(G4,14)-G1)/(HHV(G4,14)-LLV(G2,14));
GUP53:=EMA((-100)*(HHV(G4,34)-G1)/(HHV(G4,34)-LLV(G2,34)),4);
GUP54:=GUP51+100;
GUP55:=GUP52+100;
GUP56:=GUP53+100;
GUP57:=REF(GUP56,1)>85 AND REF(GUP55,1)>85 AND REF(GUP54,1)>65 AND CROSS(GUP54,GUP55);
GUP58:=GUP56<REF(GUP56,1) AND REF(GUP56,1)>80 AND (REF(GUP55,1)>95 OR REF(GUP55,2)>95) AND GUP54>60 AND GUP55<83.5 AND GUP55<GUP56 AND GUP55<GUP54+4;
GUP59:=FILTER(GUP58,4);
STICKLINE(GUP59,97,100,3,0),COLORCYAN;
GUP60:=GUP54<12 AND GUP56<8 AND (GUP55<7.2 OR REF(GUP55,1)<5) AND (GUP56>REF(GUP56,1) OR GUP55>REF(GUP55,1)) OR (GUP54<8 AND GUP56<7 AND GUP55<15 AND GUP55>REF(GUP55,1)) OR (GUP54<10 AND GUP56<7 AND GUP55<1);
STICKLINE(GUP60,(-3),0,8,0),COLORGREEN;
GUP61:=BARSLAST(REF(CROSS(GUP39,GUP40),1));
GUP62:=REF(G1,GUP61+1)>G1 AND REF(GUP39,GUP61+1)<GUP39 AND CROSS(GUP39,GUP40) AND GUP39<50;
GUP63:=BARSLAST(REF(CROSS(GUP40,GUP39),1));
GUP64:=REF(G1,GUP63+1)<G1 AND REF(GUP39,GUP63+1)>GUP39 AND CROSS(GUP40,GUP39) AND GUP39>50;
DRAWICON(GUP62,(-2),1);
DRAWICON(GUP64,101,2);
底背离:GUP62,NODRAW,COLORYELLOW;
顶背离:GUP64,NODRAW,COLORGREEN;
GUP65:=EMA(100*(C-LLV(L,34))/(HHV(H,34)-LLV(L,34)),3);
RSI:=SMA(MAX(G1-REF(G1,1),0),6,1)/SMA(ABS(G1-REF(G1,1)),6,1)*100;
WR1:=(HHV(G4,14)-G1)/(HHV(G4,14)-LLV(G2,14))*100;
TYP:=(G4+G2+G1)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
RSV:=(G1-LLV(G2,12))/(HHV(G4,12)-LLV(G2,12));
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
GUA1:=WMA((GUP65+RSI+J-WR1+CCI)/5,5);
GUA2:=EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6)*100;
GUA3:=IF(LLV(GUA2,3)=LLV(GUA2,11) AND COUNT(GUA2<0,2) AND CROSS(GUA2,MA(GUA2,2)),1,0);
GUA4:=FILTER(GUA3=1,5);
GUA5:=FILTER(GUA4,GUA1*1);
DRAWTEXT(GUA5,G2,'买牛'),COLORRED;

选股公式源码



{选股公式一:买牛}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP65:=EMA(100*(C-LLV(L,34))/(HHV(H,34)-LLV(L,34)),3);
RSI:=SMA(MAX(G1-REF(G1,1),0),6,1)/SMA(ABS(G1-REF(G1,1)),6,1)*100;
WR1:=(HHV(G4,14)-G1)/(HHV(G4,14)-LLV(G2,14))*100;
TYP:=(G4+G2+G1)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
RSV:=(G1-LLV(G2,12))/(HHV(G4,12)-LLV(G2,12));
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
GUA1:=WMA((GUP65+RSI+J-WR1+CCI)/5,5);
GUA2:=EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6)*100;
GUA3:=IF(LLV(GUA2,3)=LLV(GUA2,11) AND COUNT(GUA2<0,2) AND CROSS(GUA2,MA(GUA2,2)),1,0);
GUA4:=FILTER(GUA3=1,5);
GUA5:=FILTER(GUA4,GUA1*1);
买牛:GUA5;
{选股公式二:红箭头图标}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=REF(G2,1);
GUP2:=SMA(ABS(G2-GUP1),3,1)/SMA(MAX(G2-GUP1,0),3,1)*100;
GUP3:=EMA(IF(G1*1.2,GUP2*10,GUP2/10),3);
GUP4:=LLV(G2,38);
GUP5:=HHV(GUP3,38);
GUP6:=1971101;
GUP7:=1971201;
GUP8:=IF(DATE>GUP6,IF(G1<80,1,0),0);
GUP9:=IF(DATE>GUP7,1,GUP8);
GUP10:=IF(GUP9=0,1,0);
GUP11:=EMA(IF(G2<=GUP4,(GUP3+GUP5*2)/50,0),3)/258*GUP10;
GUP12:=(G1-LLV(G2,21))/(HHV(G4,21)-LLV(G2,21))*100;
GUP13:=SMA(GUP12,13,8);
GUP14:=VOL/10000;
GUP15:=VOL/((G4-G2)*2-ABS(G1-G3));
GUP16:=IF(G1>G3,GUP15*(G4-G2),IF(G1<G3,GUP15*(G4-G3+(G1-G2)),IF(G1=G3 AND G1>REF(G1,1)*1.09,VOL,0)))/10000;
GUP17:=IF(G1>G3,0-GUP15*(G4-G1+(G3-G2)),IF(G1<G3,0-GUP15*(G4-G2),IF(G1=G3 AND G1<REF(G1,1)*0.91,0-VOL,0)))/10000;
GUP18:=GUP16+GUP17;
GUP19:=SUM(GUP18,5);
GUP20:=MA(GUP18,1);
GUP21:=SMA(SMA(SMA(GUP20,2,1),2,1),2,1);
GUP36:=GUP21;
GUP37:=LLV(GUP21,30);
GUP38:=HHV(GUP21,30);
GUP39:=IF(GUP9!=1,EMA((GUP36-GUP37)/(GUP38-GUP37)*100,8),0);
GUP40:=EMA(GUP39,4);
GUP61:=BARSLAST(REF(CROSS(GUP39,GUP40),1));
GUP62:=REF(G1,GUP61+1)>G1 AND REF(GUP39,GUP61+1)<GUP39 AND CROSS(GUP39,GUP40) AND GUP39<50;
红箭头图标:GUP62;
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则