muratm82

Vwma Oscillator [MMD]

muratm82 Updated   
This line calculates the exponential moving average (EMA) of the product of the close price and volume, divided by the EMA of the volume. The EMA is calculated over a period of 4 bars.
This line calculates the difference between the value of a1 and the volume-weighted moving average (VWMA) of the close price. The VWMA is calculated over a period of 8 bars.
This line calculates a3 as twice the VWMA of a2 over a period of 8 bars, minus the VWMA of a2 over a period of 16 bars.
This line plots the value of a3 on the chart. The color of the plot is determined by the condition inside the color argument. If a3 is within 20% of its previous value (a3) in either direction, the color is set to silver. Otherwise, if a3 is greater than 0, the color is set to green; otherwise, it is set to red. The linewidth parameter sets the thickness of the plot, and the style parameter specifies that circles should be used to plot the values.
These lines plot two horizontal lines on the chart, one at 80% of the previous a3 value (a3*0.8) and the other at 120% of the previous a3 value (a3*1.2). The transp=100 parameter makes the lines transparent. The fill function is then used to fill the area between these lines with either a red or green color, depending on whether a3 at the current bar is greater or smaller than the corresponding values.
This line plots a horizontal line at a value of 0 on the chart. The color is set to gray, and the line width is set to 2.

Overall, this indicator calculates the values of a1, a2, and a3 based on moving averages and
Release Notes:
Added Sar Ema Columns
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?