Dukascopy
 
 
Wiki JStore Search Login

Strategy is running, but not a single trade executed yet
 Post subject: Strategy is running, but not a single trade executed yet Post rating: 0   New post Posted: Tue 21 May, 2013, 13:47 

User rating: 0
Joined: Fri 08 Mar, 2013, 13:54
Posts: 11
Location: AustraliaAustralia
Hi,

My userid is sudink. I have entered the strategy contest and the platform shows the strategy is running. But no trades have been executed yet, even though the conditions were met for the trades to be executed. The balance is still showing 100,000. The strategy works in Demo platform with no error messages. Can you please check the program and advise?

Kind regards.


 
 Post subject: Re: Strategy is running, but not a single trade executed yet Post rating: 0   New post Posted: Wed 22 May, 2013, 00:59 
User avatar

User rating: 2
Joined: Thu 19 May, 2011, 09:37
Posts: 86
Location: India, Chennai
you have not subscribed to the instrument.

Add this in the on start it will work fine

//subscribing to the instruments
Set subscribedInstruments = new HashSet();
subscribedInstruments.add(Instrument.GBPJPY);
context.setSubscribedInstruments(subscribedInstruments);

goodluck


 

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