cheatcountry

Optimal Weighted Moving Average

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!
版本注释: updated to make it consistent with my other indicators
版本注释: fixed issue with default resolution
开源脚本

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

想在图表上使用此脚本?

评论

nice one very useful
回复
@pacpern, thank you!
回复
Very interesting! Does it repaint?
回复
@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!
回复
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.
and this needs to be calculated for 14 period
please help
Thanks
回复
cheatcountry sakaragarwal
@sakaragarwal, send me a message and I can help you out
回复
sakaragarwal cheatcountry
@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.
/ 4
please help me with this
Thanks
回复
cheatcountry sakaragarwal
@sakaragarwal, I will make this one of my next indicators for you
回复
interesting, good work!
回复
@dilace, thank you!
回复