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 close all trades on Friday automatically
 Post subject: How to close all trades on Friday automatically Post rating: 0   New post Posted: Mon 04 Mar, 2013, 12:46 
User avatar

User rating: 0
Joined: Mon 02 Apr, 2012, 09:22
Posts: 12
Location: United Kingdom, London
To Dukascopy Support,

I want to close all trades just before 16:00 on Friday automatically & deactivate the strategy just after that and start the strategy automatically on Sunday at 20:00. Kindly suggest the method to do so.

Regards,

Terry.


 
 Post subject: Re: How to close all trades on Friday automatically Post rating: 0   New post Posted: Mon 04 Mar, 2013, 13:10 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
https://www.dukascopy.com/wiki/#Customize_trading_hours/Use_Calendar_weekdays
and:
https://www.dukascopy.com/wiki/#Order_Management/Print_and/or_close_orders_by_group
https://www.dukascopy.com/wiki/#Close_Orders


 
 Post subject: Re: How to close all trades on Friday automatically Post rating: 0   New post Posted: Mon 11 Mar, 2013, 07:07 
User avatar

User rating: 0
Joined: Mon 02 Apr, 2012, 09:22
Posts: 12
Location: United Kingdom, London
To Dukascopy Support,

Could you plz provide some examples where the above-mentioned codes are used to customize trading hours and manage orders? I am having difficulty in merging them with my strategy. If you provide me some examples, I will have a better idea.

Regards,

Terry.


 
 Post subject: Re: How to close all trades on Friday automatically Post rating: 0   New post Posted: Mon 11 Mar, 2013, 09:56 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please run the examples from wiki, modify and assemble them together to fit your strategy requirements. Should you encounter any problems, please post your example strategy and describe what you can't figure out.


 

Jump to:  

cron
  © 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