Navigation: Realtest Script Language > Syntax Element Details >

ExitTime

 

 

 

 

Category

Strategy Elements

Description

Specifies when a strategy exits positions at market when the ExitRule condition is true (non-zero)

Choices

ThisClose - exits occur at the close of the current day

NextOpen - exits occur at tomorrow's open (default)

NextClose - exits occur at tomorrow's close

Notes

Using ThisClose implies an ability to generate realtime trading signals using live data. RealTest will not be able to generate Tomorrow's Orders for ThisClose exits.

ExitTime controls the time at which a market order is generated. NextOpen implies that a standard MKT order is placed before the open, to be filled at the open. NextClose implies that a MOC order is placed before the open, to be filled at the close.

For more information on how the backtest engine works in general, see Backtest Engine Details.

 

 

 

Copyright © 2020-2022 Systematic Solutions, LLC