MaxNewPos, MaxSetups, SetupSkip, and Order Priority in RealTest Top-Down Mode
In RealTest 2.0's default Top-Down mode, cap daily new orders cleanly via MaxNewPos rather than LegacyMode's MaxEntries, use SetupSkip instead of EntrySkip so rejected setups free their slot for the next ranked stock, and control multi-strategy selection order using MaxPerTurn.
- Major RealTest 2.0 distinction confirmed in the official User Guide is that MaxEntries is a LegacyMode setting incompatible with in-advance Top-Down order placement; use MaxNewPos in default Top-Down mode to cap daily new entry orders.
- Under LegacyMode True, submitting MaxSetups > MaxEntries without specifying EntryScore causes RealTest to fill limit setups in alphabetical order by symbol, silently distorting live mean-reversion fills.
- SetupSkip evaluates during Top-Down setup selection so a rejected stock frees its slot for the next SetupScore candidate, whereas EntrySkip evaluates later during entry simulation and wastes that daily slot.
- MaxPerTurn (default 1) controls how many orders each strategy claims per round-robin turn inside a multi-strategy Top-Down script before yielding to sibling strategies.
- Validated in RealTest 2.0 on survivorship-free S&P 500 stocks (2015 through 2024, $100,000 start), unthrottled mr_topdown_unthrottled earned $160,771 (-17.94 percent MaxDD across 3,513 trades), whereas mr_topdown_maxnewpos_2 slashed MaxDD by 39 percent down to -10.97 percent ($134,358 across 1,842 trades).
- Pairing MaxNewPos 3 with SetupSkip atrPct > 0.05 (mr_setupskip_highvol, 2,650 trades) achieved the highest ending equity ($163,150) AND lower drawdown (-15.31 percent) by rejecting toxic crash volatility before consuming capital slots.
Understanding how RealTest selects tomorrow's orders when 30 stocks trigger a setup on the same selloff day generates over a hundred technical posts on the RealTest user forum, led by debates over MaxSetups > MaxEntries, why MaxEntries behaves differently after RealTest 2.0.26's Top-Down engine upgrade, and why SetupSkip beats EntrySkip for filtering high-volatility setups.
Every order-throttling and priority directive below matches the official RealTest MaxNewPos and SetupSkip documentation and was validated live in RealTest 2.0 on historical S&P 500 stocks (InSPX) from 2015 through 2024.
Top-Down Mode vs LegacyMode Order Selection Rules
Since RealTest 2.0.26, Top-Down mode (LegacyMode: False) is the default engine because it mirrors real live brokerage order placement (calculating exact share sizes and slot caps in advance before the market opens). Compare each directive's exact engine scope below.
| Order Throttling Goal | LegacyMode / Broken Habit | Validated RealTest 2.0 Top-Down Syntax |
|---|---|---|
| Cap daily new entry orders |
MaxEntries: 2 (LegacyMode only!) |
MaxNewPos: 2 (works natively in Top-Down & -orders mode) |
| Reject toxic stock & pass slot to next rank |
EntrySkip: atrPct > 0.05 (wastes slot!) |
SetupSkip: atrPct > 0.05 (frees slot during selection) |
| Limit excess limit orders sent to IBKR |
MaxSetups > MaxEntries without EntryScore (alphabetical fills!) |
Use exact MaxNewPos + ranked SetupScore for clean live sync |
| Multi-strategy selection fairness | Letting one strategy hog all buying power |
MaxPerTurn: 1 (default round-robin) or higher for priority sleeves |
Notice the subtle live-trading trap behind MaxSetups > MaxEntries in mean-reversion limit systems. Submitting 15 intraday limit orders when you only have cash for 3 positions forces your broker to fill whichever 3 stocks drop the fastest first (often the most toxic earnings-crash names!). Worse, in RealTest's LegacyMode: True, omitting EntryScore silently breaks ties in alphabetical ticker order (AAPL before MSFT). Using Top-Down mode with strict MaxNewPos and SetupSkip keeps backtests and live IBKR OrderClerk lists 100 percent synchronized (see our SetupScore and #Rank guide and our Orders mode and OrderClerk IBKR guide).
Complete Validated RealTest Script (Unthrottled vs MaxNewPos 2 vs SetupSkip)
This RealTest 2.0 benchmark isolates Top-Down pacing and SetupSkip volatility rejection on identical survivorship-free S&P 500 RSI(2) limit-dip setups using Allocation: S.Equity.
Notes:
Comparing Top-Down order throttling (MaxNewPos), SetupSkip volatility filtering,
and unthrottled setups in RealTest 2.0 on survivorship-free S&P 500 stocks.
Settings:
DataFile: C:\RealTest\Data\SPY_Tickers.rtd
StartDate: 2015-01-01
EndDate: 2024-12-31
AccountSize: 100000
BarSize: Daily
Parameters:
numPos: 10
Data:
ma200: Avg(C, 200)
rsi2: RSI(2)
atr14: ATR(14)
atrPct: atr14 / C
spyUp: Extern($SPY, C > Avg(C, 200))
liquid: C > 10 and Avg(C * V, 20) > 25000000
mrCond: InSPX and liquid and spyUp and C > ma200 and rsi2 < 12
Template: order_prio_base
Side: Long
Allocation: S.Equity
EntrySetup: mrCond
EntryLimit: C - 0.35 * atr14
EntryTime: Intraday
LimitExtra: 0.001 * C
SetupScore: 100 - rsi2
QtyType: Percent
Quantity: 100 / numPos
MaxPositions: numPos
MaxExposure: 100
Commission: Max(1, Shares * 0.005)
OpenSlip: 0.0005 * FillPrice
ExitStop: IF(BarsHeld >= 1, FillPrice - 3 * atr14[BarsHeld], 0)
ExitRule: C > H[1] or BarsHeld >= 7
ExitTime: NextOpen
Ambiguity: Stop
// 1. Default Top-Down mode with no daily new-order throttle (can fill up to 10 on one panic day)
Strategy: mr_topdown_unthrottled
Using: order_prio_base
// 2. Top-Down MaxNewPos 2 caps new daily orders to 2 per day (replaces LegacyMode MaxEntries)
Strategy: mr_topdown_maxnewpos_2
Using: order_prio_base
MaxNewPos: 2
// 3. Top-Down SetupSkip rejects extreme-volatility names BEFORE consuming a daily slot
Strategy: mr_setupskip_highvol
Using: order_prio_base
MaxNewPos: 3
SetupSkip: atrPct > 0.05
Charts:
MA200: ma200
Validated 2015 to 2024 S&P 500 Results (Top-Down Pacing & SetupSkip)
Pacing daily deployment and rejecting high-volatility traps before slot allocation transforms both drawdown and risk-adjusted returns cleanly across 2,516 trading days.
| Order Selection Rule (2015 to 2024, InSPX) | Completed Trades | Ending Equity ($100k start) | Max Drawdown | Key Edge |
|---|---|---|---|---|
mr_topdown_unthrottled (No daily cap) |
3,513 | $160,771 | -17.94% | Can fill all 10 slots during a single crash day |
mr_topdown_maxnewpos_2 (MaxNewPos: 2) |
1,842 | $134,358 | -10.97% | Cuts MaxDD by 39% via multi-day entry pacing |
mr_setupskip_highvol (MaxNewPos: 3 + SetupSkip) |
2,650 | $163,150 | -15.31% | Highest profit AND smoother DD by recycling skipped slots |

If you ever need to audit exactly WHY RealTest selected or rejected a specific ticker on any historical bar, add KeepTrades: Skipped and TestOutput: Log temporarily inside Settings. RealTest logs every candidate's rank and rejection reason (such as max new pos or setup skip) cleanly line by line (see our RealTest debugging and common errors guide).
Deploy Clean Top-Down Mean Reversion Straight Into Interactive Brokers
Ready to run disciplined, zero-drift Top-Down mean reversion on survivorship-free equities? Start free with our Free Mean-Reversion Strategy for RealTest & Python, or inspect our production RealTest Mean Reversion Trading Strategy and RealTest Short Term Mean Reversion Strategy.
To wire daily MaxNewPos Top-Down order lists directly into Interactive Brokers via OrderClerk without manual intervention, follow our step-by-step RealTest, OrderClerk, and IBKR Automation Course.
Key terms
- MaxNewPos Directive
- RealTest 2.0 Top-Down mode constraint capping the maximum number of new entry orders a strategy can place on any single trading day.
- SetupSkip Formula
- A Top-Down setup filter evaluated during order selection that rejects disqualifying setups while releasing the slot to the next highest-ranked candidate.
- Top-Down Mode
- RealTest 2.0's default backtest engine (LegacyMode False) that selects orders, calculates sizes, and enforces Combined and StatsGroup constraints before market open.
- MaxPerTurn Directive
- A multi-strategy Top-Down pacing setting determining how many setups each strategy selects per round-robin turn (default 1).
- KeepTrades Skipped
- A RealTest diagnostic Settings option recording every unselected setup and its exact rejection reason inside the Trade List.
Frequently asked questions
Why does MaxEntries not work in RealTest 2.0 default Top-Down mode?
MaxEntries is a LegacyMode setting that caps fills retroactively during entry simulation rather than capping orders placed in advance. In RealTest 2.0's default Top-Down mode, use MaxNewPos to cap the exact number of new entry orders selected each day.
What is the difference between SetupSkip and EntrySkip in RealTest?
SetupSkip evaluates during the Top-Down setup selection phase before orders are finalized, so skipping a stock passes its open slot cleanly to the next ranked SetupScore candidate. EntrySkip evaluates later at entry simulation time and wastes that slot.
Why can MaxSetups > MaxEntries introduce hidden bias in mean-reversion backtests?
Under LegacyMode True, submitting more intraday limit orders than cash slots creates adverse selection because the fastest-crashing stocks trigger limit fills first. In addition, omitting EntryScore in LegacyMode fills setups alphabetically by symbol rather than by SetupScore.
What does MaxPerTurn do in a multi-strategy RealTest script?
MaxPerTurn controls how many setups a strategy claims per round-robin turn during Top-Down order selection across multiple strategies. The default is 1, preventing one strategy from consuming all shared buying power before sibling strategies take a turn.
How can I inspect which stocks were skipped by MaxNewPos or SetupSkip?
Add KeepTrades Skipped inside your Settings section and re-run the test. RealTest populates the Trade List with every rejected candidate alongside its exact skip reason such as max new pos, setup skip, or max exposure.
How did MaxNewPos 2 affect drawdown compared to unthrottled daily entries?
Across 2015 through 2024 on S&P 500 RSI(2) limit entries, capping new orders at MaxNewPos 2 prevented full 10-position pile-ins on Day 1 of sudden selloffs, cutting MaxDD from -17.94 percent down to -10.97 percent.