×

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

Portfolio GetMaxPotentialLossPerContract

1,096 bytes added, 14:14, 23 January 2012
Created page with "Returns: * a numerical value indicated in the % box multiplied by -1, if the Max Potential Loss option is selected in the Format Settings dialog window under the Port..."
Returns:
* a numerical value indicated in the % box multiplied by [[-1,]] if the [[Max Potential Loss]] option is selected in the Format Settings dialog window under the Portfolio Settings tab; or:
* a numerical value indicated in the $ box, if the [[Absolute Max Potential Loss]] option is selected in the [[Format Settings]] dialog window under the [[Portfolio Settings]] tab.

==== Usage ====
<syntaxhighlight>Portfolio_GetMaxPotentialLossPerContract</syntaxhighlight>

==== Notes ====
This function can only be used in signals intended to be used with the Portfolio Backtester.

==== Example ====
<syntaxhighlight>Portfolio_GetMaxPotentialLossPerContract will return -5 if the Max Potential Loss option is selected
and % box value is 5 under the Portfolio Settings tab in the Format Settings dialog window.

Portfolio_GetMaxPotentialLossPerContract will return 0.001 if the Absolute Max Potential Loss option
is selected and $ box value is 0.001 under the Portfolio Settings tab in the Format Settings dialog window.</syntaxhighlight>



[[Category:Portfolio Strategy Properties]]
Anonymous user