×

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

Changes

Jump to navigation Jump to search

Portfolio GetMarginPerContract

18 bytes added, 14:51, 19 February 2012
m
no edit summary
Returns one of the following:
* A numerical value indicated in the [[Portfolio Settings|% '''of contract cost''']] box multiplied by '''-1''', if the '''Margin value''' option is selected; or:
* The same value as a reserved word [[Margin]] if the '''Absolute Margin Value''' option is selected.
== Notes ==
* This function can only be used in signals intended to be used with the [[:Category:Portfolio_Backtesting|Portfolio Backtester]].
== Example Examples ==
<syntaxhighlight>Portfolio_GetMarginPerContract</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 be bought on margin. The margin value can be returned for futures or options.

Navigation menu