×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts
Open main menu

Changes

OpenEntryMaxProfit

156 bytes added, 13:10, 13 February 2012
m
Reverted edits by 176.8.90.7 (talk) to last revision by JoshM
Returns a numerical value, indicating maximal value of [[OpenEntryProfit]] for the time from entry order execution.
==== Usage ====
<syntaxhighlight>OpenEntryMaxProfit(EntryIndex)</syntaxhighlight>
Where: [[EntryIndex]] - a numerical expression, specifying the number of trade (zero-based).
==== Notes ==== This function can only be used in signals.  To retrieve :'''EntryIndex''' - a numerical expression, specifying the total number of trades in open position use [[OpenEntriesCount]] ==== Example ====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.
[[Category:Strategy Position Trades]]