OPEN-SOURCE SCRIPT

Q Wave

663
Q Wave

What is Q Wave?
Q Wave is a pressure-adaptive trend wave designed to reveal the current state of market structure with clarity.
It does not predict.
It does not generate signals.
It shows structure.

Two waves define the model:
  • Fast Wave — reacts quickly to structural shifts in price
  • Slow Wave — confirms the broader trend regime only after sustained directional pressure

The zone between them tells the regime state:
  • Blue zone — confirmed bullish regime
  • Red zone — confirmed bearish regime
  • Neutral zone — transition phase, where structure has shifted but regime is not yet confirmed


How it works
At the core of Q Wave is a custom Directional Pressure model: candle body size relative to ATR, scaled by volume activity.
When price expands with strong participation, both waves respond faster.
When activity contracts, the model slows down and becomes more selective.
The slow wave uses intentional Regime Inertia. It does not flip on every structural shift. It requires sustained pressure before confirming or reversing a regime, which helps suppress false transitions during noisy intraday conditions.

Best use cases
Q Wave is designed primarily for futures and other liquid instruments, especially on intraday timeframes such as 15–60 minutes. It can also be used on higher timeframes, including 4H and Daily.
For forex and synthetic instruments, disabling volume weighting may produce cleaner behavior.

Settings
  • Structure Period — lookback window for dominant structure detection
  • Fast Wave Sensitivity — reaction speed of the fast wave
  • Slow Wave Sensitivity — reaction speed of the slow wave
  • Regime Inertia — persistence required before a regime confirms or reverses
  • ATR / Volume Length — lookback for volatility and average volume
  • Use Volume Weighting — optional volume influence for instruments with reliable volume data

No signals. No arrows. Only structure.

Disclaimer
This script is for informational and educational purposes only. It is not financial or investment advice. Always use your own analysis, risk management, and independent judgment.

Trade with clarity — stay for quality.

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.