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.

Instrument [EUR/USD] not opened
 Post subject: Instrument [EUR/USD] not opened Post rating: 0   New post Posted: Wed 29 Sep, 2010, 07:04 

User rating: 0
Joined: Thu 19 Aug, 2010, 13:53
Posts: 62
Hi,

When I use Run Local to start the strategy on the demo account I get this error:
Instrument [EUR/USD] not opened
How can I check in code an instrument is ready for use before to run the logic of the strategy ?
thank you.


 
 Post subject: Re: Instrument [EUR/USD] not opened Post rating: 0   New post Posted: Wed 29 Sep, 2010, 09:12 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
there is method IContext.getSubscribedInstruments
https://www.dukascopy.com/swiss/docs/api/com/dukascopy/api/IContext.html#getSubscribedInstruments()


 

Jump to:  

cron
  © 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