2023极底绝境反攻 强势反弹买入《通达信+指标+公式+副图+源码》
副图公式 源码支持手机/电脑
CHP1W:=(HIGH+LOW+OPEN+2*CLOSE)/5;
CHP2W:=REF(CHP1W,1);
CHP3W:=SMA(MAX(CHP1W-CHP2W,0),10,1)/SMA(ABS(CHP1W-CHP2W),10,1)*100;
CHDB:=IF(COUNT(CHP3W<=14,2),30,0);
CHPAD:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
CHPBD:=100-ABS(CHPAD);
CHPED:=REF(LOW,1)*0.9;
CHPFD:=LOW*0.9;
CHP101:=(CHPFD*VOL+CHPED*(CAPITAL-VOL))/CAPITAL;
CHP111:=EMA(CHP101,30);
CHP121:=CHP111-CLOSE;
CHP131:=REF(CLOSE,1);
CHP141:=SMA(MAX(CLOSE-CHP131,0),7,1)/SMA(ABS(CLOSE-CHP131),7,1)*100;
CHP151:=SMA(MAX(CLOSE-CHP131,0),13,1)/SMA(ABS(CLOSE-CHP131),13,1)*100;
CHP161:=BARSCOUNT(CLOSE);
CHP171:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
CHP181:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
CHP191:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
CHP1AD:=(SMA(CHP191,4,1)-50)*2;
CHP1BD:=SMA(CHP1AD,3,1);
CHP1CD:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
CHP1DD:=SMA(CHP1CD,4,1);
CHP1ED:=SMA(CHP1DD,3,1);
CHP1FD:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
CHP201:=IF(CHP171<=25 AND CHP181<-95 AND CHP1FD>20 AND CHP1BD<-30 AND CHP1ED<30 AND CHP121>=-0.25 AND CHP141<25 AND CHP151<30 AND CHP161>50,70,0);
CHTD:=CHP201;
CHTO:=IF(CHPBD<90,CHPBD,100);
T6:=CHTD>50 AND CHTO<90;
CHTI:=T6 AND COUNT(T6,30)=1;
CHFD:=IF(CROSS(CHP3W,CHDB) AND VOL>1.5*MA(VOL,5),1,0);
DRAWTEXT(CHTI OR CHFD,50,'抢反弹');
STICKLINE(CHTI OR CHFD,55,0,0.6,0),COLORYELLOW;
CHP2N:=LLV(LOW,3)<=LLV(LOW,60);
CHP3N:= C>O AND (C/O>1.03 OR C>1.03*REF(C,1));
极底反攻:=IF(CHP2N AND CHP3N,1,0);
DRAWTEXT(极底反攻,50,'极底反攻');
STICKLINE(极底反攻,55,0,0.6,0),COLORRED;
选股公式源码
{选股公式一:抢反弹}
CHP1W:=(HIGH+LOW+OPEN+2*CLOSE)/5;
CHP2W:=REF(CHP1W,1);
CHP3W:=SMA(MAX(CHP1W-CHP2W,0),10,1)/SMA(ABS(CHP1W-CHP2W),10,1)*100;
CHDB:=IF(COUNT(CHP3W<=14,2),30,0);
CHPAD:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
CHPBD:=100-ABS(CHPAD);
CHPED:=REF(LOW,1)*0.9;
CHPFD:=LOW*0.9;
CHP101:=(CHPFD*VOL+CHPED*(CAPITAL-VOL))/CAPITAL;
CHP111:=EMA(CHP101,30);
CHP121:=CHP111-CLOSE;
CHP131:=REF(CLOSE,1);
CHP141:=SMA(MAX(CLOSE-CHP131,0),7,1)/SMA(ABS(CLOSE-CHP131),7,1)*100;
CHP151:=SMA(MAX(CLOSE-CHP131,0),13,1)/SMA(ABS(CLOSE-CHP131),13,1)*100;
CHP161:=BARSCOUNT(CLOSE);
CHP171:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
CHP181:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
CHP191:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
CHP1AD:=(SMA(CHP191,4,1)-50)*2;
CHP1BD:=SMA(CHP1AD,3,1);
CHP1CD:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
CHP1DD:=SMA(CHP1CD,4,1);
CHP1ED:=SMA(CHP1DD,3,1);
CHP1FD:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
CHP201:=IF(CHP171<=25 AND CHP181<-95 AND CHP1FD>20 AND CHP1BD<-30 AND CHP1ED<30 AND CHP121>=-0.25 AND CHP141<25 AND CHP151<30 AND CHP161>50,70,0);
CHTD:=CHP201;
CHTO:=IF(CHPBD<90,CHPBD,100);
T6:=CHTD>50 AND CHTO<90;
CHTI:=T6 AND COUNT(T6,30)=1;
CHFD:=IF(CROSS(CHP3W,CHDB) AND VOL>1.5*MA(VOL,5),1,0);
抢反弹:CHTI OR CHFD;
{选股公式二:极底反攻}
CHP1W:=(HIGH+LOW+OPEN+2*CLOSE)/5;
CHP2W:=REF(CHP1W,1);
CHP3W:=SMA(MAX(CHP1W-CHP2W,0),10,1)/SMA(ABS(CHP1W-CHP2W),10,1)*100;
CHDB:=IF(COUNT(CHP3W<=14,2),30,0);
CHPAD:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
CHPBD:=100-ABS(CHPAD);
CHPED:=REF(LOW,1)*0.9;
CHPFD:=LOW*0.9;
CHP101:=(CHPFD*VOL+CHPED*(CAPITAL-VOL))/CAPITAL;
CHP2N:=LLV(LOW,3)<=LLV(LOW,60);
CHP3N:= C>O AND (C/O>1.03 OR C>1.03*REF(C,1));
极底反攻:CHP2N AND CHP3N;