Pmms strategy close position partial

From MultiCharts
Revision as of 08:26, 10 April 2017 by Angelina (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This function partially closes position of the specified strategy for the set number of contracts.


pmms_strategy_close_position_partial(Index, isNextBar, contracts)


Index - numeric variable, strategy index.
isNextBar - boolean variable, true - generates open next bar order, false - generates close this bar order.
contracts - numeric variable, contracts number.


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


Reduce the position of the first symbol of the portfolio for 3 contracts at the next bar open.

pmms_strategy_close_position_partial(0, true, 3)