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.

Unwanted instrument
 Post subject: Unwanted instrument Post rating: 0   New post Posted: Tue 01 Nov, 2011, 00:51 

User rating: 0
Joined: Tue 01 Nov, 2011, 00:44
Posts: 29
Location: United Kingdom,
Hello,

I have set only one insturment EUR/USD ...

Set<Instrument> instruments = new HashSet<Instrument>();
instruments.add(Instrument.EURUSD);
context.setSubscribedInstruments(instruments);

but when I run the code it subscribes to GBP/USD as well.

2011-10-31 23:42:43.839 INFO MyBrokerRealTime - Subscribing instruments ... 1
2011-10-31 23:42:43.840 INFO MyBroker - Strategy started: 35
2011-10-31 23:42:44.140 DEBUG JSonProtocolDecoder - (d-ja-gva-141-194.dukascopy.com/194.8.15.194:10443) message factory created
2011-10-31 23:42:44.201 DEBUG FeedDataProvider - First tick received for [GBP/USD] - [1320104562504[2011-10-31 23:42:42.504+0000] / 1.6077 / 1.60753]
2011-10-31 23:42:44.210 DEBUG FeedDataProvider - First tick received for [EUR/USD] - [1320104562975[2011-10-31 23:42:42.975+0000] / 1.38616 / 1.38605]

There is no mention of GBP/USD in my code so I can not work out why its doing this. Any ideas?


 
 Post subject: Re: Unwanted instrument Post rating: 0   New post Posted: Wed 02 Nov, 2011, 13:09 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Is your account currency GBP?


 
 Post subject: Re: Unwanted instrument Post rating: 0   New post Posted: Wed 28 Dec, 2011, 22:50 

User rating: 0
Joined: Tue 01 Nov, 2011, 00:44
Posts: 29
Location: United Kingdom,
Your correct. I have had the account changed to USD and now the GBP subscription has stopped. Thank you.


 

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