Portfolio GetMaxPotentialLossPerContract

From MultiCharts
Revision as of 14:54, 19 February 2012 by JoshM (talk | contribs) (→‎Notes)
Jump to navigation Jump to search

Returns one of the following:

  • A numerical value indicated in the % box multiplied by -1, if the Max Potential Loss option is selected in the Portfolio 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

Portfolio_GetMaxPotentialLossPerContract

Notes

Example

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.