거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

EURX - Finally, having found the calculation for the Euro Index - here it is - MetaTrader 4용 지표

Andy Thompson
게시자:
Andrew Thompson
조회수:
14882
평가:
(9)
게시됨:
2019.02.06 14:07
업데이트됨:
2019.02.06 14:11
EURX.png (214.72 KB)
EURX.mq4 (6.55 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Real author:

Andy Thompson

Description:

In 2009 I published the indicator for DXY - Dollar Index - it was well received and downloaded many times in English and Russian. Now having found the definition of the Euro Index I submit this for the community's use and comment.

 

The definition can be found at Forex Ltd 


EURX


//+------------------------------------------------------------------+
//|                                                   Euro Index.mq4 |
//|                                  Copyright © 2015, Andy Thompson |
//|                                   mailto:andydoc1@googlemail.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2015, Andy Thompson"
#property link      "mailto:andydoc1@googlemail.com"
#property strict
#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 Red
#property indicator_width1 2
#property indicator_color2 Yellow
#property indicator_width2 1
#property indicator_style2 1
#property indicator_color3 Lime
#property indicator_width3 1
#property indicator_style3 2
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
int i;
extern int short_term_SMA_period=20;
extern int long_term_SMA_period =40;
//int winind;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexLabel(0,"DXY");
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexLabel(1,short_term_SMA_period+"SMA");
   SetIndexStyle(2,DRAW_LINE);
   SetIndexBuffer(2,ExtMapBuffer3);
   SetIndexLabel(2,long_term_SMA_period+"SMA");
   IndicatorShortName("Euro Index: EURX / "+short_term_SMA_period+"SMA / "+long_term_SMA_period+"SMA");
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int counted_bars=IndicatorCounted();
   if(counted_bars < 0)  return(-1);
   if(counted_bars>0) counted_bars--;
   int limit=Bars-counted_bars;
   if(counted_bars==0) limit-=1+long_term_SMA_period;
//---- main loop
   for(i=0; i<limit; i++)
     {
      ExtMapBuffer1[i]= 34.38805726*MathPow(iClose("EURUSD",0,i),0.3155)*MathPow(iClose("EURJPY",0,i),0.1891)*MathPow(iClose("EURGBP",0,i),0.3056)*MathPow(iClose("EURSEK",0,i),0.0785)*MathPow(iClose("EURCHF",0,i),0.1113);

     }
   for(i=0; i<limit; i++)
     {
      ExtMapBuffer2[i]=0;
      ExtMapBuffer3[i]=0;
      for(int z=0; z<long_term_SMA_period; z++)
        {
         if(z<short_term_SMA_period) ExtMapBuffer2[i]=ExtMapBuffer2[i]+ExtMapBuffer1[i+z];
         ExtMapBuffer3[i]=ExtMapBuffer3[i]+ExtMapBuffer1[i+z];
        }
      ExtMapBuffer2[i] = ExtMapBuffer2[i]/short_term_SMA_period;
      ExtMapBuffer3[i] = ExtMapBuffer3[i]/long_term_SMA_period;
     }
//---- done
   return(0);
  }
//+------------------------------------------------------------------+

 


Recommendations:

  • The periods for the moving averages can be changed - defaults are 20 and 40
  • The indicator will work on any chart and on any period
WaveMTF WaveMTF

Indicator WaveMTF Bull and Bear System with Signal and Alert for MetaTrader 4 with options to display signal on the chart. with Signal and Alert, email alert, Push Notification and option to display trader info and signal.

Day Trading Day Trading

"Day Trading" EA Trades with Day Trading strategy,has Trailing Stop Loss &Take Profit works on 1D time frame major forex pairs and stocks NASDAQ.

Trading Criteria Trading Criteria

Trading Criteria EA trades with crrosing signals strategy has Trailing Stop Loss &Take Profit,display of trading criteria on chart,works with all time frames major forex pairs and stocks NASDAQ.

MACD Candle Indicator for Mt4 MACD Candle Indicator for Mt4

Displays colored bars for MACD indicator above or below the zero level. Configurable with alerts.