Q Neon Pulse

879
Q Neon Pulse

OVERVIEW
Most signal indicators apply the same logic in every market condition: trend tools keep firing in sideways markets, while mean-reversion tools keep fading strong trends. Q Neon Pulse takes a different approach: it first classifies the current market regime, then enables only the signal logic designed for that environment. When conditions are unclear, it deliberately stays silent.

The script combines ADX/DMI, EMAs, Bollinger Bands and the Keltner Channel into one regime engine. These components are not used as independent signal generators; each has a defined role inside the regime engine, and the active regime decides which entry logic is allowed.

THE FOUR REGIMES

1. TREND (up / down)
ADX is above the threshold, the directional index agrees with the direction (+DI > −DI for up, −DI > +DI for down), the fast EMA is above/below the slow EMA, and price is on the same side of the slow EMA.
Signal: pullback continuation. Price returns to the fast EMA, then a candle closes back in the trend direction and breaks the previous bar's high (buy) or low (sell).
Marker: triangle.

2. RANGE
All of the following must be true:
- ADX is below the threshold and not rising (at or below its 5-bar average)
- the slow EMA has moved less than 1 ATR over the last 10 bars (flat slope)
- Bollinger Band width is not expanding (within 15% of its average)
- price has crossed the Bollinger basis at least twice within the band length (real rotation, not drift)
Signal: band rejection. Price touches the outer Bollinger Band and closes back inside with a directional rejection candle away from the band. Range signals are blocked while ADX is rising, to avoid fading the start of a breakout.
Marker: diamond.

3. SQUEEZE
Bollinger Bands are fully inside the Keltner Channel, so volatility is compressed. While the squeeze lasts, the indicator tracks the high and low of the compression zone ("coil") and draws them as yellow lines.
Signal: breakout. A candle closes beyond the coil high or low, either during the squeeze or within the Breakout Window after it ends. The squeeze must last a minimum number of bars, and only one breakout signal is allowed per squeeze.
Marker: flag.

4. NEUTRAL
Anything that is not a confirmed trend, a true range or a squeeze: transitions, reversals, chaotic volatility. No signals are produced, and candles keep their standard colors. Standard candles indicate that the market is not confidently classified as Trend, Range or Squeeze — a stand-aside condition.

A new regime is accepted only after it holds for a set number of bars (Regime Confirm Bars), which prevents the regime from flickering bar to bar.

SIGNALS
- All signals are calculated on bar close only and do not repaint.
- Strict Alternation (on by default): after a BUY the next signal must be a SELL, and vice versa. Turn it off to allow repeated same-direction signals, for example a second pullback in an ongoing trend.
- Each signal type (Trend / Range / Breakout) can be switched on or off individually.

VISUALS
- Regime background for TREND and SQUEEZE
- Candles colored by regime (bright for up candles, dimmed for down candles); standard candles in NEUTRAL
- Fast EMA glows during TREND, Bollinger Bands glow during RANGE, coil lines appear during SQUEEZE
- Status panel: current regime, ADX value with threshold and strength (Weak / Strong), and the last signal with its type
- Optional T / R / B letters on markers and an optional background flash on signals

ALERTS
- Buy, Sell, Any Signal
- Regime Change
- Squeeze Start (volatility compression has begun, a breakout setup is forming)

SETTINGS
Regime: ADX length and trend threshold, band length, Bollinger and Keltner widths, minimum squeeze bars, breakout window, regime confirmation bars, fast/slow EMA.
Signals: strict alternation, individual signal types.
Style: regime colors and display toggles.

HOW TO USE
- Designed for liquid markets with clear regime shifts: index futures, gold, major FX pairs, large-cap crypto.
- Typical timeframes: 15m to 4H. Lower timeframes may benefit from stricter regime confirmation, while higher timeframes may work well with more permissive thresholds. Tune settings to the instrument and timeframe being traded.
- Use the regime as context first and the signal second. A trend signal inside a clean trend regime carries different information than a range signal near the end of a range.
- Signals are not a complete trading system. Combine them with your own risk management, position sizing and higher-timeframe analysis.

DISCLAIMER

This script is provided for educational and informational purposes only. It does not constitute financial advice. Past behavior of any indicator does not guarantee future results. Always test on your own markets and timeframes before using it in live trading.

Trade with clarity — stay for quality.

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 u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.