Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

When exactly is onBar caled with respect to onTick?
 Post subject: When exactly is onBar caled with respect to onTick? Post rating: 0   Post Posted: Mon 12 Jul, 2010, 03:02 

User rating: 0
Joined: Sun 11 Jul, 2010, 20:12
Posts: 20
Can you please give details on when exactly onBar is called? Yes I know it is called upon the completion of each new bar, when exactly is a new bar completed? For example, it could be completed exactly on a time boundary, or it could be completed when a new tick comes in that is outside the time boundary of the prior bar. So when is onBar called? Is it called before the new tick for a new bar arrives? Or is it called after the new tick arrives?

Please explain.


 
 Post subject: Re: When exactly is onBar caled with respect to onTick? Post rating: 0   Post Posted: Mon 12 Jul, 2010, 14:37 

User rating: 1
Joined: Fri 26 Mar, 2010, 19:19
Posts: 116
Location: Canada
I had this exact same question a while back. onBar is called on the next tick AFTER the current bar finishes. So according to your question, it is after the new tick arrives.


 
 Post subject: Re: When exactly is onBar caled with respect to onTick? Post rating: 0   Post Posted: Mon 12 Jul, 2010, 15:03 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Here is that topic https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=5&t=4840&hilit=OnBar+Called


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com