OPEN-SOURCE SCRIPT

Ratio OCHL Averager - An Alternative to VWAP

Introduction

I had the idea to make this indicator thanks to dpanday with the support of coppermine and @Reika. Vwap is a non parametric indicator based on volume used by lot of traders and institutions, its non parametric particularity makes it great because it don't need to go through parameter optimization. Today i present a similar indicator called Ratio OCHL Averager based on exponential averaging by using the ratio of open-close to high-low range by using monthly high/low.

The Indicator

The indicator can more recursive by checking the "recursive" option, this allow to use the indicator output instead of the open price for the calculation of the ratio of open-close to high-low range. The result is a more reactive estimation,

快照

The indicator reactivity change based on the time frame you are in, using higher time frame result in a more reactive indicator, however it is way less reactive than the vwap, this is a personal choice since i wanted this indicator to be smooth even with high time frames, if you want to change that you use another resolution for H and L in line 5,6.

Conclusion

I presented an alternative to vwap based on the Ratio OCHL indicator. I hope you like it and thanks for reading !

Thanks to Coppermine and Reika for the support during the creation of the indicator
adaptiveaveragefilterMoving AveragesochlrecursionTrend Analysis

开源脚本

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

想在图表上使用此脚本?


Check out the indicators we are making at luxalgo: tradingview.com/u/LuxAlgo/
更多:

免责声明