NinjaScript > Language Reference > Strategy > ExitOnClose |
![]() ![]() ![]() ![]() |
Definition Indicates if the strategy will cancel all strategy generated orders and close all open strategy positions at the close of the session. This property can be set programatically in the Initialize() method or be driven by the UI at run time. See also "ExitOnCloseSeconds".
Property Value This property returns true if the strategy will exit on close; otherwise, false.
Syntax ExitOnClose
Examples
|