2024紧跟龙头 买入起飞《通达信+指标+公式+副图+源码》
副图公式源码支持 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=MA(100*(G1-LLV(G1,34))/(HHV(G4,34)-LLV(G2,34)),5)-20;
GUP2:=2*ABS(GUP1);
GUP3:=100-3*SMA((G1-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1)+2*SMA(SMA((G1-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1),15,1);
GUP4:=100-3*SMA((G3-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1)+2*SMA(SMA((G3-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1),15,1);
GUP5:=(G4+G2+G1)/3;
GUP6:=(GUP5-MA(GUP5,14))/(0.015*AVEDEV(GUP5,14));
GUP7:=(GUP5-MA(GUP5,70))/(0.015*AVEDEV(GUP5,70));
GUP8:=IF(GUP6>=150 AND GUP6<200 AND GUP7>=150 AND GUP7<200,10,0);
GUP9:=IF(GUP6<=-150 AND GUP6>-200 AND GUP7<=-150 AND GUP7>-200,-10,GUP8);
GUPA:=(G1-MA(G1,13))/MA(G1,13)*100;
GUPB:=100-ABS(GUPA);
GUPC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
GUPD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
GUPE:=REF(G2,1)*0.9;
GUPF:=G2*0.9;
GUP10:=(GUPF*VOL+GUPE*(CAPITAL-VOL))/CAPITAL;
GUP11:=EMA(GUP10,30);
GUP12:=GUP11-G1;
GUP13:=REF(G1,1);
GUP14:=SMA(MAX(G1-GUP13,0),7,1)/SMA(ABS(G1-GUP13),7,1)*100;
GUP15:=SMA(MAX(G1-GUP13,0),13,1)/SMA(ABS(G1-GUP13),13,1)*100;
GUP16:=BARSCOUNT(G1);
GUP17:=SMA(MAX(G1-REF(G1,1),0),6,1)/SMA(ABS(G1-REF(G1,1)),6,1)*100;
GUP18:=((-100)*(HHV(G4,60)-G1)/(HHV(G4,60)-LLV(G2,60))+50)*2;
GUP19:=(G1-LLV(G2,15))/(HHV(G4,15)-LLV(G2,15))*100;
GUP1A:=(SMA(GUP19,4,1)-50)*2;
GUP1B:=SMA(GUP1A,3,1);
GUP1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
GUP1D:=SMA(GUP1C,4,1);
GUP1E:=SMA(GUP1D,3,1);
GUP1F:=(HHV(G4,30)-G1)/G1*100;
GUP20:=IF(GUP17<=25 AND GUP18<-95 AND GUP1F>20 AND GUP1B<-30 AND GUP1E<30 AND GUP12>=-0.25 AND GUP14<22 AND GUP15<28 AND GUP16>50,80,0);
GUA1:=IF(GUPB<90,GUPB,100);
GUA2:=IF(GUP1>0,GUP1,0);
GUA3:=IF(GUP1<0,GUP2,0);
买入:GUP20,COLORRED,LINETHICK2,COLORCYAN;
GUB1:=IF(GUP7>=200 AND GUP6>=150,15,IF(GUP7<=-200 AND GUP6<=-150,-15,GUP9))+60;
GUP21:=G1>MA(G1,20) AND MA(G1,20)>=REF(MA(G1,20),1);
GUP22:=G1<MA(G1,20) AND MA(G1,20)<REF(MA(G1,20),1);
GUP23:=GUA2>50 AND GUB1>60 AND GUA1=100;
GUP24:=GUA2>48 AND GUB1>60 AND GUA1<100;
GUP25:=GUA3>38 AND GUB1<55;
GUP26:=买入>50 AND GUA1<90;
GUP27:=GUP3<REF(GUP4,1) AND VOL>REF(VOL,1) AND G1>REF(G1,1);
GUP28:=GUP3>=REF(GUP4,1) AND G1<REF(G1,1) AND GUB1=60 AND 买入=0 AND GUA3>=REF(GUA3,1) AND GUPC<REF(GUPD,1);
起飞:IF(GUP27 AND COUNT(GUP27,30)=1,100,0),LINETHICK2,COLORYELLOW;
选股公式源码
{选股公式一:买入}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=MA(100*(G1-LLV(G1,34))/(HHV(G4,34)-LLV(G2,34)),5)-20;
GUP2:=2*ABS(GUP1);
GUP3:=100-3*SMA((G1-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1)+2*SMA(SMA((G1-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1),15,1);
GUP4:=100-3*SMA((G3-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1)+2*SMA(SMA((G3-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1),15,1);
GUP5:=(G4+G2+G1)/3;
GUP6:=(GUP5-MA(GUP5,14))/(0.015*AVEDEV(GUP5,14));
GUP7:=(GUP5-MA(GUP5,70))/(0.015*AVEDEV(GUP5,70));
GUP8:=IF(GUP6>=150 AND GUP6<200 AND GUP7>=150 AND GUP7<200,10,0);
GUP9:=IF(GUP6<=-150 AND GUP6>-200 AND GUP7<=-150 AND GUP7>-200,-10,GUP8);
GUPA:=(G1-MA(G1,13))/MA(G1,13)*100;
GUPB:=100-ABS(GUPA);
GUPC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
GUPD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
GUPE:=REF(G2,1)*0.9;
GUPF:=G2*0.9;
GUP10:=(GUPF*VOL+GUPE*(CAPITAL-VOL))/CAPITAL;
GUP11:=EMA(GUP10,30);
GUP12:=GUP11-G1;
GUP13:=REF(G1,1);
GUP14:=SMA(MAX(G1-GUP13,0),7,1)/SMA(ABS(G1-GUP13),7,1)*100;
GUP15:=SMA(MAX(G1-GUP13,0),13,1)/SMA(ABS(G1-GUP13),13,1)*100;
GUP16:=BARSCOUNT(G1);
GUP17:=SMA(MAX(G1-REF(G1,1),0),6,1)/SMA(ABS(G1-REF(G1,1)),6,1)*100;
GUP18:=((-100)*(HHV(G4,60)-G1)/(HHV(G4,60)-LLV(G2,60))+50)*2;
GUP19:=(G1-LLV(G2,15))/(HHV(G4,15)-LLV(G2,15))*100;
GUP1A:=(SMA(GUP19,4,1)-50)*2;
GUP1B:=SMA(GUP1A,3,1);
GUP1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
GUP1D:=SMA(GUP1C,4,1);
GUP1E:=SMA(GUP1D,3,1);
GUP1F:=(HHV(G4,30)-G1)/G1*100;
GUP20:=IF(GUP17<=25 AND GUP18<-95 AND GUP1F>20 AND GUP1B<-30 AND GUP1E<30 AND GUP12>=-0.25 AND GUP14<22 AND GUP15<28 AND GUP16>50,80,0);
GUA1:=IF(GUPB<90,GUPB,100);
GUA2:=IF(GUP1>0,GUP1,0);
GUA3:=IF(GUP1<0,GUP2,0);
买入:GUP20,COLORRED,LINETHICK2,COLORCYAN;
{选股公式二:起飞}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=MA(100*(G1-LLV(G1,34))/(HHV(G4,34)-LLV(G2,34)),5)-20;
GUP2:=2*ABS(GUP1);
GUP3:=100-3*SMA((G1-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1)+2*SMA(SMA((G1-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1),15,1);
GUP4:=100-3*SMA((G3-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1)+2*SMA(SMA((G3-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100,20,1),15,1);
GUP5:=(G4+G2+G1)/3;
GUP6:=(GUP5-MA(GUP5,14))/(0.015*AVEDEV(GUP5,14));
GUP7:=(GUP5-MA(GUP5,70))/(0.015*AVEDEV(GUP5,70));
GUP8:=IF(GUP6>=150 AND GUP6<200 AND GUP7>=150 AND GUP7<200,10,0);
GUP9:=IF(GUP6<=-150 AND GUP6>-200 AND GUP7<=-150 AND GUP7>-200,-10,GUP8);
GUPA:=(G1-MA(G1,13))/MA(G1,13)*100;
GUPB:=100-ABS(GUPA);
GUPC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
GUPD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
GUPE:=REF(G2,1)*0.9;
GUPF:=G2*0.9;
GUP10:=(GUPF*VOL+GUPE*(CAPITAL-VOL))/CAPITAL;
GUP11:=EMA(GUP10,30);
GUP12:=GUP11-G1;
GUP13:=REF(G1,1);
GUP14:=SMA(MAX(G1-GUP13,0),7,1)/SMA(ABS(G1-GUP13),7,1)*100;
GUP15:=SMA(MAX(G1-GUP13,0),13,1)/SMA(ABS(G1-GUP13),13,1)*100;
GUP16:=BARSCOUNT(G1);
GUP17:=SMA(MAX(G1-REF(G1,1),0),6,1)/SMA(ABS(G1-REF(G1,1)),6,1)*100;
GUP18:=((-100)*(HHV(G4,60)-G1)/(HHV(G4,60)-LLV(G2,60))+50)*2;
GUP19:=(G1-LLV(G2,15))/(HHV(G4,15)-LLV(G2,15))*100;
GUP1A:=(SMA(GUP19,4,1)-50)*2;
GUP1B:=SMA(GUP1A,3,1);
GUP1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
GUP1D:=SMA(GUP1C,4,1);
GUP1E:=SMA(GUP1D,3,1);
GUP1F:=(HHV(G4,30)-G1)/G1*100;
GUP20:=IF(GUP17<=25 AND GUP18<-95 AND GUP1F>20 AND GUP1B<-30 AND GUP1E<30 AND GUP12>=-0.25 AND GUP14<22 AND GUP15<28 AND GUP16>50,80,0);
GUA1:=IF(GUPB<90,GUPB,100);
GUA2:=IF(GUP1>0,GUP1,0);
GUA3:=IF(GUP1<0,GUP2,0);
买入:=GUP20,COLORRED,LINETHICK2,COLORCYAN;
GUB1:=IF(GUP7>=200 AND GUP6>=150,15,IF(GUP7<=-200 AND GUP6<=-150,-15,GUP9))+60;
GUP21:=G1>MA(G1,20) AND MA(G1,20)>=REF(MA(G1,20),1);
GUP22:=G1<MA(G1,20) AND MA(G1,20)<REF(MA(G1,20),1);
GUP23:=GUA2>50 AND GUB1>60 AND GUA1=100;
GUP24:=GUA2>48 AND GUB1>60 AND GUA1<100;
GUP25:=GUA3>38 AND GUB1<55;
GUP26:=买入>50 AND GUA1<90;
GUP27:=GUP3<REF(GUP4,1) AND VOL>REF(VOL,1) AND G1>REF(G1,1);
GUP28:=GUP3>=REF(GUP4,1) AND G1<REF(G1,1) AND GUB1=60 AND 买入=0 AND GUA3>=REF(GUA3,1) AND GUPC<REF(GUPD,1);
起飞:IF(GUP27 AND COUNT(GUP27,30)=1,100,0),LINETHICK2,COLORYELLOW;