Returns a numerical value, indicating the total profit or loss for all closed trades the specified position.
== Usage ==
<syntaxhighlight>PositionProfit(0)</syntaxhighlight>
Will return a value of 5 if the value sum of the closed trades profit of the open position has increased by is $5 since it was entered.
<syntaxhighlight>PositionProfit(1)</syntaxhighlight>