SetExitOnClose: Difference between revisions
From MultiCharts
no edit summary
No edit summary |
|||
Line 1: | Line 1: | ||
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 | 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]]. | ||
The '''SetExitOnClose''' function uses the session closing time specified in the [[Sessions|session]] settings for the symbol in the [[:Category:QuoteManager|QuoteManager]]. | |||
== Usage == | |||
<syntaxhighlight>SetExitOnClose</syntaxhighlight> | <syntaxhighlight>SetExitOnClose</syntaxhighlight> | ||
== 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: | Generate an exit order at the Close tick of the last bar of the trading session: | ||