|
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? |
|
[zortag]
|
| Post subject: When exactly is onBar caled with respect to onTick? |
Post rating: 0
|
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.
|
|
|
|
|
 |
|
[quantisan]
|
| Post subject: Re: When exactly is onBar caled with respect to onTick? |
Post rating: 0
|
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.
|
|
|
|
|
 |
|
API Support
|
| Post subject: Re: When exactly is onBar caled with respect to onTick? |
Post rating: 0
|
Posted: Mon 12 Jul, 2010, 15:03
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|