Let's say, for the 30 second interval time-frame, I want to act only when a 30-second bar occurs at 4:30 min of the current on-going 5 min bar (i,e, 9th 30-second bars since the last 5 min bar).
More specifically:
if (BarInProgress == 0) {
if (CurrentBar of the 30 second = 9th 30-second Bars since the last 5 min bar's close) {
}
}
Any recommendations on how I can implement this: "CurrentBar of the 30 second = 9th 30-second Bars since the last 5 min bar's close" ?
Comment