|
Strategy is running, but not a single trade executed yet |
sudink
|
Post subject: Strategy is running, but not a single trade executed yet |
Post rating: 0
|
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.
|
|
|
|
|
Victor
|
Post subject: Re: Strategy is running, but not a single trade executed yet |
Post rating: 0
|
Posted: Wed 22 May, 2013, 00:59
|
|
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
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|