Limiting the number of entries in Portfolio Backtester ?  [SOLVED]

Questions about MultiCharts and user contributed studies.
Aston01
Posts: 21
Joined: 24 Oct 2013

Limiting the number of entries in Portfolio Backtester ?

Postby Aston01 » 27 Dec 2013

I know I can use Portfolio_CurrentEntries to determine the number of open positions within a portfolio, but with multiple strategies is there a way to limit the open positions specific to that strategy?

For instance I am backtesting two separate strategies (on multiple instruments) within a portfolio that are inversely correlated and I would like to limit each strategy to just one open position. I have tried using Portfolio_CurrentEntries < 3 , but at times I get two trades in one strategy and none on the other.

Anyway around this in Portfolio Backtester ?

User avatar
Henry MultiСharts
Posts: 8511
Joined: 25 Aug 2011
Has thanked: 1213 times
Been thanked: 2733 times

Re: Limiting the number of entries in Portfolio Backtester ?

Postby Henry MultiСharts » 30 Dec 2013

Aston01, unfortunately there is no reserved word to limit the amount of entries per strategy at the moment. This is something that will be added in MultiCharts 9.0.

waveslider
Posts: 200
Joined: 16 Oct 2011
Has thanked: 63 times
Been thanked: 20 times

Re: Limiting the number of entries in Portfolio Backtester ?

Postby waveslider » 27 Oct 2017

I am aware of "Portfolio_CurrentEntries", but this will not limit the strategy from entering 10 new entries on one day. For example if it goes into the day with less than 3 entries, the strategy may open 10 new positions. So their needs to be a way to limit the number of new entries on one day. Any ideas of a work around?

User avatar
Anna MultiCharts
Posts: 74
Joined: 14 Jul 2017
Has thanked: 2 times
Been thanked: 14 times

Re: Limiting the number of entries in Portfolio Backtester ?

Postby Anna MultiCharts » 07 Nov 2017

Hello, waveslider!

I’m afraid we haven’t introduced any keyword for limiting entries.
If you need to limit the number of entries for the day, you can compare the value returned by Portfolio_CurrentEntries with the one you need (10, as in your example), and make so that the entry orders are not generated when the condition Portfolio_CurrentEntries < 10 is not true.

User avatar
ABC
Posts: 527
Joined: 16 Dec 2006
Has thanked: 111 times
Been thanked: 296 times
Contact:

Re: Limiting the number of entries in Portfolio Backtester ?

Postby ABC » 14 Nov 2017

waveslider,

you can accomplish this using a portfolio money management signal and only let the number of entry orders pass that you want to allow.

Regards,

ABC

waveslider wrote:I am aware of "Portfolio_CurrentEntries", but this will not limit the strategy from entering 10 new entries on one day. For example if it goes into the day with less than 3 entries, the strategy may open 10 new positions. So their needs to be a way to limit the number of new entries on one day. Any ideas of a work around?

waveslider
Posts: 200
Joined: 16 Oct 2011
Has thanked: 63 times
Been thanked: 20 times

Re: Limiting the number of entries in Portfolio Backtester ?

Postby waveslider » 14 Nov 2017

Thanks ABC, I thought so too but was unable to do it. Can you give me a clue as to which signal would help?

User avatar
ABC
Posts: 527
Joined: 16 Dec 2006
Has thanked: 111 times
Been thanked: 296 times
Contact:

Re: Limiting the number of entries in Portfolio Backtester ?

Postby ABC » 14 Nov 2017

waveslider,

the "Portfolio Rank MM Signal" and documentation should get you going.

Regards,

ABC

waveslider
Posts: 200
Joined: 16 Oct 2011
Has thanked: 63 times
Been thanked: 20 times

Re: Limiting the number of entries in Portfolio Backtester ?  [SOLVED]

Postby waveslider » 14 Nov 2017

thanks!


Return to “MultiCharts”