Optimization and out of sample data

Questions about MultiCharts .NET and user contributed studies.
3strategy
Posts: 22
Joined: 31 Dec 2014
Has thanked: 2 times
Been thanked: 1 time

Optimization and out of sample data

Postby 3strategy » 16 Feb 2015

I would like to know how to run an optimization while leaving some "future" out of sample data? For example optimize on Dec 31 2013 till Dec 31 2014, instead of until current date.
The purpose is to later check the behavior of the optimized system on "unseen" data of 2014.

MidKnight
Posts: 343
Joined: 12 Aug 2012
Has thanked: 123 times
Been thanked: 56 times

Re: Optimization and out of sample data

Postby MidKnight » 16 Feb 2015

Not tried this but just throwing the idea out there.

You can probably do this by controlling your symbol date range on your chart.

With kind regards,
MK

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

Re: Optimization and out of sample data

Postby Henry MultiСharts » 19 Feb 2015

Hello 3strategy,

1 day chart is the easiest way to do that. You need to plot 1 day chart with the "From - To" data range (From "IS start date – MaxBarsBack" - To "OOS end date". Use the Pin icon to save the data range and disable auto adjustment to the current date.
Example: MaxBarsBack = 50, so if the start date of a 1 day IS is 31 of December, you should go 50 business days prior to 1st of January for the chart data range.

Count the amount of bars on the chart from Dec 31 2013 (CurrentBar) till Dec 31 2014, use this value as IS. The remainder of the bars in the OOS value.


Return to “MultiCharts .NET”