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 (9) Thread Tools Display Modes
  #51 (permalink)  
Old 06-22-2008, 04:07 PM
Administrator
 
Join Date: Sep 2005
Posts: 15,796
Blog Entries: 31
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Try it ...
I am not sure that I did it in right way ...
Attached Files
File Type: mq4 MIndex.mq4 (1.9 KB, 44 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #52 (permalink)  
Old 06-23-2008, 12:24 PM
mos mos is offline
Junior Member
 
Join Date: Jun 2006
Posts: 18
mos is on a distinguished road
the mindex dont work on my ibfx platform (mini account) . but it does work on demo.

someone know how to solve the problem?? i tried to add "m" in the code but it didnt help.


thx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #53 (permalink)  
Old 06-23-2008, 07:44 PM
Member
 
Join Date: Apr 2006
Posts: 48
greatlakes is on a distinguished road
Quote:
Originally Posted by mos View Post
the mindex dont work on my ibfx platform (mini account) . but it does work on demo.

someone know how to solve the problem?? i tried to add "m" in the code but it didnt help.


thx
I had to modify the code to get it to work w/ibfx mini:


//+------------------------------------------------------------------+
//| MIndex.mq4 |
//| Copyright © 2005, Yuri Makarov. |
//| MakSite : Home*Page |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2005, Yuri Makarov."
#property link "http://mak.tradersmind.com"

#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 OrangeRed

extern string Curency = "USD";

double EurUsdm[],UsdChfm[],GbpUsdm[],UsdJpym[],AudUsdm[],NzdUsdm[],UsdCadm[];
double Idx[];

int init()
{
IndicatorShortName(Curency);
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,Idx);
return(0);
}

void start()
{
ArrayCopySeries(EurUsdm,MODE_CLOSE,"EURUSDm");
ArrayCopySeries(GbpUsdm,MODE_CLOSE,"GBPUSDm");
ArrayCopySeries(AudUsdm,MODE_CLOSE,"AUDUSDm");
ArrayCopySeries(UsdChfm,MODE_CLOSE,"USDCHFm");
ArrayCopySeries(UsdJpym,MODE_CLOSE,"USDJPYm");
ArrayCopySeries(NzdUsdm,MODE_CLOSE,"NZDUSDm");
ArrayCopySeries(UsdCadm,MODE_CLOSE,"USDCADm");

int counted_bars=IndicatorCounted();
double USD;

if(counted_bars<0) return(-1);
if(counted_bars>0) counted_bars--;
int limit=Bars-counted_bars;
for(int i=0; i<limit; i++)
{
USD = MathPow(UsdChfm[i]*UsdJpym[i]*UsdCadm[i]/EurUsdm[i]/GbpUsdm[i]/NzdUsdm[i]/AudUsdm[i],1./8.);
if (Curency == "USD") Idx[i] = USD;
if (Curency == "EUR") Idx[i] = USD*EurUsdm[i];
if (Curency == "GBP") Idx[i] = USD*GbpUsdm[i];
if (Curency == "AUD") Idx[i] = USD*AudUsdm[i];
if (Curency == "CHF") Idx[i] = USD/UsdChfm[i];
if (Curency == "JPY") Idx[i] = USD/UsdJpym[i];
if (Curency == "NZD") Idx[i] = USD*NzdUsdm[i];
if (Curency == "CAD") Idx[i] = USD/UsdCadm[i];
}
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #54 (permalink)  
Old 06-24-2008, 05:49 PM
mos mos is offline
Junior Member
 
Join Date: Jun 2006
Posts: 18
mos is on a distinguished road
Quote:
Originally Posted by greatlakes View Post
I had to modify the code to get it to work w/ibfx mini:


//+------------------------------------------------------------------+
//| MIndex.mq4 |
//| Copyright © 2005, Yuri Makarov. |
//| MakSite : Home*Page |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2005, Yuri Makarov."
#property link "http://mak.tradersmind.com"

#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 OrangeRed

extern string Curency = "USD";

double EurUsdm[],UsdChfm[],GbpUsdm[],UsdJpym[],AudUsdm[],NzdUsdm[],UsdCadm[];
double Idx[];

int init()
{
IndicatorShortName(Curency);
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,Idx);
return(0);
}

void start()
{
ArrayCopySeries(EurUsdm,MODE_CLOSE,"EURUSDm");
ArrayCopySeries(GbpUsdm,MODE_CLOSE,"GBPUSDm");
ArrayCopySeries(AudUsdm,MODE_CLOSE,"AUDUSDm");
ArrayCopySeries(UsdChfm,MODE_CLOSE,"USDCHFm");
ArrayCopySeries(UsdJpym,MODE_CLOSE,"USDJPYm");
ArrayCopySeries(NzdUsdm,MODE_CLOSE,"NZDUSDm");
ArrayCopySeries(UsdCadm,MODE_CLOSE,"USDCADm");

int counted_bars=IndicatorCounted();
double USD;

if(counted_bars<0) return(-1);
if(counted_bars>0) counted_bars--;
int limit=Bars-counted_bars;
for(int i=0; i<limit; i++)
{
USD = MathPow(UsdChfm[i]*UsdJpym[i]*UsdCadm[i]/EurUsdm[i]/GbpUsdm[i]/NzdUsdm[i]/AudUsdm[i],1./8.);
if (Curency == "USD") Idx[i] = USD;
if (Curency == "EUR") Idx[i] = USD*EurUsdm[i];
if (Curency == "GBP") Idx[i] = USD*GbpUsdm[i];
if (Curency == "AUD") Idx[i] = USD*AudUsdm[i];
if (Curency == "CHF") Idx[i] = USD/UsdChfm[i];
if (Curency == "JPY") Idx[i] = USD/UsdJpym[i];
if (Curency == "NZD") Idx[i] = USD*NzdUsdm[i];
if (Curency == "CAD") Idx[i] = USD/UsdCadm[i];
}
}
GREAT WORK!!

THANKS A MILLION
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/indicators-metatrader-4/177-correlation-indicators.html
Posted By For Type Date
Correlation of Pairs Mix : Makes or breaks FFS trades ! This thread Refback 07-25-2008 01:31 AM
Correlation Between Pairs? - Forex Forum This thread Refback 05-31-2008 06:49 AM
Two Currency In One Chart Window This thread Refback 05-27-2008 05:15 PM
Displaying multiple instrument on a single chart This thread Refback 05-12-2008 08:53 AM
Correlation of Pairs Mix : Makes or breaks FFS trades ! This thread Refback 12-15-2007 03:39 AM
Correlation of Pairs Mix : Makes or breaks FFS trades ! This thread Refback 09-13-2007 12:33 PM
Correlation of Pairs Mix : Makes or breaks FFS trades ! This thread Refback 07-16-2007 06:39 AM
Onix > Кластерные индикаторы This thread Refback 07-12-2007 06:07 PM
Кластерные индикаторы - Onix (Страница: 42) This thread Refback 07-01-2007 06:03 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
FINEXX Correlation System EA tbreaker Expert Advisors - Metatrader 4 101 07-27-2008 10:24 PM
correlation netk Suggestions for Trading Systems 25 08-18-2007 03:44 PM
Correlation Index help! albedo Indicators - Metatrader 4 2 08-17-2006 04:43 PM
correlation analysis giraia_br Suggestions for Trading Systems 8 03-01-2006 05:43 PM


All times are GMT. The time now is 11:22 PM.



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