I have downloaded historical data with the Download script through the Metatrader bridge. In the History folder I have a full M1 .t6 file for 2018, but for 2017 I have data only from 11.28 to 12.31. I have no data from the previous years (2013-2016), but the Download script still created 10KB files for those years. However when I run the script below (modified from https://www.financial-hacker.com/binary-options-scam-or-opportunity/), I get "not enough bars" error. I am very new to Zorro, therefore it is quite possible that there are errors in the code.

Code:
var objective()
{
	return ((var)(NumWinLong+NumWinShort))/(NumLossLong+NumLossShort);
}

function run()
{
	BarPeriod = 5;
	LookBack = 100;
	NumWFOCycles = 20;
	NumCores = -1;
	
	set(BINARY);
	WinPayout = 94.2;
	LossPayout = 0;

	set(PARAMETERS);
	int TimePeriod = optimize(20,10,100);
	var m = optimize(0.01, 0.001, 0.05);
	var Threshold = m*(HH(TimePeriod)-LL(TimePeriod));

	if(NumOpenLong+NumOpenShort == 0) 
	{
		LifeTime = 1;
		if(HH(TimePeriod) - priceClose() < Threshold)
		{
			enterShort();
		}
		else if(priceClose() - LL(TimePeriod) < Threshold)
		{
			enterLong();
		}
	}
}