幅图公式源码:
MID:=MA(C,20);
VART1:=POW((C-MID),2);
VART2:=MA(VART1,20);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
WIDTH:(UPPER-LOWER)/MID,COLORYELLOW;
MA6:MA(WIDTH,6),COLORWHITE;
MACD:(WIDTH-MA6)*2,NODRAW;
W1:STICKLINE(MACD>0.015,MACD,0,3,1),COLORRED;
W2:STICKLINE(MACD<-0.015,MACD,0,3,1),COLORCYAN;
选股公式源码
{调整充分选股}
MID:=MA(C,20);
VART1:=POW((C-MID),2);
VART2:=MA(VART1,20);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
WIDTH:=(UPPER-LOWER)/MID;
MA6:=MA(WIDTH,6);
MACD:=(WIDTH-MA6)*2;
W1:=STICKLINE(MACD>0.015,MACD,0,2,1);
W2:=STICKLINE(MACD<0.015 AND MACD>-0.015,-0.015,0.015,3,0);
调整充分选股:EXIST(W1,2) AND REF(W2,2) AND COUNT(W2,21)>=14;