Pmms strategy close position partial: Difference between revisions
From MultiCharts
Pmms strategy close position partial (view source)
Revision as of 13:26, 10 April 2017
, 10 April 2017no edit summary
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
Where: | Where: | ||
:'''Index''' - numeric variable, strategy index. | :'''Index''' - numeric variable, strategy index. | ||
:'''isNextBar''' - | :'''isNextBar''' - boolean variable, true - generates open next bar order, false - generates close this bar order. | ||
:'''contracts''' - numeric variable, contracts number | :'''contracts''' - numeric variable, contracts number. | ||
Notes | ==Notes== | ||
This function can only be used in signals intended to be used with the Portfolio Trader. | This function can only be used in signals intended to be used with the Portfolio Trader. | ||
Example | ==Example== | ||
Reduce the position of the first symbol of the portfolio for 3 contracts at the next bar open. | Reduce the position of the first symbol of the portfolio for 3 contracts at the next bar open. | ||
<syntaxhighlight>pmms_strategy_close_position_partial(0, true, 3)</syntaxhighlight> | <syntaxhighlight>pmms_strategy_close_position_partial(0, true, 3)</syntaxhighlight> | ||
[[Category:Portfolio_Money_Management]] | [[Category:Portfolio_Money_Management]] |