Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

How to run a strategy with custom Day start time?
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=58582
Page 1 of 1

Author:  gipadm [ Wed 05 Jul, 2023, 10:52 ]
Post subject:  How to run a strategy with custom Day start time?

In JForex Chart Preferences it is possible to set a custom "Day start time" : UTC, EST, etc. This recalculates all bars, indicators, etc.

Is it possible to run an entire strategy on bar data that is not using the default (UTC) timezone? E.g. if we use EST day start:
- the onBar() method will be called at 00:00 EST for a new daily bar
- history.getBars() will return bars starting at 00:00 EST
- indicators will be calculated using EST timezone bars, etc.

Author:  API Support [ Mon 10 Jul, 2023, 15:06 ]
Post subject:  Re: How to run a strategy with custom Day start time?

Hello!

Yes, it is possible. Please see article on that topic: https://www.dukascopy.com/wiki/en/devel ... -date-time

I also attached strategy file with example.

Kind regards,
Dukascopy Bank SA

Attachments:
ADR_Test.java [2.91 KiB]
Downloaded 281 times

  Page 1 of 1