OPEN-SOURCE SCRIPT
Q Wave

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:
The zone between them tells the regime state:
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
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.
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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.