指标组合而成,有改进,粉红与绿色线为量能,其它三条线为均线乖离,0轴为转折线,20以上为强势区.期待进一步优化
20,COLORMAGENTA,LINEDASHDOT;-20,COLORCYAN,LINEDASHDOT;
M1:=2;m2:=60;
均价:=(C+(H+l)/2*0.382+(c+O)/2*0.618)/2;
差价:=((c-REF(c,1))*0.382+(C-O)*0.618)*0.382;
乖离率:=(SMA(均价,M1,1)-MA(SMA(均价,2,1),M2))/MA(SMA(均价,2,1),M2)*100,COLORWHITE;
MID:乖离率,COLORWHITE;
MA1:ema(eMA(MID,4)-EMA(差价,246)/4,2),COLORRED;
MA2:EMA(MA1,5),COLORYELLOW;
PARTLINE(MA1<=REF(MA1,1) ,MA1),COLOR22FF22,COLOR00bb00;
PARTLINE(MA2<=REF(MA2,1),MA2),COLORFFCC66;
PARTLINE(乖离率<=MA1 ,乖离率),COLORGRAY;
QJ:=ema(eMA(均价,4)-EMA(差价,246)/4,2);
J1:=IF(CLOSE>QJ,VOL,0);
J2:=IF(CLOSE
趋势:EMA(量能,3),COLORGREEN;
VAR3:(量能-趋势),LINETHICK;
共振点:=CROSS(MID,mA1)AND VAR3>ref(VAR3,1)AND (-15>ref(MA1,1) OR (MA1>-5 ));
XG:IF(共振点,15,0),COLOR00AA99;