Portfolio GetMarginPerContract

From MultiCharts
Revision as of 14:11, 23 January 2012 by 194.84.116.138 (talk) (Created page with "Returns: * a numerical value indicated in the % of contract cost box multiplied by -1, if the Margin value option is selected; or: * the same value as a reserved...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns:

Usage

Portfolio_GetMarginPerContract

Parameters

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

Example

Portfolio_GetMarginPerContract 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. 

Portfolio_GetMarginPerContract 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. 

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.