副图公式源码支持 手机/电脑
M5:=MA(CLOSE,5);
M10:=MA(CLOSE,10);
M20:=MA(CLOSE,20);
GUP1:=IF(C>=M5,1,-1);
GUP2:=IF(C>=M10,1,-1);
GUP3:=IF(C>=M20,1,-1);
GUP4:=IF(M5>=REF(M5,1),1,-1);
GUP5:=IF(M10>=REF(M10,1),1,-1);
GUP6:=IF(M20>=REF(M20,1),1,-1);
趋势线
GUP1+GUP2+GUP3+GUP4+GUP5+GUP6)/6*100,COLORRED;
上涨:趋势线>=50,COLORYELLOW,POINTDOT,NODRAW;
STICKLINE(CROSS(上涨,0.1),0,100,0,6),COLORYELLOW;
GUA1:=REF(LOW,1);
GUA2:=(SMA(ABS(LOW-GUA1),13,1))/(SMA(MAX(LOW-GUA1,0),13,1))*4;
GUA3:=EMA(GUA2,13);
GUA4:=LLV(LOW,34);
GUA5:=EMA(IF(LOW<=GUA4,GUA3,0),3);
GUA6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUA7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUA8:=GUA6<REF(GUA7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(GUA8 AND COUNT(GUA8,18)=1,-100,10,4,0),COLORMAGENTA;
DRAWTEXT(GUA8 AND COUNT(GUA8,18)=1,-100,'↙跟庄'),COLORMAGENTA;
选股公式源码
{选股公式一:跟庄}
GUA1:=REF(LOW,1);
GUA2:=(SMA(ABS(LOW-GUA1),13,1))/(SMA(MAX(LOW-GUA1,0),13,1))*4;
GUA3:=EMA(GUA2,13);
GUA4:=LLV(LOW,34);
GUA5:=EMA(IF(LOW<=GUA4,GUA3,0),3);
GUA6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUA7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
GUA8:=GUA6<REF(GUA7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
跟庄:GUA8 AND COUNT(GUA8,18)=1;
{选股公式二:上涨}
M5:=MA(CLOSE,5);
M10:=MA(CLOSE,10);
M20:=MA(CLOSE,20);
GUP1:=IF(C>=M5,1,-1);
GUP2:=IF(C>=M10,1,-1);
GUP3:=IF(C>=M20,1,-1);
GUP4:=IF(M5>=REF(M5,1),1,-1);
GUP5:=IF(M10>=REF(M10,1),1,-1);
GUP6:=IF(M20>=REF(M20,1),1,-1);
趋势线:=(GUP1+GUP2+GUP3+GUP4+GUP5+GUP6)/6*100,COLORRED;
上涨:=趋势线>=50,COLORYELLOW;
上涨XG:CROSS(上涨,0.1);
|