Forex



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
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-17-2006, 05: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, 153 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 08-17-2006, 05:17 PM
elihayun's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 388
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, 322 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 08-17-2006, 05: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 06:05 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 08-30-2009, 02:27 AM
Junior Member
 
Join Date: Jan 2009
Posts: 2
genius75 is on a distinguished road
thx. i was looking for it
Quote:
Originally Posted by albedo View Post
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
correlation

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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
correlation netk Suggestions for Trading Systems 27 10-18-2009 01:46 AM
Correlation indicators sailor Indicators - Metatrader 4 78 10-10-2009 11:43 PM
correlation analysis giraia_br Suggestions for Trading Systems 8 03-01-2006 06:43 PM


All times are GMT. The time now is 05:49 PM.



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