//+------------------------------------------------------------------+ //| MIndex.mq4 | //| Copyright 2005, Yuri Makarov. | //| http://mak.tradersmind.com | //+------------------------------------------------------------------+ #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 EurUsd[],UsdChf[],GbpUsd[],UsdJpy[],AudUsd[],UsdCad[]; double Idx[]; int init() { IndicatorShortName(Curency); SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,Idx); return(0); } void start() { ArrayCopySeries(EurUsd,MODE_CLOSE,"EURUSD"); ArrayCopySeries(GbpUsd,MODE_CLOSE,"GBPUSD"); ArrayCopySeries(AudUsd,MODE_CLOSE,"AUDUSD"); ArrayCopySeries(UsdChf,MODE_CLOSE,"USDCHF"); ArrayCopySeries(UsdJpy,MODE_CLOSE,"USDJPY"); ArrayCopySeries(UsdCad,MODE_CLOSE,"USDCAD"); 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