副图公式源码支持 手机/电脑
CHPE:=REF(LOW,1)*0.9;
CHPF:=LOW*0.9;
CHP10:=(CHPF*VOL+CHPE*(CAPITAL-VOL))/CAPITAL;
CHP11:=EMA(CHP10,30);
CHP12:=CLOSE-REF(CLOSE,1);
CHP13:=MAX(CHP12,0);
CHP14:=ABS(CHP12);
CHP15:=SMA(CHP13,7,1)/SMA(CHP14,7,1)*100;
CHP16:=SMA(CHP13,13,1)/SMA(CHP14,13,1)*100;
CHP17:=BARSCOUNT(CLOSE);
CHP18:=SMA(MAX(CHP12,0),6,1)/SMA(ABS(CHP12),6,1)*100;
CHP19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
CHP1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
CHP1B:=SMA((SMA(CHP1A,4,1)-50)*2,3,1);
CHP1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
CHP1D:=SMA(CHP1C,4,1);
CHP1E:=SMA(CHP1D,3,1);
CHP1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
CHP20:=CHP18<=25 AND CHP19<-95 AND CHP1F>20 AND CHP1B<-30 AND CHP1E<30 AND CHP11-CLOSE>=-0.25 AND CHP15<22 AND CHP16<28 AND CHP17>50;
STICKLINE(CHP20,0,0.3,5,0),LINETHICK4,COLORRED;
DRAWTEXT(CROSS(CHP20,0.5) AND COUNT(CHP20=1,10)=1,0.3,'主力建仓') , COLORRED;
CCHP2:=REF(LOW,1);
CCHP3:=SMA(ABS(LOW-CCHP2),13,1)/SMA(MAX(LOW-CCHP2,0),13,1)*100;
CCHP4:=EMA(IF(CLOSE*1.2,CCHP3*13,CCHP3/13),13);
CCHP5:=LLV(LOW,34);
CCHP6:=HHV(CCHP4,34);
CCHP7:=IF(LLV(LOW,56),1,0);
CCHP8:=EMA(IF(LOW<=CCHP5,(CCHP4+CCHP6*2)/2,0),3)/618*CCHP7;
CAA:=CCHP8>REF(CCHP8,1);
CDR:=100;ZRQ:=3;
CDJ:=REF(LLV(L,100),3);
CZD:=REFDATE(CDJ,DATE);
CXG:=L=CZD;
CXGA:=CAA AND CXG,COLORRED,LINETHICK2;
CXG1:=CXGA>REF(CXGA,1);
爆发:CXG1>REF(CXG1,1),COLORRED;
STICKLINE(FILTER(爆发>=1,5),1,0,4,0),COLORRED;
DRAWTEXT(FILTER(爆发=1,5),0.8,'--爆发'),COLORRED;
STICKLINE(爆发,0.8,0,1,0),COLORYELLOW;
STICKLINE(爆发,0.6,0,2,0),COLOR00FF00;
STICKLINE(爆发,0.2,0,2,0),COLORBLUE;
STICKLINE(爆发,0.6,0,0.5,0),COLORRED;
STICKLINE(爆发,0.4,0,1,0),COLOR00FF00;
STICKLINE(爆发,0.2,0,2,0),COLORBLUE;
选股公式源码
{选股公式一:主力建仓}
CHPE:=REF(LOW,1)*0.9;
CHPF:=LOW*0.9;
CHP10:=(CHPF*VOL+CHPE*(CAPITAL-VOL))/CAPITAL;
CHP11:=EMA(CHP10,30);
CHP12:=CLOSE-REF(CLOSE,1);
CHP13:=MAX(CHP12,0);
CHP14:=ABS(CHP12);
CHP15:=SMA(CHP13,7,1)/SMA(CHP14,7,1)*100;
CHP16:=SMA(CHP13,13,1)/SMA(CHP14,13,1)*100;
CHP17:=BARSCOUNT(CLOSE);
CHP18:=SMA(MAX(CHP12,0),6,1)/SMA(ABS(CHP12),6,1)*100;
CHP19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
CHP1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
CHP1B:=SMA((SMA(CHP1A,4,1)-50)*2,3,1);
CHP1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
CHP1D:=SMA(CHP1C,4,1);
CHP1E:=SMA(CHP1D,3,1);
CHP1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
CHP20:=CHP18<=25 AND CHP19<-95 AND CHP1F>20 AND CHP1B<-30 AND CHP1E<30 AND CHP11-CLOSE>=-0.25 AND CHP15<22 AND CHP16<28 AND CHP17>50;
主力建仓:CROSS(CHP20,0.5) AND COUNT(CHP20=1,10)=1;
{选股公式二:爆发}
CCHP2:=REF(LOW,1);
CCHP3:=SMA(ABS(LOW-CCHP2),13,1)/SMA(MAX(LOW-CCHP2,0),13,1)*100;
CCHP4:=EMA(IF(CLOSE*1.2,CCHP3*13,CCHP3/13),13);
CCHP5:=LLV(LOW,34);
CCHP6:=HHV(CCHP4,34);
CCHP7:=IF(LLV(LOW,56),1,0);
CCHP8:=EMA(IF(LOW<=CCHP5,(CCHP4+CCHP6*2)/2,0),3)/618*CCHP7;
CAA:=CCHP8>REF(CCHP8,1);
CDR:=100;ZRQ:=3;
CDJ:=REF(LLV(L,100),3);
CZD:=REFDATE(CDJ,DATE);
CXG:=L=CZD;
CXGA:=CAA AND CXG,COLORRED,LINETHICK2;
CXG1:=CXGA>REF(CXGA,1);
爆发:=CXG1>REF(CXG1,1),COLORRED;
爆发XG:FILTER(爆发=1,5); |