×

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 GetMarginPerContract

221 bytes added, 12:40, 25 July 2014
no edit summary
Returnsone of the following: * a A numerical value indicated in the % [[Portfolio Settings|% of contract cost]] box multiplied by [['''-1]]''', if the [['''Margin value]] ''' option is selected; or: * the The same value as a reserved word [[Margin]] if the [['''Absolute Margin Value]] ''' option is selected.
==== Usage ====
<syntaxhighlight>Portfolio_GetMarginPerContract</syntaxhighlight>
==== Parameters ==Notes == * This function can only be used in signals intended to be used with the Portfolio BacktesterTrader. * The absolute margin value is returned in the currency specified in Portfolio Trader: '''Portfolio Settings -> Base Currency. ''' ==== Example ==Examples ==<syntaxhighlight>Portfolio_GetMarginPerContract will </syntaxhighlight>Will return a value of 0 if Absolute Margin Value option is selected and the margin does not exist in the QuoteManager symbol settings. Not all of the securities can bebought on margin. The margin value can be returned for futures or options.  <syntaxhighlight>Portfolio_GetMarginPerContract</syntaxhighlight>Will return a value of 25 if Absolute Margin Value option is selected and the margin box in the Edit Symbol dialog window under Future tab in QuoteManager contains the value of 25.
<syntaxhighlight>Portfolio_GetMarginPerContract will </syntaxhighlight>Will return a value of 25 -10 if Absolute the Margin Value option is selected and the margin % of contract cost box in the Edit Symbol dialog window under Future tab in QuoteManager contains thevalue of 2510.
Portfolio_GetMarginPerContract will return a value of -10 if the Margin Value option is selected and
the % of contract cost box contains the value of 10.</syntaxhighlight>
[[Category:Portfolio Strategy Properties]]