+1 888 340 6572

EntryName: Difference between revisions

From MultiCharts
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:
   
   
== Usage ==
== Usage ==
<syntaxhighlight>EntryName(TradeNumber)</syntaxhighlight>  
<syntaxhighlight>EntryName(PosBack)</syntaxhighlight>  


Where:  
Where:  


:'''TradeNumber''' - a numerical expression, specifying the number of trade (zero-based).  
: <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 [[PosTradeEntryName]].
If <code>PosBack</code> is not specified, a value for the open position will be returned.
 
== Example ==
<syntaxhighlight>EntryName(1);</syntaxhighlight>


== Example ==
will return a value of "buy LE" for the last closed position, if this position was opened by the order with "buy LE" name.
<syntaxhighlight>
EntryName(1);</syntaxhighlight>


Will return "EL Limit" if the entry name for the previous position was "EL Limit".
[[Category:Strategy Position]]
[[Category:Strategy Position Trades]]

Latest revision as of 13:36, 24 February 2012

Returns the name of the order which opened the position.

Usage

EntryName(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

EntryName(1);

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