CT
    
        
            Clarification on timing of OnBar events
            
                 09 Nov 2020, 12:52
            
                    
Hi Panagiotis,
i am not 100% sure if this question was answered before as I didn't find a completely matching answer...
If a cBot is running on a M1 chart and processing of an OnBar event takes longer then one minute (let's say 5 minutes) - what happens with the bars opened in the meantime?
- Are those events added to a queue and triggered later (i. e. delayed)?
 - Or is every OnBar event a separate thread?
 - Or are those bars just skipped and the next bar opened after the process was finished triggers the next OnBar event?
 - Or is it handled in a different way?
 
Many thanks and best regards,
Christian

PanagiotisCharalampous
09 Nov 2020, 14:10
Hi Christian,
If the previous OnBar event has not been processed yet, then the new one is ignored.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous