底部出击向上 买入崛起龙头【指标公式】(含选股)
指标公式源码可以用于通达信软件,第一部分源码可用于副图(部分可用于主图),第二部分选股公式源码可用作选股票使用(部分多个选股公式请分别使用)。
第一部分 副图公式 手机/电脑
CHP1:=REF(LOW,1);CHP2:=SMA(ABS(LOW-CHP1),3,1)/SMA(MAX(LOW-CHP1,0),3,1)*100;CHP3:=EMA(IF(CLOSE*1.3,CHP2*10,CHP2/10),3);CHP4:=LLV(LOW,30);CHP5:=HHV(CHP3,30);CHP6:=IF(MA(CLOSE,58),1,0);CHP7:=EMA(IF(LOW<=CHP4,(CHP3+CHP5*2)/2,0),3)/618*CHP6;CHP8:=IF(CHP7>100,100,CHP7);STICKLINE(CHP8>-120,0,CHP8,5,0),colorred;STICKLINE(CHP8REF(VOL,1) AND CLOSE>REF(CLOSE,1);STICKLINE(CHP11 AND COUNT(CHP11,18)=1,0,60,1,0),COLOR00EAEA;DRAWTEXT(CHP11 AND COUNT(CHP11,18)=1,55,' 底'),COLOR0099FF;DRAWTEXT(CHP11 AND COUNT(CHP11,18)=1,48,' 部'),COLOR0033FF;DRAWTEXT(CHP11 AND COUNT(CHP11,18)=1,41,' 出'),COLOR0099FF;DRAWTEXT(CHP11 AND COUNT(CHP11,18)=1,34,' 击'),COLOR0033FF;
第二部分 选股公式
{选股公式:底部出击}CHP9:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);CHP10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);CHP11:=CHP9REF(VOL,1) AND CLOSE>REF(CLOSE,1);底部出击:CHP11 AND COUNT(CHP11,18)=1;
第一部分 副图公式 手机/电脑
CHP1:=REF(LOW,1);CHP2:=SMA(ABS(LOW-CHP1),3,1)/SMA(MAX(LOW-CHP1,0),3,1)*100;CHP3:=EMA(IF(CLOSE*1.3,CHP2*10,CHP2/10),3);CHP4:=LLV(LOW,30);CHP5:=HHV(CHP3,30);CHP6:=IF(MA(CLOSE,58),1,0);CHP7:=EMA(IF(LOW<=CHP4,(CHP3+CHP5*2)/2,0),3)/618*CHP6;CHP8:=IF(CHP7>100,100,CHP7);STICKLINE(CHP8>-120,0,CHP8,5,0),colorred;STICKLINE(CHP8REF(VOL,1) AND CLOSE>REF(CLOSE,1);STICKLINE(CHP11 AND COUNT(CHP11,18)=1,0,60,1,0),COLOR00EAEA;DRAWTEXT(CHP11 AND COUNT(CHP11,18)=1,55,' 底'),COLOR0099FF;DRAWTEXT(CHP11 AND COUNT(CHP11,18)=1,48,' 部'),COLOR0033FF;DRAWTEXT(CHP11 AND COUNT(CHP11,18)=1,41,' 出'),COLOR0099FF;DRAWTEXT(CHP11 AND COUNT(CHP11,18)=1,34,' 击'),COLOR0033FF;
第二部分 选股公式
{选股公式:底部出击}CHP9:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);CHP10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);CHP11:=CHP9REF(VOL,1) AND CLOSE>REF(CLOSE,1);底部出击:CHP11 AND COUNT(CHP11,18)=1;