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.

getVolume() on current bar (shift =0 ) gives always 0
 Post subject: getVolume() on current bar (shift =0 ) gives always 0 Post rating: 0   New post Posted: Thu 13 Jan, 2011, 21:35 

User rating: 0
Joined: Mon 29 Nov, 2010, 19:30
Posts: 3
Hi,

I test with historical tester and always result of getVolume() over current bar (shift = 0) in onBar method is zero, is there any idea?


Thanks in advance


 
 Post subject: Re: getVolume() on current bar (shift =0 ) gives always 0 Post rating: 0   New post Posted: Mon 07 Feb, 2011, 13:50 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Could you please reply the code for this issue. The following code returns correct volume value:
history.getBar(instrument, Period.THIRTY_MINS, OfferSide.BID, 0).getVolume();


 

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