Jimparker / Publications
Forum
Whats wrong with this code for detecting new bar please
NewCandle = FALSE; datetime StartBar = iTime(" EURUSD ",PERIOD_M5,0); datetime NewBar = StartBar; while(! NewCandle) { NewBar = iTime("EURUSD",PERIOD_M5,0); if(NewBar != StartBar) { NewCandle = TRUE; StartBar = NewBar; }