OPEN-SOURCE SCRIPT
ORB+VWAP

ITSP ORB + VWAP — Opening Range Breakout with VWAP & Volume Confirmation
Overview
This indicator combines three of the most widely used intraday trading concepts into a single, non-repainting signal engine: Opening Range Breakout (ORB), session-anchored VWAP, and volume confirmation. It is built for NSE intraday trading but works on any liquid market with a defined session.
Most ORB tools only look at whether price broke the opening range. This one adds two additional filters — trend alignment via VWAP and participation via volume — so signals are less prone to false breakouts on thin, directionless moves.
How It Works
1. Opening Range — the script automatically detects the first bar of each new regular trading session and builds a high/low range over a user-defined number of minutes (default 15). Once that window elapses, the range locks for the rest of the session.
2. Session VWAP — a fresh volume-weighted average price is calculated from the first bar of each session, giving an accurate intraday fair-value reference rather than a rolling multi-day average.
3. Volume Filter — breakout bars are checked against a multiple of the recent average volume, filtering out low-conviction breaks.
4. Signal Logic — a long signal fires when price closes above the opening range high, is trading above session VWAP, and volume confirms. A short signal is the mirror condition. Each signal fires once per session per direction to avoid repeated alerts on choppy retests.
Key Features
• Auto-resetting opening range box, visually plotted on the chart
• Session-anchored VWAP line with configurable source
• Optional volume confirmation filter (adjustable multiple and lookback)
• Optional VWAP trend filter — can be disabled for raw ORB signals
• ATR-based stop-loss and target labels auto-printed on each signal
• Configurable info table (position, on/off) showing live ORB status, levels, and VWAP bias
• Background tint reflecting current VWAP bias
• Built-in alert conditions for both breakout directions, ready for webhook/Telegram/automation integration
How to Use
• Works best on 5-minute or 15-minute charts for liquid stocks and index futures.
• Set your chart session to Regular Trading Hours for correct daily resets.
• Adjust the Opening Range window (default 15 minutes) to match your market's typical volatility — some traders prefer 30 minutes for less noise.
• Use the VWAP and Volume filters as confluence checks; disabling both reduces this to a pure ORB breakout tool.
• ATR stop/target labels are a starting reference, not a substitute for your own risk management.
Settings
• Opening Range Minutes
• VWAP source and on/off filter
• Volume MA length and confirmation multiple
• ATR length, stop multiple, target multiple
• Info table visibility and position (9 placement options)
• Signal color customization
Alerts
Two alert conditions are built in — Long ORB Breakout and Short ORB Breakdown — both suitable for webhook-based automation to Telegram, Discord, or other delivery channels.
Notes
• Non-repainting: all breakout and VWAP calculations use only confirmed price/volume data at the time each bar closes.
• This is a discretionary decision-support tool, not a standalone trading system. Always combine with your own risk management and market context.
Disclaimer
This script is for educational and informational purposes only and does not constitute financial advice. Trading involves substantial risk of loss. Past performance of any strategy or signal does not guarantee future results. Use at your own risk and always backtest/forward-test before live deployment.
Overview
This indicator combines three of the most widely used intraday trading concepts into a single, non-repainting signal engine: Opening Range Breakout (ORB), session-anchored VWAP, and volume confirmation. It is built for NSE intraday trading but works on any liquid market with a defined session.
Most ORB tools only look at whether price broke the opening range. This one adds two additional filters — trend alignment via VWAP and participation via volume — so signals are less prone to false breakouts on thin, directionless moves.
How It Works
1. Opening Range — the script automatically detects the first bar of each new regular trading session and builds a high/low range over a user-defined number of minutes (default 15). Once that window elapses, the range locks for the rest of the session.
2. Session VWAP — a fresh volume-weighted average price is calculated from the first bar of each session, giving an accurate intraday fair-value reference rather than a rolling multi-day average.
3. Volume Filter — breakout bars are checked against a multiple of the recent average volume, filtering out low-conviction breaks.
4. Signal Logic — a long signal fires when price closes above the opening range high, is trading above session VWAP, and volume confirms. A short signal is the mirror condition. Each signal fires once per session per direction to avoid repeated alerts on choppy retests.
Key Features
• Auto-resetting opening range box, visually plotted on the chart
• Session-anchored VWAP line with configurable source
• Optional volume confirmation filter (adjustable multiple and lookback)
• Optional VWAP trend filter — can be disabled for raw ORB signals
• ATR-based stop-loss and target labels auto-printed on each signal
• Configurable info table (position, on/off) showing live ORB status, levels, and VWAP bias
• Background tint reflecting current VWAP bias
• Built-in alert conditions for both breakout directions, ready for webhook/Telegram/automation integration
How to Use
• Works best on 5-minute or 15-minute charts for liquid stocks and index futures.
• Set your chart session to Regular Trading Hours for correct daily resets.
• Adjust the Opening Range window (default 15 minutes) to match your market's typical volatility — some traders prefer 30 minutes for less noise.
• Use the VWAP and Volume filters as confluence checks; disabling both reduces this to a pure ORB breakout tool.
• ATR stop/target labels are a starting reference, not a substitute for your own risk management.
Settings
• Opening Range Minutes
• VWAP source and on/off filter
• Volume MA length and confirmation multiple
• ATR length, stop multiple, target multiple
• Info table visibility and position (9 placement options)
• Signal color customization
Alerts
Two alert conditions are built in — Long ORB Breakout and Short ORB Breakdown — both suitable for webhook-based automation to Telegram, Discord, or other delivery channels.
Notes
• Non-repainting: all breakout and VWAP calculations use only confirmed price/volume data at the time each bar closes.
• This is a discretionary decision-support tool, not a standalone trading system. Always combine with your own risk management and market context.
Disclaimer
This script is for educational and informational purposes only and does not constitute financial advice. Trading involves substantial risk of loss. Past performance of any strategy or signal does not guarantee future results. Use at your own risk and always backtest/forward-test before live deployment.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.