Dukascopy
 
 
Wiki JStore Search Login

JFOREX-1716 Orders history before first tick
 Post subject: JFOREX-1716 Orders history before first tick Post rating: 0   New post Posted: Sat 13 Mar, 2010, 10:42 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
Hi,

I'm getting loads of the below messages at the start of a strategy. From the loginfo I cannot figure out, if our strategy code is initially triggering something that is causing these messages, or if it is on your side. I guess it's not critical, but I'm including this post for your info.

Best, RR.

Quote:
13.03.2010 10:30:18.454 SEVERE datacache.bc ] Orders history can't be accessed before first tick arrives into the system
com.dukascopy.charts.data.datacache.DataCacheException: Orders history can't be accessed before first tick arrives into the system
at com.dukascopy.charts.data.datacache.bc.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
13.03.2010 10:30:18.455 SEVERE dataprovider.g ] Orders history can't be accessed before first tick arrives into the system
com.dukascopy.charts.data.datacache.DataCacheException: Orders history can't be accessed before first tick arrives into the system
at com.dukascopy.charts.data.datacache.bc.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


 
 Post subject: Re: JF2.2.6 - Orders history can't be accessed before first tick Post rating: 0   New post Posted: Fri 19 Mar, 2010, 16:29 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
your strategy is trying get some orders history data before first tick. It means that in your strategy happens some object initializations before first tick came in to the system. Try to move these initializations to onTick function.


 
 Post subject: Re: JF2.2.6 - Orders history can't be accessed before first tick Post rating: 0   New post Posted: Mon 22 Mar, 2010, 18:26 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
Hi,

we don't have any initializations in onStart(), everything get's initialized in onTick(..) already.
onBar(..), onMessage(..) and onAccount(..) are already checking if initialization has taken place in onTick(..)

Best, RR.


 

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