TradingView
cheatcountry
May 14, 2020 5:31 PM

Optimal Weighted Moving Average 

Apple Inc.NASDAQ

Description

The Optimal Weighted Moving Average was created by Thomas Hutchinson and Peter G. Zhang, Ph.D. (Stocks & Commodities V. 11:12 (500-505)) and it is very similar to a classic weighted moving average but it uses the correlation between the input and the optimal weighted moving average output to use as the weights. Buy when the line turns green and sell when it turns red.

Let me know if you would like to see me publish any other scripts or if you want something custom done!

Release Notes

updated to make it consistent with my other indicators

Release Notes

fixed issue with default resolution
Comments
pacpern
nice one very useful
cheatcountry
@pacpern, thank you!
victobio
Very interesting! Does it repaint?
cheatcountry
@victobio, by default it doesn't repaint but I have added an option that allows you to change that. please let me know what you think!
SCALPER_PRO_TRADING
Thanks a lot for posting this,
need your help,
i want to plot weighted close indicator, but its not available, can you please share the code for this indicator.
[( close*2 + high + close ) / 4 ] and this needs to be calculated for 14 period
please help
Thanks
cheatcountry
@sakaragarwal, send me a message and I can help you out
SCALPER_PRO_TRADING
@cheatcountry,
i want to plot weighted close indicator, i mean i want the code for plotting weighted close line on the chart
The Weighted Close indicator is calculated by multiplying the close by two, adding the high and the low to this product, and dividing by four. The result is the average price with extra weight given to the closing price.
[ ( close * 2 ) + high + low ] / 4
please help me with this
Thanks
cheatcountry
@sakaragarwal, I will make this one of my next indicators for you
dilace
interesting, good work!
cheatcountry
@dilace, thank you!
More