2024底部买涨 持股上升《通达信+指标+公式+副图+源码》
副图公式源码支持 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP3:=EMA(G1,8)-EMA(G1,13);
GUP4:=EMA(GUP3,5);
GUP5:=(GUP3>GUP4);
GUP6:=IF(GUP5,1,0);
GUP7:=(G1-LLV(G2,8))/(HHV(G4,8)-LLV(G2,8))*100;
GUP8:=SMA(GUP7,3,1);
GUP9:=SMA(GUP8,3,1);
GUP10:=(GUP8>GUP9);
GUP11:=IF(GUP10,2,0);
GUP12:=REF(G1,1);
GUP13:=SMA(MAX(G1-GUP12,0),5,1)/SMA(ABS(G1-GUP12),5,1)*100;
GUP14:=SMA(MAX(G1-GUP12,0),13,1)/SMA(ABS(G1-GUP12),13,1)*100;
GUP15:=(GUP13>GUP14) ;
GUP16:=IF(GUP15,3,0);
GUP17:=(-(HHV(G4,13)-G1))/(HHV(G4,13)-LLV(G2,13))*100;GUP18:=SMA(GUP17,3,1);
GUP19:=SMA(GUP18,3,1);GUP20:=GUP18>GUP19 ;
GUP22:=(MA(G1,3)+MA(G1,6)+MA(G1,12)+MA(G1,24))/4;
GUP23:=G1>GUP22 ;
GUP26:=G1-REF(G1,1);
GUP27:=100*EMA(EMA(GUP26,5),3)/EMA(EMA(ABS(GUP26),5),3);
GUP28:=100*EMA(EMA(GUP26,13),8)/EMA(EMA(ABS(GUP26),13),8);
GUP29:=GUP27>GUP28 ;
GUA1:=GUP5+GUP10+GUP15+GUP20+GUP23+GUP29;
GUA2:=BARSLAST(GUA1=6);
GUA3:=IF(LLV(GUA1,GUA2)>=4,6,GUA1);
买涨:IF(GUA3=6 AND REF(GUA3,1)<6,6,0),COLORRED,LINETHICK2;
持股:IF(GUA3=6,6,0),COLORLIRED,LINETHICK1;
选股公式源码
{选股公式:买涨}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP3:=EMA(G1,8)-EMA(G1,13);
GUP4:=EMA(GUP3,5);
GUP5:=(GUP3>GUP4);
GUP6:=IF(GUP5,1,0);
GUP7:=(G1-LLV(G2,8))/(HHV(G4,8)-LLV(G2,8))*100;
GUP8:=SMA(GUP7,3,1);
GUP9:=SMA(GUP8,3,1);
GUP10:=(GUP8>GUP9);
GUP11:=IF(GUP10,2,0);
GUP12:=REF(G1,1);
GUP13:=SMA(MAX(G1-GUP12,0),5,1)/SMA(ABS(G1-GUP12),5,1)*100;
GUP14:=SMA(MAX(G1-GUP12,0),13,1)/SMA(ABS(G1-GUP12),13,1)*100;
GUP15:=(GUP13>GUP14) ;
GUP16:=IF(GUP15,3,0);
GUP17:=(-(HHV(G4,13)-G1))/(HHV(G4,13)-LLV(G2,13))*100;GUP18:=SMA(GUP17,3,1);
GUP19:=SMA(GUP18,3,1);GUP20:=GUP18>GUP19 ;
GUP22:=(MA(G1,3)+MA(G1,6)+MA(G1,12)+MA(G1,24))/4;
GUP23:=G1>GUP22 ;
GUP26:=G1-REF(G1,1);
GUP27:=100*EMA(EMA(GUP26,5),3)/EMA(EMA(ABS(GUP26),5),3);
GUP28:=100*EMA(EMA(GUP26,13),8)/EMA(EMA(ABS(GUP26),13),8);
GUP29:=GUP27>GUP28 ;
GUA1:=GUP5+GUP10+GUP15+GUP20+GUP23+GUP29;
GUA2:=BARSLAST(GUA1=6);
GUA3:=IF(LLV(GUA1,GUA2)>=4,6,GUA1);
买涨:GUA3=6 AND REF(GUA3,1)<6;