I seem to be using alot if time troubleshooting missing data errors. because i run in differant time frames,
bars required on a 30 sec series would be alot higher than on a daily series.
Instead of defining Bars required in numbers of bars the traditinal way i want to define it in a matter of hours.
how can i get the time / data stamp of the first bar recieved ?
I will then check that with the current bar and check i always have atleast for an example 48 hours in between.
I was hoping to do something like this but cant seem to get it working.
if (Time[CurrentBars[0]].AddHours(48) >= Time[b])
return;

Comment