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.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.