飞狐黑马涨跌副图指标
源码
N:=14;M:=6;
Var1:=SUM(MAX(MAX(HIGH-LOW, ABS(HIGH-REF(CLOSE, 1))), ABS(LOW-REF(CLOSE, 1))), N);
Var2:=HIGH-REF(HIGH, 1);
Var3:=REF(LOW, 1)-LOW;
Var4:=SUM(IF(Var2>0 AND Var2>Var3, Var2, 0), N);
Var5:=SUM(IF(Var3>0 AND Var3>Var2, Var3, 0), N);
Var6:=Var4*100/Var1;
Var7:=Var5*100/Var1;
Var8:=MA(ABS(Var7-Var6)/(Var7+Var6)*100, M);
HM1:2*(Var8-Var7), COLORSTICK;
HM2:2*(Var6-Var7), COLORSTICK;
LL:2*(Var8-Var7);
PP:2*(Var6-Var7);
Var9:=HM1+HM2/2;
ZB3:0;