Dukascopy
 
 
Wiki JStore Search Login

JFOREX-3175 IIndicatorContext.IHistory: Error Instrument
 Post subject: JFOREX-3175 IIndicatorContext.IHistory: Error Instrument Post rating: 0   New post Posted: Wed 03 Aug, 2011, 19:26 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
when called from within an indicator, several IHistory method calls such as
        history.getLastTick(context.getInstrument());
        history.getStartTimeOfCurrentBar(context.getInstrument(), Period....);
return the error
Quote:
com.dukascopy.api.JFException: Instrument [EUR/USD] not opened


despite passing the instrument that the indicator is running on (context.getInstrument()).

Best, RR.


 

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