Learn

Validated RealTest 2.0 code syntax guides, survivorship-bias-free .rts backtest templates, IBKR OrderClerk workflows, and systematic trading references.

Modular Include and Library Scripts Plus Simulating Tax Drag in RealTest
CashInOut Include

Modular Include and Library Scripts Plus Simulating Tax Drag in RealTest

Eliminate copy-pasted boilerplate across RealTest portfolios using Include plus reusable Library and Template files, ...

Read →
Ray Dalio All-Weather Portfolio, 60/40, and Drift-Band Rebalancing in RealTest
All Weather Drift Bands

Ray Dalio All-Weather Portfolio, 60/40, and Drift-Band Rebalancing in RealTest

Code Ray Dalio's All-Weather Portfolio (30% SPY, 40% TLT, 15% IEF, 7.5% GLD, 7.5% DBC) in RealTest DynamicSizing, and...

Read →
Fixed-Income Bond Rotation and High-Yield Credit Spread Switching in RealTest
Bond Rotation Credit Spread

Fixed-Income Bond Rotation and High-Yield Credit Spread Switching in RealTest

Code 20-year fixed-income rotation in RealTest by computing cross-sectional bond momentum counts (#Sum qualBond) stri...

Read →
Long-Short Equity Portfolios and Net Exposure Caps (MaxNetExp & MinNetExp) in RealTest
Hedging Long Short

Long-Short Equity Portfolios and Net Exposure Caps (MaxNetExp & MinNetExp) in RealTest

Build unified Long-Short equity portfolios in RealTest by combining Side Long and Side Short strategies over one cash...

Read →
IBD Relative Strength Rating (#PercentRank) and Mark Minervini Stage 2 Template in RealTest
#PercentRank IBD Relative Strength

IBD Relative Strength Rating (#PercentRank) and Mark Minervini Stage 2 Template in RealTest

Code an IBD-style 1 to 99 Relative Strength rating natively in RealTest using weighted quarterly ROC inside a standal...

Read →
Market Breadth in RealTest Using #Avg, #Sum, McClellan Oscillator, and 52-Week NH-NL
#Avg #Sum

Market Breadth in RealTest Using #Avg, #Sum, McClellan Oscillator, and 52-Week NH-NL

Calculate survivorship-free market breadth natively inside RealTest's Data section with zero external breadth feeds u...

Read →
Out-of-Sample Robustness, Parameter Plateaus, and Random EntrySkip Stress Tests in RealTest
Out of Sample Overfitting

Out-of-Sample Robustness, Parameter Plateaus, and Random EntrySkip Stress Tests in RealTest

Detect curve-fitting before risking live capital in RealTest by plotting adjacent parameter thresholds side by side i...

Read →
Wilder ADX, PDI/MDI, Kaufman Efficiency Ratio, and Adaptive AEMA (KAMA) in RealTest
ADX AEMA

Wilder ADX, PDI/MDI, Kaufman Efficiency Ratio, and Adaptive AEMA (KAMA) in RealTest

Code directional trend strength in RealTest using native Wilder ADX(14), PDI(14), and MDI(14), compute Kaufman's Effi...

Read →
Bollinger Bands (BBBot), Keltner Channels (KBBot), and Z-Score Mean Reversion in RealTest
Bollinger Bands Keltner Channels

Bollinger Bands (BBBot), Keltner Channels (KBBot), and Z-Score Mean Reversion in RealTest

Code volatility-envelope mean reversion cleanly in RealTest using built-in one-pass functions BBBot(20, 2) for Bollin...

Read →
Profit Targets (ExitLimit), Breakeven Stops, and BarsHeld Time Stops in RealTest
Breakeven Stop ExitLimit

Profit Targets (ExitLimit), Breakeven Stops, and BarsHeld Time Stops in RealTest

Code intraday profit targets in RealTest using ExitLimit anchored to entry volatility via FillPrice + 2 * atr14[BarsH...

Read →
EntryStop, Stop-Limit Breakout Orders, Overnight Gap Fills, and StopSlip in RealTest
Breakout Strategy EntryStop

EntryStop, Stop-Limit Breakout Orders, Overnight Gap Fills, and StopSlip in RealTest

Code native Stop-Limit breakout orders in RealTest by combining EntryStop and EntryLimit inside the same Strategy so ...

Read →
Scaling In, Averaging Down, and Pyramiding in RealTest Using MaxSameSym and MaxSymExp
MaxSameSym MaxSymExp

Scaling In, Averaging Down, and Pyramiding in RealTest Using MaxSameSym and MaxSymExp

Enable scaling in or pyramiding in RealTest by raising MaxSameSym above its default of 1, capping per-symbol concentr...

Read →
Small-Cap and Russell 2000 Liquidity Filters, Volume Caps, and Slippage in RealTest
Liquidity RealTest

Small-Cap and Russell 2000 Liquidity Filters, Volume Caps, and Slippage in RealTest

Never trust thin small-cap backtests with 5 bps slippage and zero volume caps; enforce minimum price (C > 10), 20-day...

Read →
Multi-Timeframe Weekly Strategies in RealTest BarSize Daily Using EndOfWeek
EndOfWeek HolidayList

Multi-Timeframe Weekly Strategies in RealTest BarSize Daily Using EndOfWeek

Code multi-timeframe weekly strategies strictly inside BarSize Daily using EndOfWeek paired with HolidayList us_auto ...

Read →
MaxNewPos, MaxSetups, SetupSkip, and Order Priority in RealTest Top-Down Mode
MaxNewPos MaxSetups

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 MaxEntri...

Read →
RealTest Code and Syntax Complete Reference Hub (58 Validated Guides)
Backtesting RealTest

RealTest Code and Syntax Complete Reference Hub (58 Validated Guides)

Bookmark this complete RealTest 2.0 code and syntax hub organizing all 58 SetupAlpha validated guides across core syn...

Read →
RealTest Command Line Batch, Python Subprocess, Exit Code 6, and SaveStatsAs Exports
Automation Command Line

RealTest Command Line Batch, Python Subprocess, Exit Code 6, and SaveStatsAs Exports

Automate RealTest from Python or batch scripts using realtest.exe -import, -test, -scan, and -orders, export CSVs cle...

Read →
Gold, SPY, and TLT Rotation Plus Synthetic 3x TQQQ Modeling in RealTest
ETF Rotation GLD

Gold, SPY, and TLT Rotation Plus Synthetic 3x TQQQ Modeling in RealTest

Code monthly SPY, GLD, and TLT momentum rotation with a SHY cash shield using DynamicSizing and Select, and simulate ...

Read →
Norgate Survivorship Bias Proof in RealTest Using InSPX, InNDX, and InfoDelist
InfoDelist InSPX

Norgate Survivorship Bias Proof in RealTest Using InSPX, InNDX, and InfoDelist

Prove survivorship bias directly inside RealTest 2.0 using Norgate Data's historical index membership flags (InSPX, I...

Read →
EventListFile, Earnings Exclusion, and Float Lookahead Traps in RealTest
Earnings EventListFile

EventListFile, Earnings Exclusion, and Float Lookahead Traps in RealTest

Import historical earnings dates, FOMC announcements, or point-in-time fundamental events into RealTest via Import Ev...

Read →
1 2 3 4 Next →