源码
{其中PSTR为放量权重,设为1.6。NSTR为缩量权重,设为0.4。N为3。M为8。}
ori := IF(VOL>REF(VOL,1), (VOL/MA(VOL, 5))*((C-REF(C,1))/MA(C, 5)) * PSTR, -(MA(VOL, 5)/VOL)*((C-REF(C,1))/MA(C, 5)) * NSTR);
快速量比:= EMA(EMA(EMA(ori, N), N), N)*10;
慢速量比: MA(快速量比, M), COLORYELLOW, LINETHICK2;
STICKLINE(快速量比 > 慢速量比, 0, (快速量比-慢速量比), 7, 1), COLOR4444FF;
STICKLINE(快速量比 < 慢速量比, 0, (快速量比-慢速量比), 7, 1), COLORF8FCA0;