backtesting problem

Questions about MultiCharts and user contributed studies.
dingmanhoe123
Posts: 61
Joined: Jul 25 2013
Has thanked: 18 times

Jul 03 2015

I try to run backtest for a new strategy but it is not successful. The message as shown in the attached file was popped out.

How could I solve the problem?
Attachments
pic 1.png
(19.09 KiB) Downloaded 241 times

User avatar
JoshM
Posts: 2195
Joined: May 20 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Jul 03 2015

I try to run backtest for a new strategy but it is not successful. The message as shown in the attached file was popped out.

How could I solve the problem?
I think your code has a problem. The error message says it expects a data series with a number of 111 to be added to the chart. I doubt we can add so much data series to a chart in MultiCharts, so there likely is a typo somewhere.

To fix it, look for the `Data()` keyword somewhere in your code, like:

Code: Select all

value1 = Close[10] Data(111);
Also see Data on the wiki.