RealTest User Guide
RealTest User Guide

 

 

Navigation: RealTest Script Language > Syntax Element Details >

EndOfTestExits

 

 

 

 

Category

Settings

Description

Controls whether open positions are exited at the end of a backtest

Choices

True - exit all positions at the end of each test (default)

False - do not exit open positions

Notes

Positions exited because the test has ended will show "end of test" in the "Reason" column of the trade list. This setting does not affect End-of-Data Exits, which close a position at its symbol's last bar when the data ends before the test does.

When EndOfTestExits is False, open positions will not appear in the trade list.

Possible reasons to disable end-of-test exits are:

to exclude still-open positions from trade-level stats

to keep those position records in memory for inspection in the Debug Panel (previously this was controlled by the Debug choice of the TestOutput setting)

 

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC