beyond202104 发表于 2023-8-28 00:00:00

金叉买入起涨 拉升火力全开【指标公式】(含选股)

金叉买入起涨 拉升火力全开【指标公式】(含选股)第一部分 副图公式 手机/电脑


N:=9;M1:=3;M2:=3;
RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K1:=SMA(RSV1,M1,1);
D1:=SMA(K1,M2,1);
J1:=3*K1-2*D1;
CHP1:=KDJ.K>KDJ.D AND KDJ.J>KDJ.D AND KDJ.J>KDJ;
CHP2:=CAPITAL*C/1000000;
CHP3:=(C-REF(C,1))/REF(C,1)*100;
CHA0:=NOT(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S') OR DYNAINFO(4)=0? OR INBLOCK('创业板') OR INBLOCK('科创板')) OR BARSCOUNT(C)>1;
CHA1:=CHP2>0 AND CHP2<80;
CHA2:=CHP3>9.8 AND CHP3<10.99 AND C=H;
CHA3:=C>2 AND C<22;
CHA4:=COUNT(CHA2,2)=1;
CHC1:=CHP1 AND CHA0 AND CHA1 AND CHA2 AND CHA3 AND CHA4;
STICKLINE(CHC1,C,O,0.3,0),COLOR0000FF;
DRAWTEXT(CHC1,L*0.99,'起涨'),COLOR0000FF;
MA1:MA(CLOSE,5);
MA3:MA(CLOSE,20);
CHB1:=(C/REF(C,1)-1)*100;
CHB2:=(O/REF(C,1)-1)*100;
CHB3:=DYNAINFO(15)/O/100;
CHB4:=CHB3/REF(V,1)*100;
CHB5:=(EMA(O,20)-REF(EMA(O,20),1))/REF(EMA(O,20),1)*100;
CHB6:=REF(L,BARSLAST(CROSS(CHB5,0)));
CHB7:=(O-CHB6)/CHB6*100;
CHB8:=CODELIKE('60') OR CODELIKE('00');
CHB9:=(C/REF(C,1)-1)*100>9.8 AND H=C;
CHB10:=COUNT(CHB9,4)<3;
CHC2:=CHB7<=20 AND REF(CHB1>9.80,1)? AND CHB2>=2 AND CHB2<=7.5 AND CHB8 AND CHB10;
STICKLINE(CHC2,C,O,0.3,0),COLORMAGENTA;
DRAWTEXT(CHC2,L*0.99,'拉升'),COLORMAGENTA;


第二部分 选股公式


{选股公式一:起涨}
N:=9;M1:=3;M2:=3;
RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K1:=SMA(RSV1,M1,1);
D1:=SMA(K1,M2,1);
J1:=3*K1-2*D1;
CHP1:=KDJ.K>KDJ.D AND KDJ.J>KDJ.D AND KDJ.J>KDJ;
CHP2:=CAPITAL*C/1000000;
CHP3:=(C-REF(C,1))/REF(C,1)*100;
CHA0:=NOT(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S') OR DYNAINFO(4)=0? OR INBLOCK('创业板') OR INBLOCK('科创板')) OR BARSCOUNT(C)>1;
CHA1:=CHP2>0 AND CHP2<80;
CHA2:=CHP3>9.8 AND CHP3<10.99 AND C=H;
CHA3:=C>2 AND C<22;
CHA4:=COUNT(CHA2,2)=1;
CHC1:=CHP1 AND CHA0 AND CHA1 AND CHA2 AND CHA3 AND CHA4;
起涨:CHC1;
{选股公式二:拉升}
CHB1:=(C/REF(C,1)-1)*100;
CHB2:=(O/REF(C,1)-1)*100;
CHB3:=DYNAINFO(15)/O/100;
CHB4:=CHB3/REF(V,1)*100;
CHB5:=(EMA(O,20)-REF(EMA(O,20),1))/REF(EMA(O,20),1)*100;
CHB6:=REF(L,BARSLAST(CROSS(CHB5,0)));
CHB7:=(O-CHB6)/CHB6*100;
CHB8:=CODELIKE('60') OR CODELIKE('00');
CHB9:=(C/REF(C,1)-1)*100>9.8 AND H=C;
CHB10:=COUNT(CHB9,4)<3;
CHC2:=CHB7<=20 AND REF(CHB1>9.80,1)? AND CHB2>=2 AND CHB2<=7.5 AND CHB8 AND CHB10;
拉升:CHC2;


上山打老虎667 发表于 2023-9-16 04:43:16

尝试一下

禾口王君卤 发表于 2024-3-7 07:08:57

学习了,谢谢分享、、、
页: [1]
查看完整版本: 金叉买入起涨 拉升火力全开【指标公式】(含选股)