Where: [[EntryIndex]] - a numerical expression, specifying the number of trade (zero-based).
==:'''EntryIndex''' - a numerical expression, specifying the number of trade (zero-based). == Notes ====
This function can only be used in signals.
To retrieve the total number of trades in open position use [[OpenEntriesCount]] .
==== Example ====<syntaxhighlight>OpenEntryMaxProfit(0);</syntaxhighlight>Will return a value of 124.00 for the maximum profit of the current open position for the first trade.