+1 888 340 6572

OpenEntryMaxProfit: Difference between revisions

From MultiCharts
(Created page with "Returns a numerical value, indicating maximal value of OpenEntryProfit for the time from entry order execution. ==== Usage ==== <syntaxhighlight>OpenEntryMaxProfit(Entr...")
 
mNo edit summary
Line 1: Line 1:
Returns a numerical value, indicating maximal value of [[OpenEntryProfit]] for the time from entry order execution.  
Returns a numerical value, indicating maximal value of [[OpenEntryProfit]] for the time from entry order execution.  
   
   
==== Usage ====
== Usage ==
<syntaxhighlight>OpenEntryMaxProfit(EntryIndex)</syntaxhighlight>  
<syntaxhighlight>OpenEntryMaxProfit(EntryIndex)</syntaxhighlight>  


Where: [[EntryIndex]] - a numerical expression, specifying the number of trade (zero-based).
Where:  


==== Notes ====  
:'''EntryIndex''' - a numerical expression, specifying the number of trade (zero-based).
 
== Notes ==  
This function can only be used in signals.  
This function can only be used in signals.  


To retrieve the total number of trades in open position use [[OpenEntriesCount]]  
To retrieve the total number of trades in open position use [[OpenEntriesCount]].
   
   
==== Example ====
== 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]]
[[Category:Strategy Position Trades]]

Revision as of 16:19, 27 January 2012

Returns a numerical value, indicating maximal value of OpenEntryProfit for the time from entry order execution.

Usage

OpenEntryMaxProfit(EntryIndex)

Where:

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

OpenEntryMaxProfit(0);

Will return a value of 124.00 for the maximum profit of the current open position for the first trade.