|
remote run on Dukas server |
us_copiosus
|
Post subject: remote run on Dukas server |
Post rating: 0
|
Posted: Thu 25 Feb, 2021, 20:54
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
Could somebody inform me the pros and cons of running a strategy on the Dukas server please
I understand the latency aspect
1) how much code needs to be rewritten with regard to messaging and using a logger ?
Bob M
|
|
|
|
 |
fprophet
|
Post subject: Re: remote run on Dukas server |
Post rating: 0
|
Posted: Wed 30 Jun, 2021, 22:23
|
|
User rating: 1
Joined: Fri 14 Sep, 2012, 02:25 Posts: 57 Location: New Zealand, Christchurch
|
very simple - if you run Local then yes there is potentially the Latency issues, but MUCH more importantly if running Local then if your PC/laptop or ISP/WiFi/Network is disrupted or goes down then you have lost control of your Open trades. Could be expensive !! I always write all code so it will run Remote - that means you can't attach to a Chart and you need to rely on Dukas Strategy Logs for logging info/debugging if needed. Of course while you are just playing & experimenting on DEMO then maybe you don't care. You can make decisions in your code depending when you running LOCAL or REMOTE against LIVE, or DEMO, or backTest:
if (engine.getType() == IEngine.Type.LIVE) {account_Type = "live";} if (engine.getType() == IEngine.Type.DEMO) {account_Type = "demo";} if (engine.getType() == IEngine.Type.TEST) {account_Type = "test";} if (engine.getRunMode() == IEngine.RunMode.LOCAL) {run_Type = "local";} if (engine.getRunMode() == IEngine.RunMode.REMOTE) {run_Type = "remote";} boolean DemoLocalRun = account_Type.equals("demo") && run_Type.equals("local"); if (DemoLocalRun) {setupChart(); setupOutputFile();}
|
|
|
|
 |
us_copiosus
|
Post subject: Re: remote run on Dukas server |
Post rating: 0
|
Posted: Mon 07 Mar, 2022, 01:45
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
Thank you for your advice
Bob M
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|