OPEN-SOURCE SCRIPT

Reynolds warning rate

In fluid mechanics, the Reynolds number is the ratio of inertial forces to viscous forces within a fluid. Laminar flow occurs at low Reynolds numbers (i.e., viscous forces are dominant), whereas turbulent flow occurs at high Reynolds numbers (i.e., inertial forces are dominant). In the Turbulence indicator, I define that laminar flow occurs when simple moving averages have no interactions. In contrast, turbulent flow occurs when simple moving averages have chaotic interactions (i.e., irregular crossing and convergence).

Here, I calculate an economical analog of the Reynolds number developed by Jakimowicz and Juzwiszyn (2015). Furthermore, I propose the Reynolds Warning Rate, given by a ratio of short- and long-term Reynolds number.

The higher Reynolds Warning Rate indicates that price movement is going to a turbulence phase, and the market is under a possible systemic risk.

Reference:
Jakimowicz A, Juzwiszyn J (2015) Balance in the turbulent world of economy. Acta Physica Polonica A 127, 78–85.
Moving AveragesTrend 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