Rean
 Veteran
 Posts: 105
Joined: 8/30/2013
Location: Johannesburg, South Africa
User Profile |
May I ask for help to code the VWMA(34) indicator via the Quick Indicator?
I run RT, I don't have OT Pro.
This site has more information about the indicator and how it's calculated.:
https://www.tradingsetupsreview.com/volume-weighted-moving-average-vwma/
This is what I have tried myself:
#Indicator
Dim fValue As Single
fValue = (average-close(34) * average-volume(34)) / average-volume(34)
PlotPrice("Value", fValue)
Return fValue
|