Dukascopy
 
 
Wiki JStore Search Login

Weird calls of onTick method
 Post subject: Weird calls of onTick method Post rating: 1   New post Posted: Sat 02 Nov, 2013, 08:23 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
Hi,

As we know from docs:
Quote:
onTick is called on every tick of every instrument that application is subscribed on.
https://www.dukascopy.com/wiki/#Strategy_API
https://www.dukascopy.com/client/javadoc/com/dukascopy/api/IStrategy.html#onTick(com.dukascopy.api.Instrument,%20com.dukascopy.api.ITick)
BUT there are some more cases when the onTick method is called.
1) For a local running strategy the applying of Menu->File->Reconnect cause two calls of the onTick method: first one before disconnecting and second one after reconnecting.
2) For a remote running strategy the onTick method is called just after starting the strategy even there were no ticks after strategy was started.
In all of these cases the argument that is passed in the onTick method is the last known tick which can occurred long time ago.

I do not consider this behavior of strategies as a bug but some explanations in docs and wiki will be appreciated.
Thanks in advance.


 
 Post subject: Re: Weird calls of onTick method Post rating: 0   New post Posted: Wed 22 Jan, 2014, 09:55 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
It seems Support Team have done something about that: Release Notes: Build 2.9.5.1 / Date 2013-12-09


 
 Post subject: Re: Weird calls of onTick method Post rating: 0   New post Posted: Wed 22 Jan, 2014, 10:34 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Yes we have. We just moved the topic to the right forum.


 

Jump to:  

  © 1998-2024 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