副图公式 源码支持手机/电脑
GUA1:=EMA(C,4);
GUA2:=EMA(SLOPE(C,20)*10+C,35);
STICKLINE(GUA1>=GUA2,LOW,HIGH,0,0),COLORLIRED;
STICKLINE(GUA1>=GUA2,CLOSE,OPEN,3,2),COLORLIRED;
STICKLINE(GUA1<GUA2,LOW,HIGH,0,0),COLORCYAN;
STICKLINE(GUA1<GUA2,CLOSE,OPEN,3,2),COLORCYAN;
STICKLINE(OPEN>CLOSE,CLOSE,OPEN,2.5,0),COLORCYAN;
GUB1:=DYNAINFO(4)>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85) AND CLOSE>OPEN AND CLOSE>=HHV(HIGH,10);
STICKLINE(C/REF(C,1)>=1.096 AND H=C,O,C,1,0),COLORYELLOW;
放量启动:=GUB1,NODRAW,COLORRED;
DRAWTEXT(GUB1,L-0.3,'放量启动'),COLORRED;
GUP1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GUP2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GUP3:=BARSLAST(CROSS(97,GUP1))<=1 AND BARSLAST(CROSS(GUP1,85))<=1;
GUP4:=BARSLAST(CROSS(97,GUP2))<=1 AND BARSLAST(CROSS(GUP2,85))<=1;
GUP5:=GUP3 AND GUP4;
GUP6:=BARSLAST(CROSS(97,GUP1))<=2 AND BARSLAST(CROSS(GUP1,85))<=1;
GUP7:=BARSLAST(CROSS(97,GUP2))<=2 AND BARSLAST(CROSS(GUP2,85))<=1;
GUP8:=GUP3 AND GUP4;
GUP9:=BARSLAST(CROSS(97,GUP1))<=3 AND BARSLAST(CROSS(GUP1,85))<=1;
GUP10:=BARSLAST(CROSS(97,GUP2))<=3 AND BARSLAST(CROSS(GUP2,85))<=1;
GUP11:=GUP9 AND GUP10 ;
GUP12:=REF(GUP5,1);
GUP13:=REF(GUP8,1);
GUP14:=REF(GUP11,1);
GUP15:=GUP1=100 AND GUP2=100 AND GUP5 ;
GUP16:=GUP1=100 AND GUP2=100 AND GUP8 ;
GUP17:=GUP1=100 AND GUP2=100 AND GUP11 ;
DRAWTEXT(GUP15 OR GUP16 OR GUP17,L-0.02,'短线爆发'),COLORFF00FF;
选股公式源码
{选股公式一:短线爆发}
GUP1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GUP2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GUP3:=BARSLAST(CROSS(97,GUP1))<=1 AND BARSLAST(CROSS(GUP1,85))<=1;
GUP4:=BARSLAST(CROSS(97,GUP2))<=1 AND BARSLAST(CROSS(GUP2,85))<=1;
GUP5:=GUP3 AND GUP4;
GUP6:=BARSLAST(CROSS(97,GUP1))<=2 AND BARSLAST(CROSS(GUP1,85))<=1;
GUP7:=BARSLAST(CROSS(97,GUP2))<=2 AND BARSLAST(CROSS(GUP2,85))<=1;
GUP8:=GUP3 AND GUP4;
GUP9:=BARSLAST(CROSS(97,GUP1))<=3 AND BARSLAST(CROSS(GUP1,85))<=1;
GUP10:=BARSLAST(CROSS(97,GUP2))<=3 AND BARSLAST(CROSS(GUP2,85))<=1;
GUP11:=GUP9 AND GUP10 ;
GUP12:=REF(GUP5,1);
GUP13:=REF(GUP8,1);
GUP14:=REF(GUP11,1);
GUP15:=GUP1=100 AND GUP2=100 AND GUP5 ;
GUP16:=GUP1=100 AND GUP2=100 AND GUP8 ;
GUP17:=GUP1=100 AND GUP2=100 AND GUP11 ;
短线爆发:GUP15 OR GUP16 OR GUP17,COLORFF00FF;
{选股公式二:放量启动}
GUP1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GUP2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GUP3:=BARSLAST(CROSS(97,GUP1))<=1 AND BARSLAST(CROSS(GUP1,85))<=1;
放量启动
YNAINFO(4)>0
AND HHV(HIGH,10)/LLV(LOW,10)<1.25
AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85)
AND CLOSE>OPEN
AND CLOSE>=HHV(HIGH,10); |