OPEN-SOURCE SCRIPT

Volume & Dollar Bars

Updated
This scriptlet is a part of an ongoing project and attempts at volume and dollar bar identification. The original idea is taken from excellent books 'Hands-On Machine Learning for Algorithmic Trading' (2019) by Stefan Jansen and 'Advances in Financial Machine Learning' (2018) by Marcos Lopez de Prado.

Statement of Purpose

I am an advocate of Open source and against those who publish their code with a lock icon. My code and ideas are aimed at people with critical thinking, who are able to take an informative and responsible decision when it comes to investing their funds. I do not guarantee that all of my ideas will perform well. As usual, they require a certain degree of your sound judgment. My final aim is to provide you with coding techniques that you could use in your own scripts and strategies.
Release Notes
Major fix in calculation of long and short conditions.
Release Notes
Minor fix.
Release Notes
Minor fix 2.
BARdollarTrend AnalysisVolatility

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer