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

How to skip weekends in backup testing strategies?
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=57400
Page 1 of 1

Author:  JP7 [ Mon 20 Jul, 2020, 05:17 ]
Post subject:  How to skip weekends in backup testing strategies?

Hello API Support

Please provide an efficient way to skip weekends in backup testing strategies.

I have been trying few examples but they only seem to work for a short period of time when the simulation testing starts, then endless periods of waiting time follow for each weekend period.

Thank you !

Author:  API Support [ Thu 23 Jul, 2020, 10:50 ]
Post subject:  Re: How to skip weekends in backup testing strategies?

Greetings.

The example is in the strategy attached Strategy.java.

Regards.

Attachments:
Strategy.java [1.91 KiB]
Downloaded 1757 times

Author:  JP7 [ Sun 17 Mar, 2024, 11:54 ]
Post subject:  Re: How to skip weekends in backup testing strategies?

Thank You!

Author:  fprophet [ Tue 02 Jul, 2024, 22:49 ]
Post subject:  Re: How to skip weekends in backup testing strategies?

I only execute this onBar code when backtesting:
if (engine.getType() == IEngine.Type.TEST)

  Page 1 of 1