Money 发表于 2023-7-21 14:28:09

三段买入起飞 捕捉上涨龙头【指标公式】(含选股)

本帖最后由 Money 于 2023-7-21 14:30 编辑

第一部分 副图公式 手机/电脑

G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
N1:=80;N2:=1;N3:=1;N4:=1;
GUP1:=EMA(G1,3);
GUP2:=EMA(SLOPE(G1,21)*20+G1,55);
GUP3:=CROSS(GUP1,GUP2);
GUP4:=CROSS(GUP2,GUP1);
GUP5:=COUNT(GUP4,BARSLAST(GUP3))=0;
GUP6:=MA((-100)*(HHV(G4,34)-G1)/(HHV(G4,34)-LLV(G2,34)),19);
GUP7:=(-100)*(HHV(G4,14)-G1)/(HHV(G4,14)-LLV(G2,14));
GUP8:=EMA((-100)*(HHV(G4,34)-G1)/(HHV(G4,34)-LLV(G2,34)),4);
GUP9:=GUP6+100;GUP10:=GUP7+100;
GUP11:=GUP8+100;GUP12:=GUP10;
GUP13:=GUP11;GUP14:=GUP9;
GUP15:=GUP13>GUP14 AND GUP12>GUP14 OR (GUP13>GUP14 AND GUP12<GUP14 AND NOT(CROSS(GUP2,GUP1))) OR GUP5;
GUP16:=100-100*(HHV(G4,5*8)-G1)/(HHV(G4,5*8)-LLV(G2,5*8));
GUP17:=GUP16>=N1;GUP18:=(G1*2+G4+G2)/4;
GUP19:=EMA(GUP18,13)-EMA(GUP18,34);
GUP20:=EMA(GUP19,5);GUP21:=2*(GUP19-GUP20)*3.8;
GUP22:=GUP21>=0;
GUP23:=ABS(((3.48*G1+G4+G2)/4-EMA(G1,23))/EMA(G1,23));
GUP24:=DMA((2.15*G1+G2+G4)/4,GUP23);GUP25:=1;
GUP26:=EMA(GUP24,200)*1.118;
GUP27:=(G1-REF(G1,1))/REF(G1,1)*100>8;
GUP28:=CROSS(G1,GUP26) AND GUP27;
GUP29:=GUP28*GUP25;GUP30:=REF(G1,1);
GUP31:=EMA(HHV(G4,1),8);GUP32:=EMA(G1,8);
GUP33:=GUP32<REF(GUP32,1) AND G1<GUP32;
GUP34:=IF(GUP31<REF(GUP31,1) OR GUP33,1,0);
GUP35:=IF(DATE>=1220928,0,1);
GUP36:=SMA(MAX(G1-GUP30,0),2,1)/SMA(ABS(G1-GUP30),2,1)*100;
GUP37:=45;GUP38:=20;
GUP39:=GUP36<GUP37 AND REF(GUP36,1)>GUP37;
GUP40:=GUP36<GUP38 AND REF(GUP36,1)>GUP38;
GUP41:=(COUNT(GUP34=1,4)=3 AND GUP34=0 AND G3<G1 AND (G1-REF(G1,1))/REF(G1,1)>0.085)*89>=89 OR ((G1-REF(G1,1))/REF(G1,1)>0.085 AND (REF(GUP40,1) OR REF(GUP39,1)))*GUP35;
GUP42:=IF(G1>REF(G1,1),88,0);
GUP43:=IF(G1/REF(G1,1)>1.05 AND G4/G1<1.01 AND GUP42>0,91,0);
GUP44:=FILTER(GUP43>90,45) OR FILTER(GUP43>90,35)*GUP35;
GUP45:=IF(N4=0,GUP29 OR GUP41 OR GUP44 AND (GUP17 AND GUP22),GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17 AND GUP22));
GUP46:=IF(N2=0,GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP22),GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17 AND GUP22));
GUP47:=IF(N3=0,GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17),GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17 AND GUP22));
GUP48:=IF(N3=0 AND N2=0 AND N4=0,GUP29 OR GUP41 OR GUP44,GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17 AND GUP22));
GUP49:=IF(N3=0 AND N2=0,GUP29 OR GUP41 OR GUP44 AND GUP15,GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17 AND GUP22));
GUP50:=IF(N3=0 AND N4=0,GUP29 OR GUP41 OR GUP44 AND N2,GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17 AND GUP22));
GUP51:=IF(N2=0 AND N4=0,GUP29 OR GUP41 OR GUP44 AND N3,GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17 AND GUP22));
三段起飞:=(GUP45 OR GUP46 OR GUP47 OR GUP48 OR GUP49 OR GUP50 OR GUP51)*GUP35,COLORMAGENTA;
STICKLINE(三段起飞,0,30,2.6,0),COLORYELLOW;
STICKLINE(三段起飞,30,60,2.6,0),COLORRED;
STICKLINE(三段起飞,60,90,2.6,0),COLORMAGENTA;
DRAWICON(三段起飞,33,13);
DRAWICON(三段起飞,66,13);
DRAWICON(三段起飞,99,13);第二部分 选股公式
{选股公式}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
N1:=80;N2:=1;N3:=1;N4:=1;
GUP1:=EMA(G1,3);
GUP2:=EMA(SLOPE(G1,21)*20+G1,55);
GUP3:=CROSS(GUP1,GUP2);
GUP4:=CROSS(GUP2,GUP1);
GUP5:=COUNT(GUP4,BARSLAST(GUP3))=0;
GUP6:=MA((-100)*(HHV(G4,34)-G1)/(HHV(G4,34)-LLV(G2,34)),19);
GUP7:=(-100)*(HHV(G4,14)-G1)/(HHV(G4,14)-LLV(G2,14));
GUP8:=EMA((-100)*(HHV(G4,34)-G1)/(HHV(G4,34)-LLV(G2,34)),4);
GUP9:=GUP6+100;GUP10:=GUP7+100;
GUP11:=GUP8+100;GUP12:=GUP10;
GUP13:=GUP11;GUP14:=GUP9;
GUP15:=GUP13>GUP14 AND GUP12>GUP14 OR (GUP13>GUP14 AND GUP12<GUP14 AND NOT(CROSS(GUP2,GUP1))) OR GUP5;
GUP16:=100-100*(HHV(G4,5*8)-G1)/(HHV(G4,5*8)-LLV(G2,5*8));
GUP17:=GUP16>=N1;GUP18:=(G1*2+G4+G2)/4;
GUP19:=EMA(GUP18,13)-EMA(GUP18,34);
GUP20:=EMA(GUP19,5);GUP21:=2*(GUP19-GUP20)*3.8;
GUP22:=GUP21>=0;
GUP23:=ABS(((3.48*G1+G4+G2)/4-EMA(G1,23))/EMA(G1,23));
GUP24:=DMA((2.15*G1+G2+G4)/4,GUP23);GUP25:=1;
GUP26:=EMA(GUP24,200)*1.118;
GUP27:=(G1-REF(G1,1))/REF(G1,1)*100>8;
GUP28:=CROSS(G1,GUP26) AND GUP27;
GUP29:=GUP28*GUP25;GUP30:=REF(G1,1);
GUP31:=EMA(HHV(G4,1),8);GUP32:=EMA(G1,8);
GUP33:=GUP32<REF(GUP32,1) AND G1<GUP32;
GUP34:=IF(GUP31<REF(GUP31,1) OR GUP33,1,0);
GUP35:=IF(DATE>=1220928,0,1);
GUP36:=SMA(MAX(G1-GUP30,0),2,1)/SMA(ABS(G1-GUP30),2,1)*100;
GUP37:=45;GUP38:=20;
GUP39:=GUP36<GUP37 AND REF(GUP36,1)>GUP37;
GUP40:=GUP36<GUP38 AND REF(GUP36,1)>GUP38;
GUP41:=(COUNT(GUP34=1,4)=3 AND GUP34=0 AND G3<G1 AND (G1-REF(G1,1))/REF(G1,1)>0.085)*89>=89 OR ((G1-REF(G1,1))/REF(G1,1)>0.085 AND (REF(GUP40,1) OR REF(GUP39,1)))*GUP35;
GUP42:=IF(G1>REF(G1,1),88,0);
GUP43:=IF(G1/REF(G1,1)>1.05 AND G4/G1<1.01 AND GUP42>0,91,0);
GUP44:=FILTER(GUP43>90,45) OR FILTER(GUP43>90,35)*GUP35;
GUP45:=IF(N4=0,GUP29 OR GUP41 OR GUP44 AND (GUP17 AND GUP22),GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17 AND GUP22));
GUP46:=IF(N2=0,GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP22),GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17 AND GUP22));
GUP47:=IF(N3=0,GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17),GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17 AND GUP22));
GUP48:=IF(N3=0 AND N2=0 AND N4=0,GUP29 OR GUP41 OR GUP44,GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17 AND GUP22));
GUP49:=IF(N3=0 AND N2=0,GUP29 OR GUP41 OR GUP44 AND GUP15,GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17 AND GUP22));
GUP50:=IF(N3=0 AND N4=0,GUP29 OR GUP41 OR GUP44 AND N2,GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17 AND GUP22));
GUP51:=IF(N2=0 AND N4=0,GUP29 OR GUP41 OR GUP44 AND N3,GUP29 OR GUP41 OR GUP44 AND (GUP15 AND GUP17 AND GUP22));
三段起飞:(GUP45 OR GUP46 OR GUP47 OR GUP48 OR GUP49 OR GUP50 OR GUP51)*GUP35,COLORMAGENTA;

页: [1]
查看完整版本: 三段买入起飞 捕捉上涨龙头【指标公式】(含选股)