What I am trying to do is to double check if the following bar minute differential is the same. I need to do some ray drawing and my lines will be skewed if the following bar is not the correct time. Examples are 15 minute spacing before close on nq , 1 hour close and weekends.
basically if the bar spacing is equal draw the ray and if not adjust the Anchor accordingly
nCurrentBar = Bars.GetBar(tTempTime1);
tNextBarTime = Bars.GetTime(nCurrentBar+1);
Print(tTempTime1 + " this is the tTempTime1");
Print(tNextBarTime + "This is the next Time"
my result in a 1 minute chart
2017-11-29 1:43:00 AM this is the tTempTime1
2017-11-29 1:45:00 AMThis is the next Time
2017-11-29 3:18:00 AM this is the tTempTime1
2017-11-29 3:20:00 AMThis is the next Time
2017-11-29 4:56:00 AM this is the tTempTime1
2017-11-29 4:57:00 AMThis is the next Time
2017-11-29 6:31:00 AM this is the tTempTime1
2017-11-29 6:33:00 AMThis is the next Time
Comment