飞狐玄黄强弱副图指标
源码
Var1:=(EMA(close,13)+EMA(Open,13)+EMA(HIGH,13)+EMA(LOW,13))/4;
Var2:=(H+L+O+C)/4;
Var3:=Ema(var2/var1,5)*10;
Var4:=(EMA(INDEXC,13)+EMA(INDEXO,13)+EMA(INDEXH,13)+EMA(INDEXL,13))/4;
Var5:=(INDEXC+INDEXO+INDEXH+INDEXL)/4;
Var6:=Ema(Var5/Var4,5)*10;
var7:=var3-var6;
STICKLINE(ref(var7,1)>=0,0,var7*100,7,0),color1010FF;
STICKLINE(ref(var7,1)>=0,0,var7* 80,7,0),color1070FF;
STICKLINE(ref(var7,1)>=0,0,var7* 60,7,0),color1099FF;
STICKLINE(ref(var7,1)>=0,0,var7* 40,7,0),color10BAFF;
STICKLINE(ref(var7,1)>=0,0,var7* 20,7,0),color10D7FF;
STICKLINE(var7< 0,0,var7*100,7,0),color10FF10;
STICKLINE(var7< 0,0,var7* 80,7,0),COLOR33CC00;
STICKLINE(var7< 0,0,var7* 60,7,0),COLOR339900;
STICKLINE(var7< 0,0,var7* 40,7,0),COLOR337700;
STICKLINE(var7< 0,0,var7* 20,7,0),COLOR005500;
个股参数:Var3*50-500,COLORccffff;
大盘参数:Var6*50-500,COLOR99ff00;
对应之差:个股参数 - 大盘参数,,POINTDOT,COLOR0077ff;