thank you andrew, i ve tried to do what you suggest, but i think i get a bug.
this is mycode:
Code
        NumYears = 10;
	BarPeriod = 60;
	MaxLong = MaxShort = 1;
	LookBack = 500;
asset(file_content("C:\\Users\\utente\\Zorro\\Data\\best1.csv"));
vars Price = series(priceClose());
int per = 100;
var x = 2.5;
vars Trends1 = series(SMA(Price,per));
vars Trends2 = series(SMA(Price,per*x));
	
       if(crossOver(Trends1,Trends2))
       enterLong();
      if(crossUnder(Trends1,Trends2))
       enterShort();	


in the "best1.csv" there is only a line with written "GBP/AUD".
And i get this error:
Quote

Error 055: "GBP/AUD"
no history (2010 History\ "GBPAUD" , t6)
Error055: no bars generated


its like if it cant read the "/" in the file. Can someone explain why i get this wrong output?
Ps: i ve got the t6 file 2010 of GBP/AUD

Last edited by maxwellreturn; 10/09/19 12:48.