ops sorry i eliminate bar period
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");
}
}


but return me thesame result .... only the chart