hi i download a history spx500 http://opserver.de/down/history_SPY.zip uncompress and insert the data inside the forlder \Zorro\History after i create a simple script
function run()
{
set(PARAMETERS+LOGFILE);
BarPeriod = 1440; // Periodo giornaliero

if(day() == MONDAY && hour() == 23 && minute() == 58)
{
// Calcola l'RSI a 2 periodi
vars Price = series(price());
vars RSI2 = series(RSI(Price, 2));

if(RSI2[0] < 30)
{
enterLong(1);
printf("Entered long position");
}
}

if(day() == WEDNESDAY && hour() == 0 && minute() == 5)
{
exitLong(1);
printf("Exited long position");
}
}

i choice in script my script and spx500 test but tell me

spx compiling...........
Error 047: SPX500 no 2018 history (History\SPX500.t6)
Error 047: SPX500 2018..2023 no data
Error 047: No SPX500 prices