i see that various mql4 indicators use a NewBar() function like this:
what is the best conversion of this practice to MQL5 ?
bool NewBar()
static datetime LastTime=0;
if(iTime(_Symbol,Period(),0)+time_offset!=LastTime)
{
LastTime=iTime(_Symbol,Period(),0)+time_offset;
return (true);
}
else
return (false);
}