副图公式源码支持 手机/电脑
GUP1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
GUP2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
GUP3:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
GUP4:=(GUP1+GUP2+GUP3)/3;
GUPMA3:=MA(GUP4,3);
GUPMA10:=MA(GUP4,10);
TJ1:=GUPMA3-GUPMA10>0;
CZ:=GUPMA3-GUPMA10;
STICKLINE(TJ1,CZ,0,0,0),COLOR0000FF;
STICKLINE(TJ1,CZ,0,3,0),COLOR000099;
STICKLINE(TJ1,CZ,0,2,0),COLOR0000BB;
STICKLINE(TJ1,CZ,0,1,0),COLOR0000DD;
STICKLINE(TJ1,CZ,0,0.3,0),COLOR0000FF;
TJ2:=GUPMA3-GUPMA10<0;
STICKLINE(TJ2,CZ,0,0,0),COLOR00FF00;
STICKLINE(TJ2,CZ,0,3,0),COLOR009900;
STICKLINE(TJ2,CZ,0,2,0),COLOR00BB00;
STICKLINE(TJ2,CZ,0,1,0),COLOR00DD00;
STICKLINE(TJ2,CZ,0,0.3,0),COLOR00FF00;
STICKLINE(GUP4>9 AND FILTER(GUP4<REF(GUP4,1),5),CZ*1.5,0,1,0),colorblue;
DRAWTEXT(GUP4>9 AND FILTER(GUP4<REF(GUP4,1),5),CZ*1.2,'小顶'),COLOR00FF00;
GUA2:=HHV(GUP4>20,10);
GUA3:=COUNT(GUP4<-20,10)>=1;
STICKLINE(FILTER(GUP4<-9 AND GUP4>REF(GUP4,1),18),CZ*1.5,0,1,0),colormagenta;
DRAWTEXT(FILTER(GUP4<-9 AND GUP4>REF(GUP4,1),18),CZ*1.2,'小底'),COLOR0000FF;
STICKLINE(GUP4<-20 AND FILTER(GUP4> REF(GUP4,1),5),CZ*1.5,0,1,0),coloryellow;
DRAWTEXT(GUP4<-20 AND FILTER(GUP4> REF(GUP4,1),5),CZ*1.3,'大底'),coloryellow;
STICKLINE(GUP4>20 AND FILTER(GUP4<REF(GUP4,1),5),CZ*1.5,0,1,0),COLORFFFF00;
DRAWTEXT(GUP4>20 AND FILTER(GUP4<REF(GUP4,1),5),CZ*1.3,'大顶'),COLORFFFF00;
STICKLINE(GUA2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),CZ*1.5,0,1,0),COLOR00FFFF;
DRAWTEXT(GUA2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),CZ*1.4,'降'),COLOR00FFFF;
STICKLINE(GUA3 AND CROSS(MA(CLOSE,20)-2*STD(CLOSE,20),(REF(HIGH,1)+REF(LOW,1))/2),CZ*1.5,0,1,0),COLOR00FFFF;
DRAWTEXT(GUA3 AND CROSS(MA(CLOSE,20)-2*STD(CLOSE,20),(REF(HIGH,1)+REF(LOW,1))/2),CZ*1.4,'涨'),COLOR00FFFF;
选股公式源码
{选股公式一:小底}
GUP1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
GUP2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
GUP3:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
GUP4:=(GUP1+GUP2+GUP3)/3;
GUPMA3:=MA(GUP4,3);
GUPMA10:=MA(GUP4,10);
TJ1:=GUPMA3-GUPMA10>0;
CZ:=GUPMA3-GUPMA10;
小底:FILTER(GUP4<-9 AND GUP4>REF(GUP4,1),18);
{选股公式二:大底}
GUP1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
GUP2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
GUP3:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
GUP4:=(GUP1+GUP2+GUP3)/3;
GUPMA3:=MA(GUP4,3);
GUPMA10:=MA(GUP4,10);
TJ2:=GUPMA3-GUPMA10<0;
大底:GUP4<-20 AND FILTER(GUP4> REF(GUP4,1),5);
{选股公式三:涨}
GUP1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
GUP2:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
GUP3:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
GUP4:=(GUP1+GUP2+GUP3)/3;
GUPMA3:=MA(GUP4,3);
GUPMA10:=MA(GUP4,10);
TJ1:=GUPMA3-GUPMA10>0;
CZ:=GUPMA3-GUPMA10;
TJ2:=GUPMA3-GUPMA10<0;
GUA2:=HHV(GUP4>20,10);
GUA3:=COUNT(GUP4<-20,10)>=1;
涨:GUA3 AND CROSS(MA(CLOSE,20)-2*STD(CLOSE,20),(REF(HIGH,1)+REF(LOW,1))/2); |