副图公式源码支持 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=G1-REF(G1,1);
GUP2:=100*EMA(EMA(GUP1,6),6)/EMA(EMA(ABS(GUP1),6),6);
GUP3:=LLV(GUP2,2)=LLV(GUP2,7) AND COUNT(GUP2<0,2) AND CROSS(GUP2,MA(GUP2,2));
GUP4:=FINANCE(37)<=60000;
GUP5:=(G1-REF(G1,20))/REF(G1,20)*100<0;
GUP6:=FILTER(GUP3=1,5) AND CCI>0 AND GUP4 AND GUP5;
买进:IF(GUP6,100,0),STICK,LINETHICK3,COLORRED;
DRAWTEXT(GUP6,70,' 买进'),COLORRED;
GUP12:=HHV(G4,9)-LLV(G2,9);
GUP13:=HHV(G4,9)-G1;
GUP14:=G1-LLV(G2,9);
GUP15:=GUP13/GUP12*100-70;
GUP16:=(G1-LLV(G2,60))/(HHV(G4,60)-LLV(G2,60))*100;
GUP17:=(2*G1+G4+G2)/4;
GUP18:=SMA(GUP14/GUP12*100,3,1);
GUP19:=LLV(G2,34);
GUP20:=SMA(GUP18,3,1)-SMA(GUP15,9,1);
GUP21:=IF(GUP20>100,GUP20-100,0);
GUP22:=HHV(G4,34);
GUP23:=EMA((GUP17-GUP19)/(GUP22-GUP19)*100,8);
GUP24:=EMA(GUP23,5);
STICKLINE(GUP23>0 AND GUP23-GUP24>=0,99,100,6,0),COLORRED;
STICKLINE(GUP23>0 AND GUP23-GUP24>=0,79,80,6,0),COLORRED;
STICKLINE(GUP23>0 AND GUP23-GUP24<0,99,100,6,0),COLORGREEN;
STICKLINE(GUP23>0 AND GUP23-GUP24<0,79,80,6,0),COLORGREEN;
STICKLINE(GUP23>0 AND GUP23-GUP24>=0,1,0,6,0),COLORRED;
STICKLINE(GUP23>0 AND GUP23-GUP24>=0,19,20,6,0),COLORRED;
STICKLINE(GUP23>0 AND GUP23-GUP24<0,1,0,6,0),COLORGREEN;
STICKLINE(GUP23>0 AND GUP23-GUP24<0,19,20,6,0),COLORGREEN;
GUP25:=EMA(100*(C-LLV(G2,34))/(HHV(H,34)-LLV(G2,34)),3);
超跌:IF(CROSS(GUP25,9),100,0),STICK,LINETHICK3,COLORMAGENTA;
DRAWTEXT(CROSS(GUP25,9),50,'超跌'),COLORMAGENTA;
GUP26:=EMA(G1,3);
GUP27:=EMA(G1,21);
GUP28:=BARSLAST(CROSS(GUP27,GUP26))>15;
GUP29:=VOL>MA(VOL,5)*2 AND VOL<MA(VOL,5)*5;
GUP30:=CROSS(GUP26,GUP27) AND GUP29 AND GUP28;
小牛:IF(GUP30,100,0),STICK,LINETHICK4,COLORYELLOW;
DRAWTEXT(GUP30,50,'小牛'),COLORYELLOW;
GUP31:=(G1-LLV(G2,9))/(HHV(G4,9)-LLV(G2,9))*100;
GUP32:=SMA(GUP31,3,1);
GUP33:=SMA(GUP32,3,1);
DRAWBAND(GUP32,RGB(139,10,10),GUP33,RGB(0,100,0));
IF(GUP32<GUP33,GUP32,DRAWNULL),COLORAA9900,LINETHICK1;
IF(GUP32<GUP33,GUP33,DRAWNULL),COLORAA9900,LINETHICK1;
选股公式源码
{选股公式一:买进}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=G1-REF(G1,1);
GUP2:=100*EMA(EMA(GUP1,6),6)/EMA(EMA(ABS(GUP1),6),6);
GUP3:=LLV(GUP2,2)=LLV(GUP2,7) AND COUNT(GUP2<0,2) AND CROSS(GUP2,MA(GUP2,2));
GUP4:=FINANCE(37)<=60000;
GUP5:=(G1-REF(G1,20))/REF(G1,20)*100<0;
GUP6:=FILTER(GUP3=1,5) AND CCI>0 AND GUP4 AND GUP5;
买进:GUP6,COLORRED;
{选股公式二:超跌}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP25:=EMA(100*(C-LLV(G2,34))/(HHV(H,34)-LLV(G2,34)),3);
超跌:CROSS(GUP25,9),COLORMAGENTA;
{选股公式三:小牛}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP12:=HHV(G4,9)-LLV(G2,9);
GUP13:=HHV(G4,9)-G1;
GUP14:=G1-LLV(G2,9);
GUP15:=GUP13/GUP12*100-70;
GUP26:=EMA(G1,3);
GUP27:=EMA(G1,21);
GUP28:=BARSLAST(CROSS(GUP27,GUP26))>15;
GUP29:=VOL>MA(VOL,5)*2 AND VOL<MA(VOL,5)*5;
GUP30:=CROSS(GUP26,GUP27) AND GUP29 AND GUP28;
小牛:GUP30,COLORYELLOW; |