Portfolio Trader - Set Max Open Position  [SOLVED]

Questions about MultiCharts and user contributed studies.
no erocla
Posts: 134
Joined: 31 May 2013
Has thanked: 60 times
Been thanked: 7 times

Portfolio Trader - Set Max Open Position

Postby no erocla » 02 Jun 2015

Hi All,

there is any easy way through PT to set a Max Number of Open Position to reduce account size required in a TS portfolio ?
For example i would like, in a portfolio of 25 system, to limit the max number of open position at 15.

Regards
No Erocla

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Portfolio Trader - Set Max Open Position  [SOLVED]

Postby Henry MultiСharts » 02 Jun 2015

Hello No Erocla,

There is no specific reserved word for setting a max number of open positions, but you can deny sending any new orders once Portfolio_CurrentEntries (combined number of entries currently open within a portfolio) reaches a certain value. Please see PMM_Keywords for more details.

no erocla
Posts: 134
Joined: 31 May 2013
Has thanked: 60 times
Been thanked: 7 times

Re: Portfolio Trader - Set Max Open Position

Postby no erocla » 03 Jun 2015

Thank you Henry for replay,

yes this can avoid totally every margin call problems.

Regards
No Erocla

multichartsUser23
Posts: 15
Joined: 02 Mar 2018
Has thanked: 3 times

Re: Portfolio Trader - Set Max Open Position

Postby multichartsUser23 » 02 Mar 2018

Hi Henry,
Hello No Erocla,

There is no specific reserved word for setting a max number of open positions, but you can deny sending any new orders once Portfolio_CurrentEntries (combined number of entries currently open within a portfolio) reaches a certain value. Please see PMM_Keywords for more details.
I believe your explanation here is helpful for limiting orders once a set number of positions is already open, but, for example, if we want to limit our portfolio to one position at a time, I don't think Portfolio_CurrentEntries is sufficient to keep 2 strategies, who see that there is no open position, from both sending their orders in simultaneously, thus opening 2 positions when we only want one at a time. Am I incorrectly understanding Portfolio_CurrentEntries function or do you have another way to prevent the scenario in my example?


Return to “MultiCharts”