LO
    
        
            How to get the index of bar like MT4 iBarShift  Thank you
            
                 13 May 2020, 12:52
            
                    
Hi,
 
How to get the index of bar in Ctrader,just like MT4 iBarShift 
MT4 iBarShift:
  datetime some_time=D'2004.03.21 12:00'; 
  int      shift=iBarShift("EURUSD",PERIOD_M1,some_time); 
Returned value:
Index of the bar which covers the specified time.  (history "gap"), 
Thanks
                         cTrader Automate
        
        
        @lordyy
    
PanagiotisCharalampous
13 May 2020, 13:00
Hi lordyy,
Here it is.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous