OPEN-SOURCE SCRIPT

Chauvenet Radius

The Chauvenet criterion is a well-known criterion of selection and rejection of the data used by the Physics. It establishes that in an experiment is well to discard the data whose distance from the average is greater than a certain number of the delta.
In the stock market if prices move away from the average with a volatility too high are suspect. This principle is embodied in the Chauvenet floor with the definition of two asymptotes and two data areas rejection.
The Chauvenet Radius is the quadratic sum of the delta (distance from average) and sigmoid (volatility) and is therefore an obvious market stability index. In fact the moments when price strongly moves away from the average with high volatility coincide with the moments of high instability of the market.

It can be considered an evolution of John Bollinger method introduced during the '80.

Source: performancetrading.it/Documents/IF-Chauvenet/Italo-Fabbri_index.htm
averageBBBollinger Bands (BB)Bollinger Bands Width (BBW)Exponential Moving Average (EMA)movingMoving AveragespricesystemtradeideatradingtrendvolatileVolatility

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