×

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
Open main menu

Changes

ExitName

306 bytes added, 13:39, 24 February 2012
Returns the name of the order which closed the position.
==== Usage ====<syntaxhighlight>ExitName(TradeNumberPosBack)</syntaxhighlight>
Where: [[TradeNumber]] - a numerical expression, specifying the number of trade (zero-based). ==== Notes ==== Same as [[PosTradeExitName(0,TradeNumber).]] ==== Example ====
: <code>PosBack</code> - a numerical expression, specifying the number of trade (zero-based).
: 0 - open position;
: 1 - one position back (the last position closed);
: 2 - two positions back, etc.
== Notes ==  If <code>PosBack</code> is not specified, a value for the open position will be returned. == Example ==<syntaxhighlight>ExitName(1);</syntaxhighlight>will return a value of "sell LX" for the last closed position, if this position was closed by the order with "sell LX" name.  [[Category:Strategy Position Trades]]