1,501
edits
No edit summary |
m (Reverted edits by 176.8.90.7 (talk) to last revision by JoshM) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 17: | Line 17: | ||
== Notes == | == Notes == | ||
This function can only be used in signals. | * This function can only be used in signals. | ||
* To retrieve the total number of trades in specified position use [[PosTradeCount]]. | |||
== Examples == | |||
== | |||
<syntaxhighlight> | <syntaxhighlight> | ||
Line 29: | Line 28: | ||
Will return a value of 5 for the second trade of the open position, if the commission and slippage for this trade is 5 dollars. | Will return a value of 5 for the second trade of the open position, if the commission and slippage for this trade is 5 dollars. | ||
<syntaxhighlight> | <syntaxhighlight> | ||
if BarsSinceExit(1) = 1 then begin | if BarsSinceExit(1) = 1 then begin |