副图公式源码支持 手机/电脑
M4:=MA(CLOSE,4);
M10:=MA(CLOSE,10);
M20:=MA(CLOSE,20);
M62:=MA(CLOSE,62);
GUA4:=LLVBARS(M4,4);
GUA622:=LLVBARS(M62,20);
GUA20:=LLVBARS(M20,5);
GUA625:=LLVBARS(M62,50);
GUA623:=LLVBARS(M62,30);
GUB1:=EMA(CLOSE,12)-EMA(CLOSE,26);
GUB2:=EMA(GUB1,9); GUB3:=GUB1-GUB2;
GUB9:=COUNT(GUA4=1,10);
寻牛
GUA623>3 AND GUA623<29 AND GUA4=1 AND M4>M20 AND M20>M62 AND GUB3>-0.022 AND GUB9=1 AND SLOPE(M62,5)<0.035);
GUP1:=NAMELIKE(4)=0 AND NAMELIKE(5)=0 AND NAMELIKE(6)=0 AND NAMELIKE(7)=0;
GUP2:=DYNAINFO(4)>0;
GUP3:=IF(CODELIKE(8) OR CODELIKE(9),0,1);
GUP4:=IF(CODELIKE(10),0,1);
GUP5:=GUP1 AND GUP2 AND GUP3 AND GUP4;
GUP6:=MA(CLOSE,10);
GUP7:=MA(CLOSE,54);
GUP8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
GUP9:=FILTER(GUP8,10);
GUP10:=BARSLAST(GUP9);
GUP11:=REF(HIGH,GUP10+2);
GUP12:=REF(HIGH,GUP10+1);
GUP13:=REF(HIGH,GUP10);
GUP14:=MAX(GUP11,GUP12);
GUP15:=MAX(GUP14,GUP13);
GUP16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>3.5;
GUP17:=GUP10<150;
GUP18:=(OPEN-GUP15)/GUP15*100<30;
GUP19:=(CLOSE-LLV(LOW,GUP10))/LLV(LOW,GUP10)*100<50;
GUP20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
GUP21:=VOL/MA(VOL,5)<3.5;
GUP22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
GUP23:=GUP16 AND GUP17 AND GUP18 AND GUP19 AND GUP20 AND GUP21 AND GUP22;
GUP24:=MA(CLOSE,20);
GUP25:=GUP24+2*STD(CLOSE,20);
GUP26:=CROSS(CLOSE,GUP25);
GUP27:=MA((LOW+HIGH+CLOSE)/3,5);
GUP28:=HHV(GUP27,60);
GUP29:=CROSS(CLOSE,GUP28*0.95) OR CROSS(CLOSE,GUP28*0.98);
GUP30:=GUP26 AND GUP23 AND GUP29;
GUP31:=MA(CLOSE,25)+MA(CLOSE,25)*20/100*0.35;
GUP32:=(MA(MA(HIGH,25),25)-MA(MA(LOW,25),25))*1+MA(MA(HIGH,25),25);
GUP33:=REF(CLOSE<GUP32 OR CLOSE<GUP31,1) AND CLOSE>GUP32 AND CLOSE>GUP31;
GUP34:=GUP30 OR GUP33;
抓牛:GUP34 AND GUP5 AND CLOSE/REF(CLOSE,1)>1.05 AND REF(CLOSE,1)/REF(CLOSE,2)<1.03 AND REF(CLOSE>3.7,1) AND REF(CLOSE<19,1) AND CAPITAL/100/10000<=15 AND OPEN/REF(CLOSE,1)<1.05 AND CLOSE>OPEN,COLORFF00FF;
选股公式源码
{选股公式一:寻牛}
M4:=MA(CLOSE,4);
M10:=MA(CLOSE,10);
M20:=MA(CLOSE,20);
M62:=MA(CLOSE,62);
GUA4:=LLVBARS(M4,4);
GUA622:=LLVBARS(M62,20);
GUA20:=LLVBARS(M20,5);
GUA625:=LLVBARS(M62,50);
GUA623:=LLVBARS(M62,30);
GUB1:=EMA(CLOSE,12)-EMA(CLOSE,26);
GUB2:=EMA(GUB1,9); GUB3:=GUB1-GUB2;
GUB9:=COUNT(GUA4=1,10);
寻牛GUA623>3 AND GUA623<29 AND GUA4=1 AND M4>M20 AND M20>M62 AND GUB3>-0.022 AND GUB9=1 AND SLOPE(M62,5)<0.035);
{选股公式二:抓牛}
GUP1:=NAMELIKE(4)=0 AND NAMELIKE(5)=0 AND NAMELIKE(6)=0 AND NAMELIKE(7)=0;
GUP2:=DYNAINFO(4)>0;
GUP3:=IF(CODELIKE(8) OR CODELIKE(9),0,1);
GUP4:=IF(CODELIKE(10),0,1);
GUP5:=GUP1 AND GUP2 AND GUP3 AND GUP4;
GUP6:=MA(CLOSE,10);
GUP7:=MA(CLOSE,54);
GUP8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
GUP9:=FILTER(GUP8,10);
GUP10:=BARSLAST(GUP9);
GUP11:=REF(HIGH,GUP10+2);
GUP12:=REF(HIGH,GUP10+1);
GUP13:=REF(HIGH,GUP10);
GUP14:=MAX(GUP11,GUP12);
GUP15:=MAX(GUP14,GUP13);
GUP16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>3.5;
GUP17:=GUP10<150;
GUP18:=(OPEN-GUP15)/GUP15*100<30;
GUP19:=(CLOSE-LLV(LOW,GUP10))/LLV(LOW,GUP10)*100<50;
GUP20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
GUP21:=VOL/MA(VOL,5)<3.5;
GUP22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
GUP23:=GUP16 AND GUP17 AND GUP18 AND GUP19 AND GUP20 AND GUP21 AND GUP22;
GUP24:=MA(CLOSE,20);
GUP25:=GUP24+2*STD(CLOSE,20);
GUP26:=CROSS(CLOSE,GUP25);
GUP27:=MA((LOW+HIGH+CLOSE)/3,5);
GUP28:=HHV(GUP27,60);
GUP29:=CROSS(CLOSE,GUP28*0.95) OR CROSS(CLOSE,GUP28*0.98);
GUP30:=GUP26 AND GUP23 AND GUP29;
GUP31:=MA(CLOSE,25)+MA(CLOSE,25)*20/100*0.35;
GUP32:=(MA(MA(HIGH,25),25)-MA(MA(LOW,25),25))*1+MA(MA(HIGH,25),25);
GUP33:=REF(CLOSE<GUP32 OR CLOSE<GUP31,1) AND CLOSE>GUP32 AND CLOSE>GUP31;
GUP34:=GUP30 OR GUP33;
抓牛:GUP34 AND GUP5 AND CLOSE/REF(CLOSE,1)>1.05 AND REF(CLOSE,1)/REF(CLOSE,2)<1.03 AND REF(CLOSE>3.7,1) AND REF(CLOSE<19,1) AND CAPITAL/100/10000<=15 AND OPEN/REF(CLOSE,1)<1.05 AND CLOSE>OPEN,COLORFF00FF;
|