Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Indicators - Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-17-2006, 04:02 PM
albedo's Avatar
Junior Member
 
Join Date: Jun 2006
Posts: 2
albedo is on a distinguished road
Correlation Index help!

Daos anybody here who can say me why in the hell this indicator won't work?

Thank you
Attached Files
File Type: mq4 Correlation_Index.mq4 (3.0 KB, 92 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-17-2006, 04:17 PM
elihayun's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 350
elihayun is on a distinguished road
Quote:
Originally Posted by albedo
Daos anybody here who can say me why in the hell this indicator won't work?

Thank you
U have to problems:
1) the definition of GbpUsd was not an Array.
it was
double EurUsd[],UsdJpy[],AudUsd[],UsdCad[],UsdChf[],GbpUsd;

2) U have zero divizion

Change it to :
PHP Code:
double tmp MathSqrt((sumX2-(MathPow(sumX,2)/R_Period))*(sumY2-(MathPow(sumY,2)/R_Period)));
      if (
tmp == 0tmp Point;     
      
R[acc]=(sumXY-((sumX*sumY)/R_Period))/ tmp
Attached Files
File Type: mq4 Correlation_Index.mq4 (3.0 KB, 230 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-17-2006, 04:43 PM
albedo's Avatar
Junior Member
 
Join Date: Jun 2006
Posts: 2
albedo is on a distinguished road
Quote:
Originally Posted by elihayun
U have to problems:
1) the definition of GbpUsd was not an Array.
it was
double EurUsd[],UsdJpy[],AudUsd[],UsdCad[],UsdChf[],GbpUsd;

2) U have zero divizion

Change it to :
PHP Code:
double tmp MathSqrt((sumX2-(MathPow(sumX,2)/R_Period))*(sumY2-(MathPow(sumY,2)/R_Period)));
      if (
tmp == 0tmp Point;     
      
R[acc]=(sumXY-((sumX*sumY)/R_Period))/ tmp
Oh, i see... thank you

however, now i can see its value, the problem is that this value should be between 1 and -1 and with this solution it shows values greater than 1

i have to give a deep look to the Pearson formula...

Thank you again..

maybe, you want to check the Pearson formula.... ... no, eh?

Last edited by albedo; 08-17-2006 at 05:05 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Correlation indicators sailor Indicators - Metatrader 4 53 06-24-2008 05:49 PM
correlation netk Suggestions for Trading Systems 25 08-18-2007 03:44 PM
JPYX index like USDX index.. endy Metatrader 4 0 04-10-2007 04:57 PM
correlation analysis giraia_br Suggestions for Trading Systems 8 03-01-2006 05:43 PM


All times are GMT. The time now is 08:10 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.