OPEN-SOURCE SCRIPT
Trend & Volume indicator

This is a Trend, Entry, Exit, and Risk-assessment indicator built around the NNFX (No-Nonsense Forex) methodology, intended primarily for Daily timeframes.
It combines:
A Baseline trend filter
Signal Wave (formerly SSL) lines for continuation and exits
ATR-based volatility analysis
Dynamic risk assessment
Visual trade context (colors, channels, alerts, table)
The indicator does not auto-trade. It provides decision support.
Core Components
1. Baseline (Trend Filter)
Uses a configurable moving average (HMA, EMA, JMA, McGinley, etc.)
Acts as the primary trend direction filter
Includes an optional volatility channel around the baseline
Trend logic:
Above baseline → bullish bias
Below baseline → bearish bias
Inside channel → neutral / ranging
This follows NNFX’s rule: Only trade in the direction of the baseline.
2. Signal Wave 1 (Trend Confirmation)
A high/low MA-based line (SW1)
Changes direction only when price clearly breaks structure
Confirms:
Trend continuation
Momentum agreement with baseline
3. Signal Wave 2 (Continuation Entries)
Short-length MA-based signal (SW2)
Uses ATR-distance logic to detect valid pullbacks
Signals continuation entries only when volatility criteria are met
Prevents chasing price during overextended moves
4. Exit Line (Trade Management)
Independent MA-based exit line
Generates:
Exit Long when price crosses below
Exit Short when price crosses above
Designed to:
Protect profits
Avoid emotional exits
Volatility & ATR Logic
ATR is smoothed using selectable methods (RMA, SMA, EMA, WMA)
ATR bands show:
Expected price range
Overextension zones
Used for:
Entry qualification
Continuation logic
False breakout detection
Risk Assessment System
ATR Percentile
Compares current ATR to historical volatility
Classifies risk as:
Low
Normal
High
Dynamic Color Fading
High volatility → more transparent colors
Low volatility → solid colors
Gives instant visual risk feedback
Entry Quality Filters
Entry Distance
Measures how far price is from the baseline:
Near → ideal
Extended → caution
Far → high risk
False Breakout Detection
Flags candles:
Larger than 1× ATR
Still within baseline range
Helps avoid trap trades
Visual Elements
Colored candles reflect trend + risk
Baseline channel fill changes with market bias
Diamond markers highlight risky candles
Optional ATR bands
Risk table showing:
Risk level
Entry distance
Volatility percentile
Current ATR
Alerts Included
The script provides alerts for:
Exit signals
Continuation entries
Baseline breaks
High-risk entries
False breakouts
Extreme volatility conditions
All alerts are context-aware, not raw crossovers.
Best Use Case
✔ Daily timeframe
✔ Trend-following strategies
✔ NNFX-style system building
✔ Discretionary traders who want structure, not automation
It combines:
A Baseline trend filter
Signal Wave (formerly SSL) lines for continuation and exits
ATR-based volatility analysis
Dynamic risk assessment
Visual trade context (colors, channels, alerts, table)
The indicator does not auto-trade. It provides decision support.
Core Components
1. Baseline (Trend Filter)
Uses a configurable moving average (HMA, EMA, JMA, McGinley, etc.)
Acts as the primary trend direction filter
Includes an optional volatility channel around the baseline
Trend logic:
Above baseline → bullish bias
Below baseline → bearish bias
Inside channel → neutral / ranging
This follows NNFX’s rule: Only trade in the direction of the baseline.
2. Signal Wave 1 (Trend Confirmation)
A high/low MA-based line (SW1)
Changes direction only when price clearly breaks structure
Confirms:
Trend continuation
Momentum agreement with baseline
3. Signal Wave 2 (Continuation Entries)
Short-length MA-based signal (SW2)
Uses ATR-distance logic to detect valid pullbacks
Signals continuation entries only when volatility criteria are met
Prevents chasing price during overextended moves
4. Exit Line (Trade Management)
Independent MA-based exit line
Generates:
Exit Long when price crosses below
Exit Short when price crosses above
Designed to:
Protect profits
Avoid emotional exits
Volatility & ATR Logic
ATR is smoothed using selectable methods (RMA, SMA, EMA, WMA)
ATR bands show:
Expected price range
Overextension zones
Used for:
Entry qualification
Continuation logic
False breakout detection
Risk Assessment System
ATR Percentile
Compares current ATR to historical volatility
Classifies risk as:
Low
Normal
High
Dynamic Color Fading
High volatility → more transparent colors
Low volatility → solid colors
Gives instant visual risk feedback
Entry Quality Filters
Entry Distance
Measures how far price is from the baseline:
Near → ideal
Extended → caution
Far → high risk
False Breakout Detection
Flags candles:
Larger than 1× ATR
Still within baseline range
Helps avoid trap trades
Visual Elements
Colored candles reflect trend + risk
Baseline channel fill changes with market bias
Diamond markers highlight risky candles
Optional ATR bands
Risk table showing:
Risk level
Entry distance
Volatility percentile
Current ATR
Alerts Included
The script provides alerts for:
Exit signals
Continuation entries
Baseline breaks
High-risk entries
False breakouts
Extreme volatility conditions
All alerts are context-aware, not raw crossovers.
Best Use Case
✔ Daily timeframe
✔ Trend-following strategies
✔ NNFX-style system building
✔ Discretionary traders who want structure, not automation
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.