RealTest User Guide
RealTest User Guide

 

 

Navigation: Realtest Script Language > Syntax Element Details >

ExitType

 

 

 

 

Category

Current Position Information

Description

Returns the exit order type for which a OrderExtra formula is being evaluated

Notes

The return value is the "exit reason" as displayed in a trade list (string) or accessed by T.Reason (numeric).

ExitType can be used in an OrderExtra formula to enable different output for each type of exit order being generated.

For example if a custom OrdersTemplate specifies extra1 rather than gtd in row 2 under the GoodAfterTime header, it could use specify different activation times for the target and the stop orders:

OrderExtra1: Format("{?} {?} US/Eastern", Format(?OrderDate, "yyyy-MM-dd"), if(ExitType = "exit limit", "10:00:00", "11:00:00"))

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC