Difference between revisions of "ExitName"

From MultiCharts
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Returns the name of the order which closed the position.  
 
Returns the name of the order which closed the position.  
 
   
 
   
http://www.buyxanaxonlinepill.com/ buy xanax online - order cheap xanax online
+
== Usage ==
 +
<syntaxhighlight>ExitName(PosBack)</syntaxhighlight>
 +
 
 +
Where:
 +
 
 +
: <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 ==  
 
== Notes ==  
* Same as [[PosTradeExitName]].
+
 
 +
If <code>PosBack</code> is not specified, a value for the open position will be returned.
  
 
== Example ==
 
== Example ==
 
<syntaxhighlight>
 
<syntaxhighlight>
 
ExitName(1);</syntaxhighlight>
 
ExitName(1);</syntaxhighlight>
Will return "ES mkt#1" if the exit name for the previous position was "ES mkt#1".
+
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]]
+
[[Category:Strategy Position]]

Latest revision as of 13:39, 24 February 2012

Returns the name of the order which closed the position.

Usage

ExitName(PosBack)

Where:

PosBack - 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 PosBack is not specified, a value for the open position will be returned.

Example

ExitName(1);

will return a value of "sell LX" for the last closed position, if this position was closed by the order with "sell LX" name.