NQ Trend vs. Range in NinjaTrader 8
A mean-reversion strategy can look steady across dozens of sessions and give back much of that gain on a single one-way NQ day. A regime filter addresses a specific question before each entry. Does current price behavior still support trading back toward the session average?
Build the filter on a slower chart
Keep the 15-second chart for execution if your strategy uses it. Calculate the regime on completed 1-minute or 5-minute bars and carry the latest completed classification into the faster chart. Define the VWAP session start and the trading-hours template explicitly. An overnight VWAP and a VWAP anchored to the U.S. cash open measure different sets of trades.
Compare range expansion at similar times of day. A 20-point bar at the cash open and a 20-point bar at midday can be very different relative to their usual conditions. As a starting experiment, divide a recent rolling range by the median range for the same time window over prior sessions. Use only sessions that were complete before the decision.
Measure direction and persistence
Directional efficiency divides the absolute change over a window by the sum of the absolute bar-to-bar changes. If NQ moves 28 points net over a path totaling 40 points, the ratio is 0.70. A 4-point net change over the same 40-point path gives 0.10. Require a nonzero path and enough complete bars to calculate it. Efficiency measures how directly price traveled. The sign of the net move supplies direction.
Pair efficiency with VWAP behavior. Track the share of recent closes on each side of session VWAP, the slope of VWAP over the same window, and how often price crosses it. Treat occasional crosses and persistent closes on one side differently. Use range expansion as a separate check because both wide chop and a directional move can produce large bars.
Turn the readings into a trading permission
Start with three states. In a range, the fade strategy can evaluate its usual entries. In a trend, block new entries against the observed direction and disable any rule that adds to a losing countertrend position. In transition, pause new fades and wait for more complete bars. Keep existing protective orders under their existing exit rules.
As an initial test, require two completed bars of agreement before switching to trend, then compare it with a slower reset that requires three bars of range conditions. The numbers are hypotheses. Log the time of classification, the signal your original strategy produced, and whether the gate blocked it. This makes delayed signals and blocked trades visible.
Test the loss you are trying to avoid
Run the same entries, exits, position sizing, commissions, and slippage with the filter on and off. Freeze the thresholds before each out-of-sample window and split the data chronologically by session. Compare worst day, average loss across the worst days, maximum adverse excursion, and how much favorable opportunity the gate missed. Report results across more than one volatility period.
Record the filter decision before the entry signal is evaluated. A trend label based on the completed session can describe the day afterward, but it cannot make an intraday decision. A useful test shows how early the filter would have reduced exposure and which ordinary range days it also blocked.