View Single Post
  #2 (permalink)  
Old 08-17-2006, 05:17 PM
elihayun's Avatar
elihayun elihayun is offline
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, 324 views)
Reply With Quote