×

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

Pmms strategy set entry contracts

648 bytes added, 18:01, 1 November 2016
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..."
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==
<syntaxhighlight>pmms_strategy_set_entry_contracts(StrategyIndex, Contracts)</syntaxhighlight>

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==
<syntaxhighlight>pmms_strategy_set_entry_contracts(0, 5)</syntaxhighlight>