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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。