Dukascopy
 
 
Wiki JStore Search Login

4h candle time
 Post subject: 4h candle time Post rating: 0   New post Posted: Mon 16 Jan, 2017, 16:20 

User rating: 0
Joined: Tue 26 Aug, 2014, 19:18
Posts: 23
Location: Russian Federation,
Hello!
I have a problem with the 4h candle, looks like VJF get candles from 00:00 UTC, but week start up from 22:00 UTC, as a result my calculations shifted by 2 hours.
At the begining of the program i compare candle period with the global variance (4hr),
then i get historical candle (4hr) but it's also shifted by 2 hours.
what to do?

Image


Attachments:
Безымянный.jpg [371.32 KiB]
Downloaded 341 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: 4h candle time Post rating: 0   New post Posted: Mon 16 Jan, 2017, 17:38 
Visual JForex expert at Dukascopy
User avatar

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

VJF historical tester is set by default to GMT time therefore candles starts at midnight and not 22: this is a standard behavior.


 
 Post subject: Re: 4h candle time Post rating: 0   New post Posted: Mon 16 Jan, 2017, 21:53 

User rating: 0
Joined: Tue 26 Aug, 2014, 19:18
Posts: 23
Location: Russian Federation,
amine_chourou - say please, how to set up 4 hour candles from 22 utc at week begining? such way 22:00-02:00, 2:00-06:00, 06:00-10:00 etc..
may be count four 1hour candles and then find OHLC for improvised 4hour candle?
or you now another more simple way?

main problem is - pivot indicator shows lines on time frame 22:00-02:00, 2:00-06:00, 06:00-10:00 etc... (becouse at JF by default start of the day is EET (UTC+2))
but VJF start of the day is UTC and trades in my case opens at 00:00, 4:00, 08:00 utc - 2 hours shifted :shock:

i think you should add option in VJF where to start the day.


 
 Post subject: Re: 4h candle time Post rating: 0   New post Posted: Tue 17 Jan, 2017, 12:35 
Visual JForex expert at Dukascopy
User avatar

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

My previous answer was lacking details :) sorry for that.
In Jforex, there is a setting to change day start time so that candles starts at 22 instead of 00 as you already noticed. In API, the default time is GMT based and so is Visual Jforex. I believe there is possibilities to change this in the strategy code manually but unfortunately I can't help on this matter. Better to check the folks in Automated trading section of this forum.

Thanks


 
 Post subject: Re: 4h candle time Post rating: 0   New post Posted: Tue 31 Jan, 2017, 13:30 

User rating: 0
Joined: Tue 26 Aug, 2014, 19:18
Posts: 23
Location: Russian Federation,
if i run vj processor locally, then i can edit timezone for indicator (save on my PC) from GMT to EET or strategy call idicator from the Dukascopy server?


row 50 on the screenshot
Image


Attachments:
Безымянный.png [174.92 KiB]
Downloaded 355 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: 4h candle time Post rating: 0   New post Posted: Tue 31 Jan, 2017, 14:39 
Visual JForex expert at Dukascopy
User avatar

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

Unfortunately I can't help you with that. I recommend posting this in the automated trading section where our developers will advice.

Cheers


 
 Post subject: Re: 4h candle time Post rating: 0   New post Posted: Tue 31 Jan, 2017, 19:07 

User rating: 0
Joined: Tue 26 Aug, 2014, 19:18
Posts: 23
Location: Russian Federation,
Please< give link to that section
thanks


 
 Post subject: Re: 4h candle time Post rating: 0   New post Posted: Wed 01 Feb, 2017, 11:22 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Here you go:
https://www.dukascopy.com/swiss/english ... m.php?f=65


 

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