通达信主力轨迹指标 实战出真知,简单有效的副图
不废话,实盘中请观察sumj与emaj的颜色和位置变化,对应股价位置自行决定买卖!!!源码如下:
{主力轨迹:}
{X:(2,100,2),M:(2,100,5),N:(2,100,5)}
当日净额:L2_AMO(0,2)+L2_AMO(1,2)-L2_AMO(0,3)-L2_AMO(1,3),NODRAW;
STICKLINE(当日净额>0,0,当日净额,1,0),COLOR000099;
STICKLINE(当日净额<0,0,当日净额,1,0),COLORCYAN;
SUMJ:SUM(当日净额,X),LINETHICK1,COLORWHITE;
NOTEXT1:IF(SUMJ>REF(SUMJ,1),SUMJ,DRAWNULL),COLORMAGENTA;
NOTEXT2:IF(SUMJ<REF(SUMJ,1),SUMJ,DRAWNULL),COLORGREEN;
EMAJ:EMA(SUMJ,MIN(M,N)),LINETHICK1,COLORYELLOW;
NOTEXT3:IF(EMAJ>REF(EMAJ,1),EMAJ,DRAWNULL),COLORRED;
NOTEXT4:IF(EMAJ<REF(EMAJ,1),EMAJ,DRAWNULL),COLORBLUE;