Difference between revisions of "Pmms strategies in positions count"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Returns a numerical value, indicating the number of strategies with open position. Accepts one parameter - a one dimensional dynamical array. This array is filled with the ind...")
 
 
Line 2: Line 2:
  
 
==Usage==
 
==Usage==
<syntaxhighlight>Pmms_strategies_in_positions_count(indexesArray)</syntaxhighlight>
+
<syntaxhighlight>pmms_strategies_in_positions_count(indexesArray)</syntaxhighlight>
  
 
Parameters:
 
Parameters:

Latest revision as of 17:18, 1 November 2016

Returns a numerical value, indicating the number of strategies with open position. Accepts one parameter - a one dimensional dynamical array. This array is filled with the index numbers of the strategies that have an open position at the moment of the strategy calculation.

Usage

pmms_strategies_in_positions_count(indexesArray)

Parameters:

indexesArray - array variable.

Notes

This function can only be used in signals intended to be used with the Portfolio Trader.

Example

var: positions(0); 

array: strategyIndexes[](0); 

positions = pmms_strategies_in_positions_count(strategyIndexes);