Dukascopy
 
 
Wiki JStore Search Login

Discrepancy between volume retrieval methods
 Post subject: Discrepancy between volume retrieval methods Post rating: 0   New post Posted: Tue 02 Aug, 2016, 10:50 
User avatar

User rating: 1
Joined: Thu 23 Jun, 2016, 11:36
Posts: 45
Location: AustriaAustria
Hi - there are 2 methods by which volume can be obtained. One is the volume box in the indicators menu. The other is through the GetHistoricalCandle. These should give the same values shouldn't they?

However I began to note that when I was running a strategy that obtained the volumes from the volume box selected from the indicators menu, the actual values sometimes differed from those in the chart. So I wrote the attached to compare the volume values from the volume box (shift 1) and the GetHistoricalCandle box (shift 1).

The Result: I found that the GetHistoricalCandle method correlates all the time with the volumes displayed on shift 1 on the chart (10sec EURUSD). However, this is not the case for the value from the volume box. In fact, about 10% of the time the values were different. Try running the attached for about 20 onCandle signals, and compare the outputs to see what I mean.


Attachments:
VolumeTest.vfs [28.03 KiB]
Downloaded 125 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Discrepancy between volume retrieval methods Post rating: 0   New post Posted: Fri 05 Aug, 2016, 13:01 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

Thanks for drawing this into our attention.
I believe that the indicator's volume (what you call box) is calculated slightly different compared to the traded volume retrieved from every correspondent candle. I'll get the exact way of calculation to check this thoroughly and get back to you.

Cheers


 
 Post subject: Re: Discrepancy between volume retrieval methods Post rating: 0   New post Posted: Fri 12 Aug, 2016, 20:06 
User avatar

User rating: 1
Joined: Thu 23 Jun, 2016, 11:36
Posts: 45
Location: AustriaAustria
Hi - was there any new information on this.
thanks.


 

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