Dukascopy
 
 
Wiki JStore Search Login

Delay in data feed on Remote Run
 Post subject: Delay in data feed on Remote Run Post rating: 0   New post Posted: Wed 26 Feb, 2014, 16:40 

User rating: 0
Joined: Wed 26 Feb, 2014, 16:12
Posts: 3
Location: United StatesUnited States
I have noticed this before too and it seems to happens at random: when I retrieve askBar.getTime() in the onBar method there seems to be a delay in the time that gets printed in the Strategy Log (I print the time every Bar (in onBar)).

The code I use is
println("...format(askBar.getTime()).toString()...")


As you can see the time that gets printed is different than the real time. Again, this only happens on occasion.

Image

Can someone explain why this is happening?
Thanks in advance


Attachments:
Error-1.png [37.4 KiB]
Downloaded 586 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Delay in data feed on Remote Run Post rating: 0   New post Posted: Thu 27 Feb, 2014, 14:52 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
We do not guarantee that the time the logs are written in DB will match the time they were sent from Remote strategy server. And we think this is a minor issue.


 
 Post subject: Re: Delay in data feed on Remote Run Post rating: 0   New post Posted: Fri 28 Feb, 2014, 02:35 

User rating: 0
Joined: Wed 26 Feb, 2014, 16:12
Posts: 3
Location: United StatesUnited States
Thanks for your response.

I think I should be more clear: it seems the data feed to the Remote Server itself is delayed. On my platform trades are being executed based on indicator calculations which are being based on delayed data and hence the trade is erroneous. This is a major issue because incorrect/delayed trades are being placed on the platform.

The askBar.getTime() is reflective of the fact the there is a data feed delay to the Remote Server. I don't think there is a delay issue with the time the logs are written to the DB. The delay is in the feed to the onBar method when the strategy is running on the Remote Server.

Is it possible that the data feed to the Remote Server gets delayed if the Strategy thread is queued up and blocking the feed?

Please advise. Thanks


 
 Post subject: Re: Delay in data feed on Remote Run Post rating: 0   New post Posted: Sun 02 Mar, 2014, 23:51 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
Sometimes remote servers get overload and your remote strategy sends an order to the trade server with some significant delay. (I've lost some money on LIVE account due such an issue last December).
Explicit subscribing to instruments was a good solution but it has not resolved the issue completely.

Dukascopy's Remote Server is a FREE service with a POOR quality of service.
This rule is applicable to any broker's free VPS / Remote Server.

If you need a reliable server use a non-free one.


 
 Post subject: Re: Delay in data feed on Remote Run Post rating: 0   New post Posted: Mon 03 Mar, 2014, 18:27 

User rating: 0
Joined: Wed 26 Feb, 2014, 16:12
Posts: 3
Location: United StatesUnited States
Ah I see, thanks for the insight hebasto.


 

Jump to:  

  © 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