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

סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יוכלו להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אבל השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

רוצה להשתמש בסקריפ זה בגרף?

כתב ויתור