Portfolio Trader 2nd Data Series causes error.  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
RonS
Posts: 21
Joined: 16 Sep 2018
Has thanked: 7 times
Been thanked: 3 times

Portfolio Trader 2nd Data Series causes error.

Postby RonS » 10 Sep 2019

In Portfolio Trader using generic LE and LX strategies everything works. Under Data1 column have AAPL, TQQQ, and PYPL and Optimization is error free. But when I add an index (COMP) in the Data2 column. I get an error during Optimization...

Message: Not enough series length. Bars reference value : 50.

The supplied MovAvg_Cross_LE and MovAvg_Cross_LX strategies never accesses COMP in Data 2 column. From a previous Support Forum post it looks like the start of Strategy calculation on Data 1 might be different than the Data 2 column.

The recommended solution was "Please check the first calculation bar your Portfolio". I have no idea how to do this or how to proceed.

A link to the previous post is:

viewtopic.php?f=19&t=51913&p=132094&hil ... er#p132094

Any help would be appreciated. I burned out finding XAverage needs at least 4 times the number of MaxBarsBack than regular Average.

-Ron

RonS
Posts: 21
Joined: 16 Sep 2018
Has thanked: 7 times
Been thanked: 3 times

Re: Portfolio Trader 2nd Data Series causes error.  [SOLVED]

Postby RonS » 12 Sep 2019

This was fixed by a setting Strategy 1 /Show Properties / Format Settings / "Maximum number of bars study will reference". Needed it be same as the ExecInfo.MaxBarsBack value in the program.


Return to “MultiCharts .NET”