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.

How to process all ticks for test in SDK mode?
 Post subject: How to process all ticks for test in SDK mode? Post rating: 0   New post Posted: Mon 28 Apr, 2014, 15:54 

User rating: 0
Joined: Tue 16 Jul, 2013, 02:56
Posts: 13
Dear support:
I test my strategy in JForex-SDK, get a ITestClient class and call

client.setDataInterval(DataLoadingMethod.ALL_TICKS, dateFrom.getTime(), dateTo.getTime());

but I find it didn't process all ticks. I write a simple strategy to print every tick info,and compare to the

output in visual JForex platform.therefore I found it lose some ticks ,how can I process all ticks in JForex-SDK

like in visual JForex platform.


 
 Post subject: Re: How to process all ticks for test in SDK mode? Post rating: 1   New post Posted: Tue 29 Apr, 2014, 11:55 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Without knowing much more about your strategy it is difficult to tell...
You can take a look on this wiki page, which describes that sometimes an onTick() call can be skipped. Maybe this give some tips.

We also don't know if you have 'missing' tick from the past (data from the cached), or you have issues with 'live' tick, that are being generated. If it is historical data, you can give it a try to clean the platform cache (for VJForex), and delete the cache also for the SDK, so you will download it again.
It is also possible that the SDK and the platform (not sure about VJForex, but the for JForex for sure) are using the same cache, so you will have the same historical data always.

If these tips are absolutely irrelevant, then please provide an example strategy, example outputs, etc, etc, which can help to identify the issue.


 
 Post subject: Re: How to process all ticks for test in SDK mode? Post rating: 0   New post Posted: Tue 29 Apr, 2014, 15:33 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
see: viewtopic.php?f=65&t=45855


 
 Post subject: Re: How to process all ticks for test in SDK mode? Post rating: 0   New post Posted: Wed 30 Apr, 2014, 04:28 

User rating: 0
Joined: Tue 16 Jul, 2013, 02:56
Posts: 13
Hello all,

thanks for help. it's the different between live data and historical data.

and I clear the cache then it is ok now. thanks.


 

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