OPEN-SOURCE SCRIPT
volatility new

Volatility Filtering (The "VIX" Brain)
The code constantly monitors the India VIX (Volatility Index).
Dynamic Bands: Instead of fixed levels, the Buy/Sell bands expand or contract based on VIX. If the market is "nervous" (High VIX), the bands widen to protect you from "noise" and fake breakouts.
Safety Switch: It uses a VIX EMA 25 to determine if volatility is stable. If VIX spikes too high (sudden panic), it may block a "Buy" signal to keep you safe from a potential trap.
2. Trade Signals
BUY (Bullish): Triggered when the price breaks above the Upper Band while the VIX is relatively stable (no sudden spike).
SELL (Bearish): Triggered when the price breaks below the Lower Band while VIX is showing strength (above its average).
SIDEWAYS (Grey): When the price is trapped between the bands or the trend has ended, the background turns Grey, indicating a "No Trade" zone.
3. Trend Management & Exit
Trailing Stop: The Orange Line (EMA 25) acts as your exit trigger.
In a Buy trade, if the price closes below the Orange line, the trend is over.
In a Sell trade, if the price closes above the Orange line, the trend is over.
4. Real-Time Dashboard
The table in the top-right corner gives you a "Quick Look" at:
Trend: Shows BULLISH, BEARISH, or SIDEWAYS.
VIX Status: Tells you if the market is STABLE or in HIGH VOL mode.
Entry Price: Remembers exactly where the signal started so you can track your potential profit/loss.
In short: It is a smart trend-follower that "widens" its filters when the market gets crazy and "tightens" them when the market is calm.
The code constantly monitors the India VIX (Volatility Index).
Dynamic Bands: Instead of fixed levels, the Buy/Sell bands expand or contract based on VIX. If the market is "nervous" (High VIX), the bands widen to protect you from "noise" and fake breakouts.
Safety Switch: It uses a VIX EMA 25 to determine if volatility is stable. If VIX spikes too high (sudden panic), it may block a "Buy" signal to keep you safe from a potential trap.
2. Trade Signals
BUY (Bullish): Triggered when the price breaks above the Upper Band while the VIX is relatively stable (no sudden spike).
SELL (Bearish): Triggered when the price breaks below the Lower Band while VIX is showing strength (above its average).
SIDEWAYS (Grey): When the price is trapped between the bands or the trend has ended, the background turns Grey, indicating a "No Trade" zone.
3. Trend Management & Exit
Trailing Stop: The Orange Line (EMA 25) acts as your exit trigger.
In a Buy trade, if the price closes below the Orange line, the trend is over.
In a Sell trade, if the price closes above the Orange line, the trend is over.
4. Real-Time Dashboard
The table in the top-right corner gives you a "Quick Look" at:
Trend: Shows BULLISH, BEARISH, or SIDEWAYS.
VIX Status: Tells you if the market is STABLE or in HIGH VOL mode.
Entry Price: Remembers exactly where the signal started so you can track your potential profit/loss.
In short: It is a smart trend-follower that "widens" its filters when the market gets crazy and "tightens" them when the market is calm.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.