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.

The remote strategy has to explicitly subscribe to all instruments that it is going to use
 Post subject: The remote strategy has to explicitly subscribe to all instruments that it is going to use Post rating: 0   New post Posted: Mon 24 Feb, 2014, 11:59 
User avatar

User rating: 0
Joined: Sat 05 May, 2012, 22:29
Posts: 5
Location: SwitzerlandSwitzerland
Hello Dukascopy support,

in order tun run the startegy:
viewtopic.php?f=65&t=50480&p=76706&hilit=remote+strategy#p7670

remotely, we need to subscribe to an instrument as recommended by dukas support here:
https://www.dukascopy.com/wiki/#Subscrib ... instrument

however, I was not able to merge this snippet into a working code of strategy RenkoEMACross.java. Would it be possible, that you kindly modify this strategy, in order to run remotely?

very best regards, Alex Fuchs


Attachments:
RenkoEMACross.java [9.97 KiB]
Downloaded 62 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: The remote strategy has to explicitly subscribe to all instruments that it is going to use Post rating: 0   New post Posted: Wed 26 Feb, 2014, 09:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
In the onStart method you simply need to call:
context.setSubscribedInstruments(java.util.Collections.singleton(selectedInstr), true);

For more on Remote mode see:
https://www.dukascopy.com/wiki/#Remote_Run
For subsequent requests instead of posting the original strategy, please post the version that you had modified so that we can advise what you are doing wrong and how to fix it.


 

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