飞狐上证脉波线/深成脉波线/深大盘风向/深大盘活筹副图指标
源码
{上证脉波线}
X:=1;
Var1:=("1A0001$CLOSE"-REF("1A0001$CLOSE",X))/REF("1A0001$CLOSE",X);
Var2:=(CLOSE-REF(CLOSE,X))/REF(CLOSE,X);
Var3:=("1A0001$VOL"-REF("1A0001$VOL",X))/REF("1A0001$VOL",X);
Var4:=(VOL-REF(VOL,X))/REF(VOL,X);
Z: Var1-Var2;
Q: Var3-Var4;
{深成脉波线}
X:=1;
Var1:=("399001$CLOSE"-REF("399001$CLOSE",X))/REF("399001$CLOSE",X);
Var2:=(CLOSE-REF(CLOSE,X))/REF(CLOSE,X);
Var3:=("399001$VOL"-REF("399001$VOL",X))/REF("399001$VOL",X);
Var4:=(VOL-REF(VOL,X))/REF(VOL,X);
Z: Var1-Var2;
Q: Var3-Var4;
{深大盘风向}
FZ:=("399106$AMOUNT");
Var1:=SMA(FZ,10,1)/100000000;
C2:=EMA(Var1,13);
CS2:=(Var1-C2)/C2*100;
深大盘综合风向:CS2 colorred pointdot;
STICKLINE(CS2>=0,0,CS2,5,0),COLORred;
STICKLINE(CS2<=0,0,CS2,5,0),COLORff9999;
FZ发财:STICKLINE(C>0,0,0,6,0);
{深大盘活筹}
FZ:=("399106$AMOUNT");
Var1:=SMA(FZ,10,1)/100000000;
FZ发财:Var1 pointdot;
Var2:=REF(Var1,1);
MA5:MA(Var1,5);
MA10:MA(Var1,10);
MA30:MA(Var1,30);
STICKLINE(Var1>Var2,Var1,Var2,8,0),COLORred;
STICKLINE(Var1