OPEN-SOURCE SCRIPT

L&S Volatility Index

Overview
L&S Volatility Index is a tool designed to helps traders identify overpriced or underpriced moments in the market and adjust their trading strategies accordingly.

Calculations
This tool calculates how far the price is from the 21-period simple moving average as a ratio of the average historical volatility calculated over the last 21 candles.

How It Works
A L&S Volatility Index with a value greater than 30% may indicate that the asset is overpriced or underpriced relative to its average price.

How To Use
If the L&S Volatility Index > 30, the asset is overpriced or underpriced. This means that there is a good probability of initiating a mean reversion.
If the L&S Volatility Index < 30, the asset is in a fair price region. This means that it is acceptable to buy or sell in that price region.

Where To Use
Mean Reversion Strategy
Breakout Strategy

What Makes it Original
There is already an indicator that use a normalized calculation and a different approach to calculate historical volatility, whereas this script calculation is non-normalized and historical volatility is calculated using Don Fishback's formula. All calculations are used as originally described.

Credits
The L&S Volatility Index indicator was originally written by L&S Educação Financeira.
Historical Volatility calculation is based on the book "Odds: The Key to 90% Winners" written by Don Fishback.
Historical VolatilitylslsvilsvolatilitylsvolatilityindexStandard DeviationVolatility

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