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.

One order per week on a specific time
 Post subject: One order per week on a specific time Post rating: 0   New post Posted: Fri 03 Feb, 2012, 12:38 
User avatar

User rating: 0
Joined: Sun 18 Sep, 2011, 09:19
Posts: 7
Location: FranceFrance
Hello,

I would like to change this strategy for making it taking one order each monday at 4am at the same conditions as it is in the attached strategy even if there is already 1, 2 or 3 orders already opened.

Thanks for helping.

Attachment:
EMA_STRATEGY.java [5.42 KiB]
Downloaded 309 times


 
 Post subject: Re: One order per week on a specific time Post rating: 0   New post Posted: Fri 03 Feb, 2012, 13:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See if you can make use of the following wiki examples:
https://www.dukascopy.com/wiki/#Customize_trading_hours


 
 Post subject: Re: One order per week on a specific time Post rating: 0   New post Posted: Fri 03 Feb, 2012, 16:54 
User avatar

User rating: 0
Joined: Sun 18 Sep, 2011, 09:19
Posts: 7
Location: FranceFrance
Dear support,

Thanks for the answer. I studied the example you gave, but it doesn't help me much. What I need is that the strategy take just one order each monday just at the opening of the bar at 4am.
I already tried by using hour trade but the strategy take trade during one hour (from 4am to 4:59 am) and I can't find the way with this manner to have a sttle of hour trade that last only 1 second or even 1 millisecond.
Can you code this for me or complete the attached strategy.
Thank you for helping…


 
 Post subject: Re: One order per week on a specific time Post rating: 0   New post Posted: Wed 08 Feb, 2012, 12:00 
User avatar

User rating: 2
Joined: Tue 16 Aug, 2011, 19:01
Posts: 70
Location: ItalyItaly
Tacite wrote:
Dear support,

Thanks for the answer. I studied the example you gave, but it doesn't help me much. What I need is that the strategy take just one order each monday just at the opening of the bar at 4am.
I already tried by using hour trade but the strategy take trade during one hour (from 4am to 4:59 am) and I can't find the way with this manner to have a sttle of hour trade that last only 1 second or even 1 millisecond.
Can you code this for me or complete the attached strategy.
Thank you for helping…



Hi Tacite,
I modified your strategy now it opens a trade each monday at 04.00 am, as you can see the backtesting report over last three months (I wasn't able to upload the html file of report so I converted the report to pdf as good as possible).

Best regards,
Frank


Attachments:
EMA_STRATEGY_Modified.java [8.38 KiB]
Downloaded 321 times
jforex_report.PDF [102.98 KiB]
Downloaded 334 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: One order per week on a specific time Post rating: 0   New post Posted: Fri 06 Apr, 2012, 16:43 
User avatar

User rating: 0
Joined: Sun 18 Sep, 2011, 09:19
Posts: 7
Location: FranceFrance
Well, I've been quite busy and no time for forex. So a big thank for your work.
I will test it as soon as I can.


 

Jump to:  

  © 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