×

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.

Difference between revisions of "Pmms strategy avgentryprice" - MultiCharts
Open main menu

Difference between revisions of "Pmms strategy avgentryprice"

(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.

Contents

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);