The closest I can get (no cigar, not accurate) is this:
int barsperday = 1440 / Bars.Period.Value; closeratio = PriorDayOHLC().PriorClose[(i-1)*barsperday]/PriorDayOHLC().PriorClose[i*barsperday];
Same goes for not running an indicator unless X days of data are present ? Instead of
if (CurrentBar < barsperday * period) return;
Comment