Difference between revisions of "Pmms strategy set entry contracts"

From MultiCharts
Jump to navigation Jump to search
(Created page with "This function sets the number of contracts for entry orders of the strategy with StrategyIndex number (size calculated by the strategy itself will be ignored). To use the orde...")
 
 
Line 14: Line 14:
 
==Example==
 
==Example==
 
<syntaxhighlight>pmms_strategy_set_entry_contracts(0, 5)</syntaxhighlight>
 
<syntaxhighlight>pmms_strategy_set_entry_contracts(0, 5)</syntaxhighlight>
 +
 +
[[Category:Portfolio Money Management]]

Latest revision as of 18:01, 1 November 2016

This function sets the number of contracts for entry orders of the strategy with StrategyIndex number (size calculated by the strategy itself will be ignored). To use the order size calculated by the strategy itself set “contracts” parameter to -1.

Usage

pmms_strategy_set_entry_contracts(StrategyIndex, Contracts)

Parameters:

StrategyIndex - numeric variable.
Contracts - numeric variable.

Notes

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

Example

pmms_strategy_set_entry_contracts(0, 5)