×

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

Pmms strategy close position partial

246 bytes added, 13:22, 10 April 2017
no edit summary
<i></i>This function partially closes position of the specified strategy with Index for the set number with market order (orders generated by the strategy will be deleted from Raw Orders collection)of contracts.
==Usage==
<syntaxhighlight>pmms_strategy_close_positionpmms_strategy_close_position_partial(Index, isNextBar, contracts)</syntaxhighlight>
Where:
:'''Index''' - numeric variable, strategy index.:'''isNextBar''' - bool variable, true - generates open next bar order, false - generates close this bar order.:'''contracts''' - numeric variable, contracts number
==Notes==
This function can only be used in signals intended to be used with the Portfolio Trader.
==Example==Reduce the position of the first symbol of the portfolio for 3 contracts at the next bar open.<syntaxhighlight>pmms_strategy_close_positionpmms_strategy_close_position_partial(0, true, 3)</syntaxhighlight>
[[Category:Portfolio_Money_Management]]

Navigation menu