|
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.
Pearsons Correlation - Across multiple currency pairs |
ben
|
Post subject: Pearsons Correlation - Across multiple currency pairs |
Post rating: 0
|
Posted: Sat 13 Dec, 2014, 21:36
|
|
User rating: 0
Joined: Sat 13 Dec, 2014, 21:30 Posts: 1 Location: United KingdomUnited Kingdom
|
Hi Support,
I am looking to calculate the correlation between currency pairs, rather than the correlation between a single currency pairs open/close price.
I can see the following:
IIndicatorCalculator<Double,double[]> correl(IFeedDescriptor feedDescriptor, IIndicators.AppliedPrice appliedPrice1, OfferSide side1, IIndicators.AppliedPrice appliedPrice2, OfferSide side2, int timePeriod)
This looks to only calculate for price correlation for a single currency pair. What would be the best way to calculate the correlation metric across the close prices between two currencies on this platform?
Thanks
|
|
|
|
 |
API Support
|
Post subject: Re: Pearsons Correlation - Across multiple currency pairs |
Post rating: 0
|
Posted: Mon 15 Dec, 2014, 14:42
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Please consider this indicator version.
Attachments: |
PearsonCorrelationCoefficient2.java [6.09 KiB]
Downloaded 105 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.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|