Dukascopy
 
 
Wiki JStore Search Login

Get Historical data
 Post subject: Get Historical data Post rating: 0   New post Posted: Sun 16 Jun, 2013, 17:51 

User rating: 0
Joined: Sun 16 Jun, 2013, 17:49
Posts: 7
Does anyone know how to obtain historical data from 10 previous candles such as open, close, high and low?= using vJFX?


 
 Post subject: Re: Get Historical data Post rating: 0   New post Posted: Mon 17 Jun, 2013, 12:48 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Greetings.

Use following example:
Get 10 last candles, go through them, sum all close prices.
Image


For more info use Helper or short info in each block( i symbol in the box)

https://www.dukascopy.com/swiss/english/ ... al/helper/


Attachments:
Pic1.png [164.05 KiB]
Downloaded 647 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: Get Historical data Post rating: 0   New post Posted: Thu 20 Jun, 2013, 22:09 

User rating: 0
Joined: Sun 16 Jun, 2013, 17:49
Posts: 7
Thanks for your response Vadim.

I was reading through the helper manual as I am now just trying to get the close of the previous 8 candles. How would I go about achieving this?


 
 Post subject: Re: Get Historical data Post rating: 0   New post Posted: Fri 21 Jun, 2013, 00:22 
User avatar

User rating: 9
Joined: Sun 18 Dec, 2011, 03:31
Posts: 160
Location: Egypt, Cairo
vadim_berezhnoj wrote:
Greetings.

Use following example:
Get 10 last candles, go through them, sum all close prices.
Image


For more info use Helper or short info in each block( i symbol in the box)

https://www.dukascopy.com/swiss/english/ ... al/helper/


Sorry to interrupt

in this case what is different between Shift and Candles Amount in Get Historical Candles ?


 
 Post subject: Re: Get Historical data Post rating: 0   New post Posted: Fri 21 Jun, 2013, 08:12 

User rating: 0
Joined: Sun 16 Jun, 2013, 17:49
Posts: 7
Essentially I am attempting to find the open of bar shift 8 and the close of bar shift 4, and execute a buy if the open is greater than the close or a sell if the close is greater than the open.


 
 Post subject: Re: Get Historical data Post rating: 0   New post Posted: Fri 21 Jun, 2013, 08:18 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Hello.

Shift Integer parameter - defines the distance how far the Candle has shifted from the current one. Current Candle index is always 0.
Candles Amount - defines the amount of candles how much candles need to be retrieved by the block.

2 vJFXRunner

That would be a little bit different.

Image


Attachments:
Pic1.png [168.02 KiB]
Downloaded 664 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: Get Historical data Post rating: 0   New post Posted: Tue 25 Jun, 2013, 21:09 

User rating: 0
Joined: Sun 16 Jun, 2013, 17:49
Posts: 7
Thank you for your time and your support Vadim, much appreciated. :D


 

Jump to:  

  © 1998-2024 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