OPEN-SOURCE SCRIPT
NQ Scalping ORB + VWAP Bias (ATR Brackets)

This strategy trades Nasdaq (NQ) using an Opening Range Breakout (ORB) framework combined with VWAP directional bias and optional volume confirmation. The opening range is defined by the first X minutes after the 9:30 AM New York session open. Trades are triggered when price breaks above or below the established range.
To improve trade quality, long positions require price to be above VWAP (and below VWAP for shorts), aligning entries with intraday directional flow. An optional volume filter ensures breakouts occur during higher participation.
Risk management uses ATR-based dynamic stop loss and take profit levels, with optional trailing stops and time-based exits to keep trades short-term and scalping-focused. The strategy also includes session controls, daily trade limits, and automatic end-of-session flattening for clean backtest reporting.
Designed for lower timeframes (1–3 minute charts), this system aims to capture early-session momentum while maintaining structured risk management.
To improve trade quality, long positions require price to be above VWAP (and below VWAP for shorts), aligning entries with intraday directional flow. An optional volume filter ensures breakouts occur during higher participation.
Risk management uses ATR-based dynamic stop loss and take profit levels, with optional trailing stops and time-based exits to keep trades short-term and scalping-focused. The strategy also includes session controls, daily trade limits, and automatic end-of-session flattening for clean backtest reporting.
Designed for lower timeframes (1–3 minute charts), this system aims to capture early-session momentum while maintaining structured risk management.
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.