OPEN-SOURCE SCRIPT
VWAP ORB Pullback Strategy

This strategy is an Opening Range Breakout pullback system that uses the first X minutes after the market open to define the opening range, then looks for breakout entries that pull back to VWAP for confirmation. It is designed to trade in the direction of momentum after the opening range is established, with ATR-based stop loss and profit target levels.
How it works
It records the opening range high and low during the first part of the session after the U.S. market opens at 9:30 AM New York time.
After the opening range period ends, it waits for price to break above the opening range high for longs or break below the opening range low for shorts.
For a long trade, price must also be above VWAP and the 9 EMA, and the candle must pull back to VWAP before entry.
For a short trade, price must be below VWAP and the 9 EMA, and the candle must retest VWAP from below before entry.
Risk management uses ATR(14) to set the stop loss and take profit automatically.
How to use it
Add the strategy to a chart on TradingView.
Use it on intraday timeframes such as 1-minute, 5-minute, or 15-minute charts.
Focus on liquid, trend-sensitive markets like large-cap stocks, futures, or ETFs.
Watch for the opening range to form after the market open.
After the opening range ends, the strategy will only trigger when breakout and pullback conditions align.
Settings explained
Opening Range Minutes
This controls how long the opening range lasts after the market opens.
Lower values, like 5 or 15, create a tighter opening range.
Higher values create a wider range and fewer signals.
Risk/Reward Ratio
This sets the profit target as a multiple of ATR.
A value of 1.5 means the target is 1.5 times ATR away from entry.
Higher values aim for bigger winners but may reduce win rate.
Use VWAP Filter
This toggles the VWAP condition on or off.
Enabled: trades require price confirmation around VWAP.
Disabled: the strategy still uses the opening range breakout logic, but removes VWAP as an extra filter.
Trading behavior
This strategy is meant to catch early-session momentum while avoiding low-quality breakout entries. The VWAP and EMA filters help confirm trend direction, while the pullback requirement is intended to improve entry quality instead of chasing extended moves. The ATR stop and target make the strategy adaptive to volatility.
Suggested description for TradingView
VWAP ORB Pullback Strategy combines the opening range breakout with VWAP and EMA pullback confirmation. It defines the opening range during the first user-defined minutes after the market open, then looks for price to break that range and retest VWAP before entering. Long trades require price above VWAP and the 9 EMA, while short trades require price below both. Exits are managed with ATR-based stop loss and take profit levels using the selected risk/reward ratio.
How it works
It records the opening range high and low during the first part of the session after the U.S. market opens at 9:30 AM New York time.
After the opening range period ends, it waits for price to break above the opening range high for longs or break below the opening range low for shorts.
For a long trade, price must also be above VWAP and the 9 EMA, and the candle must pull back to VWAP before entry.
For a short trade, price must be below VWAP and the 9 EMA, and the candle must retest VWAP from below before entry.
Risk management uses ATR(14) to set the stop loss and take profit automatically.
How to use it
Add the strategy to a chart on TradingView.
Use it on intraday timeframes such as 1-minute, 5-minute, or 15-minute charts.
Focus on liquid, trend-sensitive markets like large-cap stocks, futures, or ETFs.
Watch for the opening range to form after the market open.
After the opening range ends, the strategy will only trigger when breakout and pullback conditions align.
Settings explained
Opening Range Minutes
This controls how long the opening range lasts after the market opens.
Lower values, like 5 or 15, create a tighter opening range.
Higher values create a wider range and fewer signals.
Risk/Reward Ratio
This sets the profit target as a multiple of ATR.
A value of 1.5 means the target is 1.5 times ATR away from entry.
Higher values aim for bigger winners but may reduce win rate.
Use VWAP Filter
This toggles the VWAP condition on or off.
Enabled: trades require price confirmation around VWAP.
Disabled: the strategy still uses the opening range breakout logic, but removes VWAP as an extra filter.
Trading behavior
This strategy is meant to catch early-session momentum while avoiding low-quality breakout entries. The VWAP and EMA filters help confirm trend direction, while the pullback requirement is intended to improve entry quality instead of chasing extended moves. The ATR stop and target make the strategy adaptive to volatility.
Suggested description for TradingView
VWAP ORB Pullback Strategy combines the opening range breakout with VWAP and EMA pullback confirmation. It defines the opening range during the first user-defined minutes after the market open, then looks for price to break that range and retest VWAP before entering. Long trades require price above VWAP and the 9 EMA, while short trades require price below both. Exits are managed with ATR-based stop loss and take profit levels using the selected risk/reward ratio.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.