Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > 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 (1) Thread Tools Display Modes
  #21 (permalink)  
Old 07-18-2008, 05:00 PM
TheRumpledOne's Avatar
Banned
 
Join Date: Nov 2006
Posts: 806
TheRumpledOne is an unknown quantity at this point
corr.gif

I am NOT the ORIGINAL author and I am not claiming authorship of this indicator. All I did was modify it. I hope you find my modifications useful.

I added a legend to the display so you would know what color represents what pair.


I am NOT the ORIGINAL author and I am not claiming authorship of this indicator. All I did was modify it.
I hope you find my modifications useful.

MODIFIED SOURCE CODE ATTACHED.
Attached Files
File Type: mq4 MODIFIED_VERSION_Correlation02.mq4 (8.5 KB, 42 views)

Last edited by TheRumpledOne; 07-18-2008 at 11:59 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 07-18-2008, 11:37 PM
Sadly's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 219
Sadly is on a distinguished road
Nice work but ...

Do you have the original to hand?

When I applied the indicator to a chart, MT4 locked up and left me with an egg timer for company.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 07-18-2008, 11:40 PM
TheRumpledOne's Avatar
Banned
 
Join Date: Nov 2006
Posts: 806
TheRumpledOne is an unknown quantity at this point
Quote:
Originally Posted by Sadly View Post
Do you have the original to hand?

When I applied the indicator to a chart, MT4 locked up and left me with an egg timer for company.
Look on page 2 of this thread. Piperoni posted it. I just added the display. Wonder if the original worked in the first place?

I think I found the problem:

Code:
extern int       MaxPeriod = 960;
.
.
.


   if (Bars < MaxPeriod) return(0);
//----
   for (int i = 0; i < MaxPeriod; i++)
It's running 960 times for each pair!!

So I modified it to:

Code:
   int limit;
   int counted_bars=IndicatorCounted();
//---- check for possible errors
   if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
   if(counted_bars>0) counted_bars--;
   limit=Bars-counted_bars;
   
   if (limit > MaxPeriod) {limit= MaxPeriod ;}  // TRO



I am NOT the ORIGINAL author and I am not claiming authorship of this indicator. All I did was modify it. I hope you find my modifications useful.

I updated the code in my post above.


I am NOT the ORIGINAL author and I am not claiming authorship of this indicator. All I did was modify it.
I hope you find my modifications useful.

Last edited by TheRumpledOne; 07-19-2008 at 12:06 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 07-19-2008, 12:58 AM
Sadly's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 219
Sadly is on a distinguished road
Super! No egg timer
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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-4/3615-currency-corelation.html
Posted By For Type Date
Counter Statistics This thread Refback 10-30-2007 07:36 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Currency Correlations RickW00716 General Discussion 12 08-07-2008 08:59 AM
trend corelation. niva General Discussion 15 11-23-2007 03:59 PM
multi currency EA [how to?] zamos Expert Advisors - Metatrader 4 1 06-15-2007 10:48 PM
2 EA's same Currency Fast_cris Expert Advisors - Metatrader 4 2 04-19-2006 10:44 PM
Currency Strength NewIdea Metatrader 4 11 12-08-2005 02:35 PM


All times are GMT. The time now is 05:52 AM.



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