| New signals service! | |
|
|||||||
| 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 |
|
![]() |
|
|
LinkBack (9) | Thread Tools | Display Modes |
|
|||
|
Quote:
//+------------------------------------------------------------------+ //| 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]; } } |
|
|||
|
Quote:
THANKS A MILLION |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |