副图公式源码支持 手机/电脑
GUPE:=REF(LOW,1)*0.9;
GUPF:=LOW*0.9;
GUP10:=(GUPF*VOL+GUPE*(CAPITAL-VOL))/CAPITAL;
GUP11:=EMA(GUP10,30);
GUP12:=CLOSE-REF(CLOSE,1);
GUP13:=MAX(GUP12,0);
GUP14:=ABS(GUP12);
GUP15:=SMA(GUP13,7,1)/SMA(GUP14,7,1)*100;
GUP16:=SMA(GUP13,13,1)/SMA(GUP14,13,1)*100;
GUP17:=BARSCOUNT(CLOSE);
GUP18:=SMA(MAX(GUP12,0),6,1)/SMA(ABS(GUP12),6,1)*100;
GUP19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
GUP1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
GUP1B:=SMA((SMA(GUP1A,4,1)-50)*2,3,1);
GUP1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
GUP1D:=SMA(GUP1C,4,1);
GUP1E:=SMA(GUP1D,3,1);
GUP1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
GUP20:=GUP18<=25 AND GUP19<-95 AND GUP1F>20 AND GUP1B<-30 AND GUP1E<30 AND GUP11-CLOSE>=-0.25 AND GUP15<22 AND GUP16<28 AND GUP17>50;
STICKLINE(GUP20,0,0.3,5,0),LINETHICK4,COLORRED;
DRAWTEXT(CROSS(GUP20,0.5) AND COUNT(GUP20=1,10)=1,0.3,'主力建仓') , COLORRED;
CGUP2:=REF(LOW,1);
CGUP3:=SMA(ABS(LOW-CGUP2),13,1)/SMA(MAX(LOW-CGUP2,0),13,1)*100;
CGUP4:=EMA(IF(CLOSE*1.2,CGUP3*13,CGUP3/13),13);
CGUP5:=LLV(LOW,34);
CGUP6:=HHV(CGUP4,34);
CGUP7:=IF(LLV(LOW,56),1,0);
CGUP8:=EMA(IF(LOW<=CGUP5,(CGUP4+CGUP6*2)/2,0),3)/618*CGUP7;
CAA:=CGUP8>REF(CGUP8,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;
选股公式源码
{选股公式一:主力建仓}
GUPE:=REF(LOW,1)*0.9;
GUPF:=LOW*0.9;
GUP10:=(GUPF*VOL+GUPE*(CAPITAL-VOL))/CAPITAL;
GUP11:=EMA(GUP10,30);
GUP12:=CLOSE-REF(CLOSE,1);
GUP13:=MAX(GUP12,0);
GUP14:=ABS(GUP12);
GUP15:=SMA(GUP13,7,1)/SMA(GUP14,7,1)*100;
GUP16:=SMA(GUP13,13,1)/SMA(GUP14,13,1)*100;
GUP17:=BARSCOUNT(CLOSE);
GUP18:=SMA(MAX(GUP12,0),6,1)/SMA(ABS(GUP12),6,1)*100;
GUP19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
GUP1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
GUP1B:=SMA((SMA(GUP1A,4,1)-50)*2,3,1);
GUP1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
GUP1D:=SMA(GUP1C,4,1);
GUP1E:=SMA(GUP1D,3,1);
GUP1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
GUP20:=GUP18<=25 AND GUP19<-95 AND GUP1F>20 AND GUP1B<-30 AND GUP1E<30 AND GUP11-CLOSE>=-0.25 AND GUP15<22 AND GUP16<28 AND GUP17>50;
主力建仓:CROSS(GUP20,0.5) AND COUNT(GUP20=1,10)=1;
{选股公式二:爆发}
CGUP2:=REF(LOW,1);
CGUP3:=SMA(ABS(LOW-CGUP2),13,1)/SMA(MAX(LOW-CGUP2,0),13,1)*100;
CGUP4:=EMA(IF(CLOSE*1.2,CGUP3*13,CGUP3/13),13);
CGUP5:=LLV(LOW,34);
CGUP6:=HHV(CGUP4,34);
CGUP7:=IF(LLV(LOW,56),1,0);
CGUP8:=EMA(IF(LOW<=CGUP5,(CGUP4+CGUP6*2)/2,0),3)/618*CGUP7;
CAA:=CGUP8>REF(CGUP8,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);
|