PROTECTED SOURCE SCRIPT
Trend or Reversal (NQ optimized)

This indicator is a session-aware trade map for NQ futures that combines VWAP, an adaptive Opening Range Box (ORB), prior-day/weekly value areas, and CVD-based divergences into a single confluence engine. It scores trend and reversal setups separately on every bar, then selects one best signal per bar (long or short) so you’re never flooded with conflicting entries.
Key features
Adaptive ORB box (RTH only): First 5–15 minutes after 9:30 ET (length auto-adjusts with ADX). The box defines the opening auction; once it closes, those highs/lows are locked as ORB breakout levels for the rest of the session.
Dynamic bias: Bias flips between bullish, bearish, or neutral based on ORB breaks and how price + EMA9 behave around VWAP.
Value-area context: Uses yesterday’s and last week’s VAH/VAL (70% range model) to define “safer” long/short zones (above VAL for longs, below VAH for shorts).
Session CVD & divergence: Builds a running intraday Cumulative Volume Delta and flags bullish/bearish divergences at extremes.
Confluence scoring: Four internal scores—Trend Long, Trend Short, Reversal Long, Reversal Short—each built from multiple factors (bias, VWAP, ORB, value areas, divergence). The side with the stronger score that passes its threshold prints:
T-LONG / T-SHORT for trend continuation
R-L / R-S for mean-reversion (fade) setups
How to use
Treat T-signals as your primary entries in strong directional moves, aligned with VWAP and ORB/value-area structure.
Treat R-signals as tactical fade opportunities into extremes, preferably at prior VAH/VAL or ORB edges and supported by CVD divergence.
The indicator is not a standalone system—combine it with your own execution rules, risk management, and higher-timeframe context. Not Financial Advice
Key features
Adaptive ORB box (RTH only): First 5–15 minutes after 9:30 ET (length auto-adjusts with ADX). The box defines the opening auction; once it closes, those highs/lows are locked as ORB breakout levels for the rest of the session.
Dynamic bias: Bias flips between bullish, bearish, or neutral based on ORB breaks and how price + EMA9 behave around VWAP.
Value-area context: Uses yesterday’s and last week’s VAH/VAL (70% range model) to define “safer” long/short zones (above VAL for longs, below VAH for shorts).
Session CVD & divergence: Builds a running intraday Cumulative Volume Delta and flags bullish/bearish divergences at extremes.
Confluence scoring: Four internal scores—Trend Long, Trend Short, Reversal Long, Reversal Short—each built from multiple factors (bias, VWAP, ORB, value areas, divergence). The side with the stronger score that passes its threshold prints:
T-LONG / T-SHORT for trend continuation
R-L / R-S for mean-reversion (fade) setups
How to use
Treat T-signals as your primary entries in strong directional moves, aligned with VWAP and ORB/value-area structure.
Treat R-signals as tactical fade opportunities into extremes, preferably at prior VAH/VAL or ORB edges and supported by CVD divergence.
The indicator is not a standalone system—combine it with your own execution rules, risk management, and higher-timeframe context. Not Financial Advice
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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ã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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.