Difference between revisions of "SetExitOnClose"
Jump to navigation
Jump to search
(Created page with "Closes out the current position at the Close tick of the last bar of the trading session on an intra-day chart; generates the appropriate Market exit order depending on whethe...") |
|||
Line 9: | Line 9: | ||
==== Example ==== | ==== Example ==== | ||
− | + | Generate an exit order at the Close tick of the last bar of the trading session: | |
− | SetExitOnClose;</syntaxhighlight> | + | <syntaxhighlight>SetExitOnClose;</syntaxhighlight> |
[[Category:Strategy Orders]] | [[Category:Strategy Orders]] |
Revision as of 12:34, 27 January 2012
Closes out the current position at the Close tick of the last bar of the trading session on an intra-day chart; generates the appropriate Market exit order depending on whether the position is long or short. SetExitOnClose function uses the session closing time specified in the session settings for the symbol in the QuoteManager.
Usage
SetExitOnClose
Notes
This function can only be used in signals.
Example
Generate an exit order at the Close tick of the last bar of the trading session:
SetExitOnClose;