Dukascopy
 
 
Wiki JStore Search Login

Sum of close
 Post subject: Sum of close Post rating: 0   New post Posted: Wed 28 Jan, 2015, 10:48 
User avatar

User rating: 0
Joined: Fri 23 Jan, 2015, 17:32
Posts: 1
Location: South AfricaSouth Africa
Quick question:

What would be the easiest way to get the sum of a certain amount of close prices for example the last 50 bars. Would an array be the easiest?


 
 Post subject: Re: Sum of close Post rating: 1   New post Posted: Thu 29 Jan, 2015, 13:32 
Visual JForex expert at Dukascopy
User avatar

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

Thanks for your post. Your question is very interesting and you were on the right path when talking about the array use !

A first thought would be to use "GetHistoricalCandles" block with loopViewer but I'll get back to you as soon as I figured out how to implement this :)

Cheers


 
 Post subject: Re: Sum of close Post rating: 1   New post Posted: Thu 29 Jan, 2015, 15:59 
Visual JForex expert at Dukascopy
User avatar

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


Attachments:
Sum50s.vfs [25.66 KiB]
Downloaded 158 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.
 

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