OmniTrader Forum - OmniTrader General Discussion
Volume Weighted Moving Average

^ Top
Rean

Posts: 105

Joined: 8/30/2013
Location: Johannesburg, South Africa

User Profile
 
Subject : Volume Weighted Moving Average
Posted : 9/11/2023 9:34 AM
Post #48858

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


https://www.omnitrader.com/currentclients/otforum/thread-view.asp?threadid=16626&posts=1