PosTradeCommission: Difference between revisions
From MultiCharts
m
no edit summary
m (→Notes) |
mNo edit summary |
||
Line 20: | Line 20: | ||
* To retrieve the total number of trades in specified position use [[PosTradeCount]]. | * To retrieve the total number of trades in specified position use [[PosTradeCount]]. | ||
== | == Examples == | ||
<syntaxhighlight> | <syntaxhighlight> | ||
Line 28: | 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 |