|
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? |
JP7
|
Post subject: How to skip weekends in backup testing strategies? |
Post rating: 0
|
Posted: Mon 20 Jul, 2020, 05:17
|
|
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 !
|
|
|
|
|
API Support
|
Post subject: Re: How to skip weekends in backup testing strategies? |
Post rating: 1
|
Posted: Thu 23 Jul, 2020, 10:50
|
|
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 1727 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.
|
|
|
|
|
|
JP7
|
Post subject: Re: How to skip weekends in backup testing strategies? |
Post rating: 0
|
Posted: Sun 17 Mar, 2024, 11:54
|
|
User rating: 13
Joined: Mon 27 Jul, 2015, 16:30 Posts: 110 Location: Canada, Mission
|
|
|
|
|
fprophet
|
Post subject: Re: How to skip weekends in backup testing strategies? |
Post rating: 0
|
Posted: Tue 02 Jul, 2024, 22:49
|
|
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)
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|