Dukascopy
 
 
Wiki JStore Search Login

Working with LastTick.TickTime and GetTimeUnit issue
 Post subject: Working with LastTick.TickTime and GetTimeUnit issue Post rating: 0   New post Posted: Mon 29 Jun, 2015, 08:47 
User avatar

User rating: 0
Joined: Mon 15 Jun, 2015, 13:09
Posts: 15
Location: Australia, St Ives
Hello support team.

Following my learning process and developing my system in VJF I just came across something that I really can not work it out.

I am trying to work with LastTick.TickTime(assigned to a Date/Time type variable) to do some time based calculation and decision making functions.

As you may see in the attached photo and if you run the attached simple VJF file, LastTick.TickTime return my PC local time instead of the server ticktime. And when I use GetTimeUnit component to retrieve LastTick.TickTime Hour,Minute and second it returns the server time component.

Has any one faced this issue before or know how to overcome this issue so LastTick.TickTime returnes server time not the PC time?

Any reply would be greatly appreciated.

Regards
Image


Attachments:
TimeIssue.PNG [338.33 KiB]
Downloaded 438 times
WorkingWithTimeUnit.vfs [20.73 KiB]
Downloaded 78 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: Working with LastTick.TickTime and GetTimeUnit issue Post rating: 1   New post Posted: Mon 29 Jun, 2015, 10:01 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

It is more or less inconsistent but this is definitely not a blocking issue:
As you described, the tick time is returning your local time but when retrieving the hours it gives you the server time: I recommend you to build your conditions using the server time and disregard the local time
populated by the variable tick time / candle time

Thanks


 
 Post subject: Re: Working with LastTick.TickTime and GetTimeUnit issue Post rating: 0   New post Posted: Mon 29 Jun, 2015, 13:31 
User avatar

User rating: 0
Joined: Mon 15 Jun, 2015, 13:09
Posts: 15
Location: Australia, St Ives
Hi

Thanks for the reply first of all, but not quiet the answer I was expecting. Obviously something somewhere is not functioning properly. That is ok, I will work my way around it however, it would have been much more efficient and easier if the function was working fine.

Cheers


 
The Best Answer  Post subject: Re: Working with LastTick.TickTime and GetTimeUnit issue Post rating: 1   New post Posted: Mon 29 Jun, 2015, 14:38 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

We've initiated an investigation in parallel and I'll keep you informed regarding the outcome.
What I've suggested in my previous post is that you can easily use a workaround to achieve your idea as this issue is not blocking.

Thanks


 
 Post subject: Re: Working with LastTick.TickTime and GetTimeUnit issue Post rating: 0   New post Posted: Mon 29 Jun, 2015, 14:49 
User avatar

User rating: 0
Joined: Mon 15 Jun, 2015, 13:09
Posts: 15
Location: Australia, St Ives
Hi

Thx for the clarification. I have already worked out an alternative to tackle the issue but it is great to know that you are working on this in the interim.

Cheers


 

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