♥ 0 |
Hi Pete, I use VWMA (vol weighted moving average) with the following code: input length = 30; def vwma = Sum(volume * close, length) / Sum(volume, length); plot Value = vwma;
I am getting an error on this line below: input averageType2 = Type.VWMA I have tried to fix it but I can’t figure it out. The input on my charts for VWMA is 30. I hope you can help. Thank you so very much #wizard text: -period input price = close; input crossingType = {default above, below}; def avg1 = MovingAverage(averageType1, price, length1); def vwma = Sum(volume * close, length2) / Sum(volume, length2); signal.DefineColor(“Above”, GetColor(6)); signal.SetPaintingStrategy(if crossingType == crossingType.above
Marked as spam
|