九毛八公式指标
公式模块:
MA7:EMA(CLOSE,7),COLORFFFFFF;
MID:MA(CLOSE,20),COLORYELLOW;
input:N(0.1,0.01,10), M(2,1,10);{自己调节N值,守窄程度}
MA7:=EMA(CLOSE,7);
MID:=MA(CLOSE,20);
UPPER:=MID+2*STD(CLOSE,20);
LOWER:=MID-2*STD(CLOSE,20);
A1:=MAX(LOWER,UPPER);
A2:=MIN(LOWER,UPPER);
NH:=COUNT(ABS(A1-A2)/A2<N,M)=M;
UPER2:=UPPER>REF(UPPER,1) AND REF(UPPER,1)<REF(UPPER,2);
LOWER2:=LOWER>REF(LOWER,1);
XG:cross(c,MID) and NH and UPER2 AND LOWER2;