|
This section explains the internal mechanics of the RealTest backtest engine. Understanding these details helps in writing strategies that behave as intended and in interpreting test results correctly.
Topics in this section
1.Backtest Loop Overview — how the daily loop processes exits and entries across three time-of-day phases, and how setups are selected and allocated across strategies
2.Asset Allocation and Position Sizing — how allocation, sizing, and exposure are managed
3.Capacity Constraints — MaxPositions, MaxExposure, and other limits
4.Compounding — how equity growth is reinvested
5.Split Handling — how stock splits affect price and volume data
6.Dividend Handling — how dividends are processed during a test
7.Intraday Fills With Daily Bars — how limit and stop orders are filled within a daily bar
8.Intraday Fill Sequence Assumptions — why intraday entries are processed before exits
9.Bar Sizes and Multiple Timeframes — weekly, monthly, and other bar sizes
10.Calendar Alignment — how bars are aligned across different markets
11.Calculation of Trade Excursions — how MAE and MFE are computed
12.The Current Bar in Formula Evaluation — what "current bar" means in different contexts
13.Specifying a Time Stop — time-based exit patterns
14.Number of Bars Required for Functions and Indicators — minimum data requirements
15.Scaling In or Out of Positions — pyramiding and partial exits
16.Referring to Past Trades in Strategy Formulas — using trade history in entry/exit logic
17.Testing Multi-Currency Strategies — currency conversion and FX handling
18.Using CSI Futures Data — CSI-specific data considerations
|