1,501
edits
No edit summary |
(→Usage) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
== Usage == | == Usage == | ||
<syntaxhighlight>ExitName( | <syntaxhighlight>ExitName(PosBack)</syntaxhighlight> | ||
Where: | 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 == | ||
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 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 | [[Category:Strategy Position]] |