muratm82

Vwma Oscillator [MMD]

muratm82 已更新   
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
版本注释:
Added Sar Ema Columns
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?