×

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 CalcMaxPotentialLossForEntry

4 bytes added, 13:48, 23 January 2012
==== Example ====
<syntaxhighlight>Portfolio_CalcMaxPotentialLossForEntry (0, 25, High) will return a value of 0, since the parameter Side=0
Portfolio_CalcMaxPotentialLossForEntry (1, 100, Close) will return the maximum potential loss (not including margin, commision or slippage) if user entered a Long position for 100 contracts at the Close price.
Portfolio_CalcMaxPotentialLossForEntry (-1, 5, Open) will return the maximum potential loss (not including margin, commision or slippage) if user entered a Short position for 5 contracts at Open price.
Portfolio_CalcMaxPotentialLossForEntry (1) will return the maximum potential loss (not including margin, commision or slippage) if the user entered a Long position for a number of contracts indicated in the Format Settings dialog window under the Properties tab at Close price.</syntaxhighlight>
[[Category:Portfolio Strategy Position]]
Anonymous user