Forex



Go Back   Forex Trading > Downloads > Indicators - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

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, 154 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: 396
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, 323 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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 11:28 AM.



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