CSI Futures FuturesMargin PointValue RealTest RealTest Code

Futures Backtesting in RealTest (PointValue, FuturesMargin, TickSize, and CSI Rollover)

Summary

To backtest futures accurately in RealTest 2.0, import contract specs (PointValue, TickSize, Margin) automatically from Norgate/CSI or via SymInfoFile for CSV data, compute dollar volatility as ATR(20) * PointValue, size integer contracts with QtyType Shares plus QtyRound 1, and set FuturesMargin InfoMargin alongside CashIntPct so idle cash earns interest while posted margin collateral does not.

· 4 min read
RealTest 2.0 futures backtesting workspace showing SymInfoFile PointValue script left, E-mini vs Micro equity curves top right, and contract Trade List bottom right
Key findings
  • PointValue stores the dollar multiplier per 1-point price move ($50 for ES, $20 for NQ, $5 for MES, $2 for MNQ, and $1 automatically for equities); multiply ATR(20) * PointValue to get true dollar volatility per contract.
  • RealTest does not have a Floor() function inside Quantity formulas; omit Floor() and set QtyType Shares with QtyRound 1 so RealTest rounds contract counts cleanly down to whole integers automatically.
  • Futures positions post collateral rather than borrowing margin cash; setting FuturesMargin InfoMargin ensures CashIntPct pays interest strictly on free excess cash above required margin collateral.
  • For CSI back-adjusted continuous contracts, add RollCost inside Strategy so RealTest automatically deducts rollover friction every time an open position crosses a contract roll boundary.
  • Model realistic futures slippage directly in contract ticks using OpenSlip TickSize * 2 and StopSlip TickSize * 4 paired with per-contract Commission (such as 2.25 * Shares).
  • Validated in RealTest 2.0 across 2015 through 2024 on a $250,000 futures account with 1.5 percent ATR risk per trade, Micro E-minis (fut_micro_trend on MES/MNQ) compounded to $411,223 (-10.24 percent MaxDD) versus $370,186 (-8.97 percent MaxDD) for full-size E-minis (ES/NQ) because finer contract granularity eliminated whole-contract rounding drag.

Futures trend following across equity indexes, metals, rates, and commodities is one of the highest-traffic topics on the RealTest forum (49 dedicated threads, 392 posts, and 691 mentions). Traders migrating from equity scripts routinely stumble over three futures-specific mechanics, including multiplying ATR by PointValue, wiring SymInfoFile for CSV/CSI contracts, and understanding why FuturesMargin behaves completely differently from stock margin loans.

Every futures contract directive below follows the official RealTest PointValue documentation, and the full 10-year E-mini versus Micro E-mini comparison was imported with genuine CME contract specifications and executed live in RealTest 2.0.

Core RealTest Futures Directives (PointValue, TickSize, FuturesMargin, RollCost)

Norgate Data and CSI Unfair Advantage supply contract metadata automatically on import. When importing custom CSV futures files, supply a compact SymInfoFile containing Symbol,PointValue,TickSize,Margin,Currency.

RealTest Futures Directive Purpose & Unit Validated Usage Example
PointValue Dollar value of a 1.00-point price move ($50 ES, $5 MES, $20 NQ, $2 MNQ) dlrAtr: ATR(20) * PointValue
TickSize Minimum price increment (0.25 for ES/NQ) OpenSlip: TickSize * 2 / StopSlip: TickSize * 4
FuturesMargin Collateral per contract (blocks CashIntPct on posted margin, never charges margin loan interest) FuturesMargin: InfoMargin
QtyType: Shares + QtyRound: 1 Whole integer contract sizing (note RealTest has no Floor() function!) Quantity: (S.Alloc * 0.015) / Max(2.5 * dlrAtr, 1)
RollCost Dollar cost charged per open contract when CSI continuous data crosses a roll date RollCost: Shares * (2.25 + TickSize * PointValue)

Notice that subtle syntax catch proven during live parsing. LLMs frequently invent Floor(...) inside futures contract sizing, which throws an unrecognized syntax error in RealTest 2.0. Leave Quantity as a clean floating-point contract formula and set QtyRound: 1 so RealTest truncates down to whole contracts natively (for fractional crypto sizing, see our RealTest QtyRound 0 guide).

Complete Validated RealTest Futures Script (E-mini vs Micro E-mini Trend)

The complete script below imports 4 CME equity index futures contracts (ES, MES, NQ, MNQ) with their exact SymInfoFile multipliers and margin requirements, credits 3.5 percent CashIntPct on unencumbered excess cash, and compares standard E-minis against granular Micro E-minis on identical 1.5 percent ATR risk per trade.

Notes:
	Futures backtesting in RealTest 2.0 using SymInfoFile (PointValue, TickSize,
	Margin), FuturesMargin collateral tracking, CashIntPct on free cash, and
	ATR-normalized contract sizing comparing Micro (MES/MNQ) vs E-mini (ES/NQ).

Import:
	DataSource:	CSV
	CSVFile:	C:\RealTest\Data\futures_demo.csv
	CSVFields:	Symbol,Date,Open,High,Low,Close,Volume
	CSVDateFmt:	MDY
	SymInfoFile:	C:\RealTest\Data\futures_syminfo_demo.csv
	SaveAs:	C:\RealTest\Data\futures_demo.rtd

Settings:
	DataFile:	C:\RealTest\Data\futures_demo.rtd
	StartDate:	2015-01-01
	EndDate:	2024-12-31
	AccountSize:	250000
	BarSize:	Daily
	CashIntPct:	3.5

Parameters:
	riskPct:	0.015
	atrStopMult:	2.5

Data:
	ma50:	Avg(C, 50)
	ma200:	Avg(C, 200)
	atr20:	ATR(20)
	hh20:	HHV(H, 20)[1]
	// Dollar volatility per 1 contract = ATR(20) * PointValue
	dlrAtr:	atr20 * PointValue
	trendEntry:	C > ma200 and ma50 > ma200 and C > hh20

Template: fut_base
	Side:	Long
	QtyType:	Shares
	// Size integer futures contracts by risking riskPct of equity over atrStopMult ATRs
	Quantity:	(S.Alloc * riskPct) / Max(atrStopMult * dlrAtr, 1)
	QtyRound:	1
	FuturesMargin:	InfoMargin
	Commission:	2.25 * Shares
	OpenSlip:	TickSize * 2
	StopSlip:	TickSize * 4
	ExitStop:	IF(BarsHeld >= 1, HHV(H - atrStopMult * atr20, BarsHeld + 1), 0)
	ExitRule:	C < ma50
	ExitTime:	NextOpen
	Ambiguity:	Stop

// 1. Standard E-mini contracts (ES $50/pt, NQ $20/pt)
Strategy: fut_emini_trend
	Using:	fut_base
	EntrySetup:	(Symbol = $ES or Symbol = $NQ) and trendEntry
	MaxPositions:	2

// 2. Micro E-mini contracts (MES $5/pt, MNQ $2/pt) enabling granular contract scaling
Strategy: fut_micro_trend
	Using:	fut_base
	EntrySetup:	(Symbol = $MES or Symbol = $MNQ) and trendEntry
	MaxPositions:	2

Charts:
	MA50:	ma50
	MA200:	ma200

Validated 2015 to 2024 Results (Why Micro Contracts Outperformed E-Minis)

Even on a $250,000 futures account, testing full E-minis against 1/10th-size Micros highlights a huge practical edge in integer position sizing.

Futures Sleeve (2015 to 2024, $250k Start) Trades Ending Equity Max Drawdown Typical Contract Count
fut_emini_trend (ES $50/pt, NQ $20/pt) 86 $370,186 -8.97% 1 contract (rounded down from 1.6)
fut_micro_trend (MES $5/pt, MNQ $2/pt) 92 $411,223 -10.24% 9 to 16 micro contracts (exact target risk)
RealTest 2.0 MNQ micro Nasdaq futures trade chart displaying ATR-normalized integer contract sizing, MA50, MA200, and trailing ATR exit stop
RealTest 2.0 trade chart on MNQ (9 contracts bought at 14,055.75, exited via Chandelier stop at 14,961.00, +$16,254 or +6.42%) from fut_micro_trend. Granular micro sizing enabled 92 clean risk-sized fills vs 86 lumpy single-contract fills on E-minis.

Remember how well CashIntPct pairs with futures collateral modeling (covered in depth in our RealTest CashIntPct and accounting guide) and how easily you can combine a futures trend sleeve with US equity mean reversion inside one portfolio via our RealTest multi-strategy portfolio combining guide.

Build Audited Multi-Asset and Trend Portfolios in RealTest

Need custom CSI futures pipelines, multi-asset portfolio risk sizing, or bespoke strategy engineering in RealTest 2.0? Explore our RealTest Strategy Development service, test free starter code in our free RealTest code library, or review complete diversified systems across our RealTest Portfolios collection and All-Weather Low-Drawdown Portfolio.

Key terms

PointValue
A RealTest symbol metadata variable storing the dollar multiplier per 1-point price move on a futures contract (such as $50 for ES, $5 for MES, and $1 automatically for equities).
FuturesMargin
A RealTest Strategy formula specifying dollar collateral per futures contract so idle cash interest (CashIntPct) and MinFreeCash reflect real futures margin rules.
RollCost
A RealTest Strategy formula deducting rollover commission and bid-ask friction automatically whenever an open futures position spans a CSI continuous contract roll boundary.
TickSize
A RealTest contract metadata variable giving the minimum price tick increment (such as 0.25 points on ES/NQ) for realistic tick-based OpenSlip and StopSlip modeling.
Dollar ATR Volatility
The dollar risk per futures contract over one ATR move, computed in RealTest as ATR(20) * PointValue for volatility-normalized contract sizing.

Frequently asked questions

How do you calculate ATR position sizing for futures contracts in RealTest?

Multiply ATR(20) by RealTest's built-in PointValue variable to obtain dollar volatility per contract (dlrAtr), set QtyType Shares and QtyRound 1, and assign Quantity to (S.Alloc * riskPct) / Max(atrStopMult * dlrAtr, 1). RealTest automatically rounds down to whole contracts without needing a Floor() function.

How does FuturesMargin work with CashIntPct in RealTest?

Futures positions post cash collateral rather than borrowing margin funds. Setting FuturesMargin InfoMargin deducts posted futures margin from excess cash so CashIntPct pays Treasury or broker interest strictly on your unencumbered free cash without charging stock margin loan rates.

How do you provide PointValue, TickSize, and Margin for CSV futures data in RealTest?

Create a SymInfoFile CSV containing columns Symbol, PointValue, TickSize, Margin, and Currency, and reference it via SymInfoFile inside your Import section. Norgate Data and CSI Futures imports populate these metadata fields automatically.

How does RealTest handle futures rollover costs on CSI continuous contracts?

Add a RollCost dollar formula inside your Strategy block when testing CSI Futures back-adjusted data. Every time an open trade holds across a contract roll date, RealTest automatically evaluates RollCost and deducts the cumulative roll friction from trade profit.

How do you specify futures slippage in ticks rather than percentages in RealTest?

Multiply RealTest's built-in TickSize variable directly inside OpenSlip and StopSlip, such as OpenSlip TickSize * 2 for two ticks of entry slippage and StopSlip TickSize * 4 for four ticks of stop slippage.

Why did Micro futures (MES/MNQ) outperform standard E-minis (ES/NQ) on the same $250,000 trend script?

When target risk calls for 1.6 E-mini contracts, whole-contract truncation rounds down to 1 contract (under-sizing risk by 38 percent). Micro contracts scaled cleanly to 9 through 16 contracts per trade, capturing exact target risk and raising 10-year ending equity from $370,186 to $411,223.

Related strategies

All-Weather Low-Drawdown Portfolio
Diversified multi-asset RealTest portfolio engineered for controlled drawdown across equities, bonds, and trend sleeves.
View →
Turtle Max Growth Strategy
Classic volatility-normalized breakout trend-following RealTest system with complete open source code.
View →
The Dual-Engine Alpha Portfolio
Combined multi-sleeve RealTest system designed for resilient risk-adjusted compounding across market cycles.
View →
← Back to Learn

#1 RealTest Backtests

Supercharge Your Trading Now

Reduce drawdown, build diversification, or speed up your development time.

Browse RealTest Strategies