大智慧指数副图指标
源码
{指数副图:n1:8}
STICKLINE(INDEXC>=INDEXO,INDEXC,INDEXO,8,1),COLORRED;
STICKLINE(INDEXC>=INDEXO,INDEXO,INDEXL,0.1,0),COLORRED;
STICKLINE(INDEXC>=INDEXO,INDEXC,INDEXH,0.1,0),COLORRED;
STICKLINE(INDEXC<=INDEXO,INDEXC,INDEXO,8,0),COLORCYAN;
STICKLINE(INDEXC<=INDEXO,INDEXH,INDEXO,0.1,0),COLORCYAN;
STICKLINE(INDEXC<=INDEXO,INDEXC,INDEXL,0.1,0),COLORCYAN;
压力支撑:hhv(INDEXC,100),colorgray;
x1:EMA(INDEXC,N1),coloryellow;
jj:=(INDEXh+INDEXl+3*INDEXC)/5;
Var21:=eMA(jj,5);Var22:=eMA(jj,13);Var23:=eMA(jj,21);Var24:=eMA(jj,34);h1a:=(var21+var22+var23+var24)/4;
成本和谐:ma(h1a,5),colorred,linethick2;
sg:ema(hhv(INDEXh,1),8),colorMAGENTA;
X11:stickline(成本和谐>ref(成本和谐,1) , 成本和谐*0.998,成本和谐*1.002,8,0),colorred,linethick2;
X21:stickline(成本和谐<ref(成本和谐,1) , 成本和谐*0.998,成本和谐*1.002,8,0),colorgray,linethick3;
x30:=x1<ref(x1,1) and c<x1;
X31:stickline(sg<ref(sg,1) or x30, sg*0.998,sg*1.004,8,0),colorblue,linethick3;