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!
Note di rilascio: updated to make it consistent with my other indicators
Note di rilascio: fixed issue with default resolution
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Commenti

nice one very useful
Rispondi
@pacpern, thank you!
Rispondi
Very interesting! Does it repaint?
Rispondi
@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!
Rispondi
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
Rispondi
cheatcountry sakaragarwal
@sakaragarwal, send me a message and I can help you out
Rispondi
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
Rispondi
cheatcountry sakaragarwal
@sakaragarwal, I will make this one of my next indicators for you
Rispondi
interesting, good work!
Rispondi
@dilace, thank you!
Rispondi