Difference between revisions of "Pmms strategy avgentryprice"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Returns a numerical value, indicating the average entry price for all open entries in a pyramided position opened by the strategy with StrategyIndex number. ==Usage== <synta...")
 
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
 
==Example==  
 
==Example==  
 
Will assign a value of 25.75 to Value1 if there were four open entries at 25, 27, 26, and 25 with the same volume.<br>
 
Will assign a value of 25.75 to Value1 if there were four open entries at 25, 27, 26, and 25 with the same volume.<br>
<syntaxhighlight>Value1 = pmms_strategy_avgentryprice;</syntaxhighlight>
+
<syntaxhighlight>Value1 = pmms_strategy_avgentryprice(0);</syntaxhighlight>
 +
[[Category:Portfolio Money Management]]

Latest revision as of 11:51, 22 April 2021

Returns a numerical value, indicating the average entry price for all open entries in a pyramided position opened by the strategy with StrategyIndex number.

Usage

pmms_strategy_avgentryprice(''StrategyIndex'')

Parameters

StrategyIndex - numeric variable.

Notes

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

Example

Will assign a value of 25.75 to Value1 if there were four open entries at 25, 27, 26, and 25 with the same volume.

Value1 = pmms_strategy_avgentryprice(0);