×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

SetExitOnClose

652 bytes added, 14:12, 24 January 2012
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..."
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 ====
<syntaxhighlight>SetExitOnClose</syntaxhighlight>

==== Notes ====
This function can only be used in signals.

==== Example ====
<syntaxhighlight>Generate an exit order at the Close tick of the last bar of the trading session:

SetExitOnClose;</syntaxhighlight>


[[Category:Strategy Orders]]
Anonymous user

Navigation menu