Changes

Jump to navigation Jump to search

OpenPositionProfit

637 bytes added, 11:54, 27 January 2012
Created page with "Returns a numerical value, indicating the current profit or loss for the open position. ==== Usage ==== <syntaxhighlight>OpenPositionProfit</syntaxhighlight> ==== Notes ..."
Returns a numerical value, indicating the current profit or loss for the open position.

==== Usage ====
<syntaxhighlight>OpenPositionProfit</syntaxhighlight>

==== Notes ====
This function can only be used in signals.

==== Example ====
<syntaxhighlight>OpenPositionProfit will return a value of 0 if the current position is flat

OpenPositionProfit will return a value of 10 if the value of the open position has increased by $10
since it was entered

OpenPositionProfit will return a value of -5 if the value of the open position has decreased by $5
since it was entered</syntaxhighlight>

[[Category:Strategy Position]]
Anonymous user

Navigation menu