副图公式源码支持 手机/电脑
GUP1:=HHV(HIGH,9)-LLV(LOW,9);
GUP2:=HHV(HIGH,9)-CLOSE;
GUP3:=CLOSE-LLV(LOW,9);
GUP4:=((GUP2)/(GUP1))*(100)-70;
GUP6:=((2)*(CLOSE)+HIGH+LOW)/(4);
GUP7:=SMA(((GUP3)/(GUP1))*(100),3,1);
GUP8:=LLV(LOW,34);
GUP9:=SMA(GUP7,3,1)-SMA(GUP4,9,1);
GUP10:=IF((GUP9>100),GUP9-100,0);
GUP11:=HHV(HIGH,34);
GUA1:=EMA(((GUP6-GUP8)/(GUP11-GUP8))*(100),8);
GUA2:=EMA(GUA1,13);
STICKLINE(GUA1-GUA2>0,GUA1,GUA2,3,1),COLOR0000FF;
STICKLINE(GUA1-GUA2<0,GUA1,GUA2,3,0),COLOR00FF00;
GUB1:=(C*2+H+L)/4*10;
GUB2:=EMA(GUB1,13)-EMA(GUB1,34);
GUB3:=EMA(GUB2,5);
GUB4:=2*(GUB2-GUB3)*5.5;
GUB11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
GUB12:=(EMA(GUB11,3)-REF(EMA(GUB11,3),1))/REF(EMA(GUB11,3),1)*100;
STICKLINE(EMA(GUB11,3)<=13 AND GUB12>13,0,50,3,0),COLORRED;
GUB5:=(EMA(GUB11,3)<=13 AND GUB12>13) AND FILTER((EMA(GUB11,3)<=13 AND GUB12>13),10);
DRAWTEXT(GUB5,60,'买入'),COLORWHITE;
STICKLINE(EMA(GUB11,3)>60 AND EMA(GUB11,3)>REF(EMA(GUB11,3),1),100,95,15,1),COLORGREEN;
GUPE:=REF(LOW,1)*0.9;
GUPF:=LOW*0.9;
GUP12:=(GUPF*VOL+GUPE*(CAPITAL-VOL))/CAPITAL;
GUP13:=EMA(GUP12,30);
GUP14:=CLOSE-REF(CLOSE,1);
GUP15:=MAX(GUP14,0);
GUP16:=ABS(GUP14);
GUP17:=SMA(GUP15,7,1)/SMA(GUP16,7,1)*100;
GUP18:=SMA(GUP15,13,1)/SMA(GUP16,13,1)*100;
GUP19:=BARSCOUNT(CLOSE);
GUP20:=SMA(MAX(GUP14,0),6,1)/SMA(ABS(GUP14),6,1)*100;
GUP21:=(-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;
GUP22:=GUP20<=25 AND GUP21<-95 AND GUP1F>20 AND GUP1B<-30 AND GUP1E<30 AND GUP11-CLOSE>=-0.25 AND GUP17<22 AND GUP18<28 AND GUP19>50;
STICKLINE(GUP22,0,70,3,0),COLORMAGENTA;
DRAWTEXT(CROSS(GUP22,0.5) AND COUNT(GUP22=1,10)=1,80,'强势买入'),COLORMAGENTA;
选股公式源码
{选股公式一:买入}
GUB1:=(C*2+H+L)/4*10;
GUB2:=EMA(GUB1,13)-EMA(GUB1,34);
GUB3:=EMA(GUB2,5);
GUB4:=2*(GUB2-GUB3)*5.5;
GUB11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
GUB12:=(EMA(GUB11,3)-REF(EMA(GUB11,3),1))/REF(EMA(GUB11,3),1)*100;
GUB5:=(EMA(GUB11,3)<=13 AND GUB12>13) AND FILTER((EMA(GUB11,3)<=13 AND GUB12>13),10);
买入:GUB5;
{选股公式二:强势买入}
GUP11:=HHV(HIGH,34);
GUPE:=REF(LOW,1)*0.9;
GUPF:=LOW*0.9;
GUP12:=(GUPF*VOL+GUPE*(CAPITAL-VOL))/CAPITAL;
GUP13:=EMA(GUP12,30);
GUP14:=CLOSE-REF(CLOSE,1);
GUP15:=MAX(GUP14,0);
GUP16:=ABS(GUP14);
GUP17:=SMA(GUP15,7,1)/SMA(GUP16,7,1)*100;
GUP18:=SMA(GUP15,13,1)/SMA(GUP16,13,1)*100;
GUP19:=BARSCOUNT(CLOSE);
GUP20:=SMA(MAX(GUP14,0),6,1)/SMA(ABS(GUP14),6,1)*100;
GUP21:=(-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;
GUP22:=GUP20<=25 AND GUP21<-95 AND GUP1F>20 AND GUP1B<-30 AND GUP1E<30 AND GUP11-CLOSE>=-0.25 AND GUP17<22 AND GUP18<28 AND GUP19>50;
强势买入:CROSS(GUP22,0.5) AND COUNT(GUP22=1,10)=1; |