Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

How to skip weekends in backup testing strategies?
 Post subject: How to skip weekends in backup testing strategies? Post rating: 0   New post Posted: Mon 20 Jul, 2020, 05:17 
User avatar

User rating: 13
Joined: Mon 27 Jul, 2015, 16:30
Posts: 110
Location: Canada, Mission
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 !


 
 Post subject: Re: How to skip weekends in backup testing strategies? Post rating: 1   New post Posted: Thu 23 Jul, 2020, 10:50 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Greetings.

The example is in the strategy attached Strategy.java.

Regards.


Attachments:
Strategy.java [1.91 KiB]
Downloaded 1728 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: How to skip weekends in backup testing strategies? Post rating: 0   New post Posted: Sun 17 Mar, 2024, 11:54 
User avatar

User rating: 13
Joined: Mon 27 Jul, 2015, 16:30
Posts: 110
Location: Canada, Mission
Thank You!


 
 Post subject: Re: How to skip weekends in backup testing strategies? Post rating: 0   New post Posted: Tue 02 Jul, 2024, 22:49 
User avatar

User rating: 1
Joined: Fri 14 Sep, 2012, 02:25
Posts: 57
Location: New Zealand, Christchurch
I only execute this onBar code when backtesting:
if (engine.getType() == IEngine.Type.TEST)


 

Jump to:  

  © 1998-2024 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