historical, new and ticks
static datetime tBar =0; ... if ( tBar != Time[0] ) { tBar = Time[0]; ... } else { // ticks of the recent bar .. }You are looking for s.th. like that?
static datetime tBar =0; ... if ( tBar != Time[0] ) { tBar = Time[0]; ... } else { // ticks of the recent bar .. }You are looking for s.th. like that?
You agree to website policy and terms of use
What's the most efficient way to isolate historical bars, new real-time bars and ticks in OnCalculate?
e.g.