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.

Cubic spline functionality is needed
 Post subject: Cubic spline functionality is needed Post rating: 0   Post Posted: Fri 07 Aug, 2015, 01:48 
User avatar

User rating: 0
Joined: Mon 23 Jul, 2012, 05:36
Posts: 10
Location: CanadaCanada
How can i get the Cubic spline functionality like the one exists in back-testing in my code(or in the chart)?


 
 Post subject: Re: Cubic spline functionality is needed Post rating: 0   Post Posted: Fri 07 Aug, 2015, 08:59 
Visual JForex expert at Dukascopy
User avatar

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

Cubic Spline is a data interpolation available in the run-time parameters when back-testing:

Image


Attachments:
CubicSpline.jpg [36.92 KiB]
Downloaded 356 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: Cubic spline functionality is needed Post rating: 0   Post Posted: Fri 07 Aug, 2015, 15:59 
User avatar

User rating: 0
Joined: Mon 23 Jul, 2012, 05:36
Posts: 10
Location: CanadaCanada
Quote:
Hi,

Cubic Spline is a data interpolation available in the run-time parameters when back-testing:


I need to use it like an indicator in my code in the OnTick or OnBar method.Is there any API in JForex?There are some java liberary for Cubic Spline on the internet they all get 3 parameters:
https://www.jsc.nildram.co.uk/api/index.html
Spline(int N, double[] X, double[] Y) 

What should I pass to Spline to get the same functionality in Back-testing?
Period 1 Hour
Thanks.


 
 Post subject: Re: Cubic spline functionality is needed Post rating: 0   Post Posted: Tue 11 Aug, 2015, 13:24 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Why do you need to use Cubic Spline? Historical Tester uses this method only to speed up the calculations.


 
 Post subject: Re: Cubic spline functionality is needed Post rating: 0   Post Posted: Wed 12 Aug, 2015, 12:08 
User avatar

User rating: 0
Joined: Mon 23 Jul, 2012, 05:36
Posts: 10
Location: CanadaCanada
Quote:
Why do you need to use Cubic Spline? Historical Tester uses this method only to speed up the calculations.

I want to use it to normalize the ticks and use it instead of onBar or onTick.


 

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