1,501
edits
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
Where: | Where: | ||
: | : <code>PosBack</code> - a numerical expression, specifying the number of trade (zero-based). | ||
: 0 - open position; | : 0 - open position; | ||
: 1 - one position back (the last position closed); | : 1 - one position back (the last position closed); | ||
: 2 - two positions back, etc. | : 2 - two positions back, etc. | ||
== Notes == | == Notes == | ||
If <code>PosBack</code> is not specified, a value for the open position will be returned. | If <code>PosBack</code> is not specified, a value for the open position will be returned. | ||
Line 16: | Line 16: | ||
== Example == | == Example == | ||
<syntaxhighlight>EntryName(1);</syntaxhighlight> | <syntaxhighlight>EntryName(1);</syntaxhighlight> | ||
will return a value of "buy LE" for the last closed position, if this position was opened by the order with "buy LE" name. | |||
[[Category:Strategy Position]] | [[Category:Strategy Position]] |