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