Problem with Data2 in Portfolio Trader

Questions about MultiCharts and user contributed studies.
smhuggins
Posts: 12
Joined: 15 Mar 2015
Has thanked: 1 time

Problem with Data2 in Portfolio Trader

Postby smhuggins » 29 Apr 2016

Hello

I don't know if there is a bug (and if so, if it is known), or there is a setting I am missing.

I am running a strategy in Portfolio Trader. Daily Bars, Australian stocks. It works how I want it to.

I want to reference the Australian index, so I have added that symbol (.AXJO) to Data2 and coded accordingly in my strategy.

HOWEVER, here is the problem:
When I load the index symbol into Data2 but DO NOT reference Data2 in the strategy code, it yields drastically different results to when there is NO Data2 symbols and still no reference to Data2 in the code.

So I tried a different random symbol in Data2, still with no reference to Data2 in the code. And again, completely different results.

I have engaged ABC Trading, and he believes there is a bug. Or a setting he is unaware of.

Their guess is that because a symbol is placed in Data2, (even though Data2 is not referenced in the code) means that because of the maxbarsback setting (currently set to 200), it is running on different data and thus yields different results.

Is anyone else aware of this problem or experiencing the same?

Is there a way around it, or something I am missing...??

Many thanks for your help with this problem.

Kind Regards
Simone

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

Re: Problem with Data2 in Portfolio Trader

Postby Henry MultiСharts » 29 Apr 2016

Hello Simone,

This is expected behavior. Adding additional data series may change the data range of the strategy calculation and increase the number of strategy calculations.

Please see the following article: https://www.multicharts.com/trading-sof ... Generation

smhuggins
Posts: 12
Joined: 15 Mar 2015
Has thanked: 1 time

Re: Problem with Data2 in Portfolio Trader

Postby smhuggins » 29 Apr 2016

Ah. Ok thanks.

I'll run some more tests then and come back to you. I'm sure I'll have some more questions.

Thanks for your fast response.

Regards
Simone


Return to “MultiCharts”