Dukascopy
 
 
Wiki JStore Search Login

JFOREX-2393 : history.getBar returns NULL
 Post subject: JFOREX-2393 : history.getBar returns NULL Post rating: 0   New post Posted: Mon 01 Nov, 2010, 18:31 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
When starting a strategy from the client calling history.getBar(..) in the first onTick-call does return NULL.

Quote:
Example-call:
IBar iBar = history.getBar(Instrument.EURUSD, Period.ONE_HOUR, OfferSide.ASK, 1);


This behaviour is new. In all previous versions the very same history.getBar-calls in onTick did work smoothly.

When running the very same strategy code through the API (for example in Eclipse) and not hrought the client, the correct bars are returned by the history.getBar(..) call.

Best regards,
RR.


 

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