通达信量价共振副图公式

[复制链接]
查看85 | 回复0 | 2022-7-24 08:37:29 | 显示全部楼层 |阅读模式

通达信量价共振副图公式

M1:=2;m2:=60;
20,COLORMAGENTA,;-20,COLORCYAN;
均价:=(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;
IF(MA1<=REF(MA1,1) ,MA1,DRAWNULL),COLOR00bb00;
IF(MA2<=REF(MA2,1),MA2,DRAWNULL),COLORFFCC66;
IF(乖离率<=MA1 ,乖离率,DRAWNULL),COLORGRAY;

QJ:=ema(eMA(均价,4)-EMA(差价,246)/4,2);
J1:=IF(CLOSE>QJ,VOL,0);
J2:=IF(CLOSE<QJ,VOL,0);
量能:MA(SUM(J1-J2,15),4)/100000,COLORMAGENTA;
趋势:EMA(量能,3),COLORGREEN;
VAR3:=(量能-趋势);
共振点:=CROSS(MID,mA1)AND VAR3>ref(VAR3,1)AND (-15>ref(MA1,1) OR (MA1>-5 ));
XG:IF(共振点,10,0),COLOR00AA99;

015511333.JPG

015511333.JPG

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则