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.

Sample strategy on remote server
 Post subject: Sample strategy on remote server Post rating: 0   New post Posted: Tue 14 Feb, 2012, 03:58 

User rating: 0
Joined: Tue 14 Feb, 2012, 03:54
Posts: 1
Thank you for the information. Another question I like to ask is how can I program the strategy such a way that it is running on the remote server, but will close all open orders 1 hour before weekend market closure and do not open orders within one hour after weekend market open?

A sample strategy of how to program this will be good. Thank you.


 
 Post subject: Re: Sample strategy on remote server Post rating: 0   New post Posted: Tue 14 Feb, 2012, 10:50 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Remote server strategy logic is no different from the local one, except that one can't read/write files (i.e. actions that require @RequiresFullAccess annotation). For getting all orders see:
https://www.dukascopy.com/wiki/#Order_Management
For order close see:
https://www.dukascopy.com/wiki/#Close_Orders
For managing time see:
https://www.dukascopy.com/wiki/#Customize_trading_hours


 

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