Dukascopy
 
 
Wiki JStore Search Login

Problems starting Strategy
 Post subject: Problems starting Strategy Post rating: 0   New post Posted: Fri 01 Oct, 2010, 01:34 

User rating: 0
Joined: Wed 18 May, 2011, 11:25
Posts: 60
Location: DE
Hi,

i had problems starting my strategy in the contest. I always got the message, that the
Instrument EURUSD is not opened.

i tried some fixes and at the end, the solution was to add the following code in the
onStart() Event:

       Set<Instrument> set = context.getSubscribedInstruments();       
       set.add(Instrument.EURUSD);
       context.setSubscribedInstruments(set);


with this code, the strategy runs. my question now: is it a problem that i compiled and started
my strategy on the contest server 3 or 4 times until it works?

the strategy only runs a few secondes and did not make any trades.


 
 Post subject: Re: Problems starting Strategy Post rating: 0   New post Posted: Tue 05 Oct, 2010, 10:36 
User avatar

User rating: 5
Joined: Fri 02 Sep, 2011, 10:08
Posts: 157
Location: FranceFrance
I tried the fix to, it doesn't work...


 
 Post subject: Re: Problems starting Strategy Post rating: 0   New post Posted: Tue 05 Oct, 2010, 11:26 

User rating: 0
Joined: Wed 18 May, 2011, 11:25
Posts: 60
Location: DE
it worked for me only on friday. on sunday i got the error too, but the strategy was not stopped and still running ...


 
 Post subject: Re: Problems starting Strategy Post rating: 0   New post Posted: Fri 05 Nov, 2010, 10:06 
User avatar

User rating: 8
Joined: Wed 21 Apr, 2010, 10:42
Posts: 1167
Do you have EURUSD opened in the platform? You must be subscribed to the currency in the platform when you run it.


 

Jump to:  

  © 1998-2024 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