Convert a MT4 indicator to MT5 with source code

MQL5 转化中

工作已完成

执行时间4 天
客户反馈
This developer is very knowledgeable. He made recommendations to improve the efficiency of the indicator that I was asking him to enhance. Nicely done!
员工反馈
Great client

指定

I have an MT4 indicator (SW TRIX) that I would  like to get converted to MT5. 

I would like the source code with the final solution. 

I will provide the full indicator when we have our communication about the project.

I am looking for someone with experience in these conversions.  Thank you.

===========================================

Here is a snippet of the code:


//|                                                                  | 

//+------------------------------------------------------------------+ 


/* 2009.07.12 - choice of moving averages

              - choice of prices (close, log(close) )    

   2009.07.16 - Peeks & Valeys

   2009.07.18 - 4 colours

*/

//---- indicator settings

#property  indicator_separate_window

#property  indicator_buffers 7

#property  indicator_color1 Gray        // line

#property  indicator_color2 Green       // histogram up

#property  indicator_color3 YellowGreen    

#property  indicator_color4 Maroon      // histogram dn

#property  indicator_color5 Tomato

#property  indicator_color6 DeepSkyBlue // arrows

#property  indicator_color7 Red


#property  indicator_width1 1

#property  indicator_width2 3

#property  indicator_width3 3

#property  indicator_width4 3

#property  indicator_width5 3

#property  indicator_width6 1

#property  indicator_width7 1


#property  indicator_style1 STYLE_SOLID

#property  indicator_style2 STYLE_SOLID

#property  indicator_style3 STYLE_SOLID

#property  indicator_style4 STYLE_SOLID

#property  indicator_style5 STYLE_SOLID


#property  indicator_level1 0


//---- indicator parameters

//-------------------------------------------------------------------

extern int  TRIX_Period       = 3;

extern string _____Averages_____ = "0=SMA, 1=EMA, 2=SMMA, 3=LWMA";

extern int Mode_Average_1 = 1;

extern int Mode_Average_2 = 1;

extern int Mode_Average_3 = 1;

extern string _____Input_Price_____ = "0=C,4=Median,5=Typical,6=Weighted";

extern int Input_Price = 0;

*------------------------------------

   int i, limit=CountBars;

   if (limit>Bars) limit=Bars-1;


//---- trix    

   //-- calculation

   for(i=0; i<limit; i++) ind_buffer1a[i]=iMA(Symbol(),Period(),TRIX_Period,0,ModeAvg1,inputPrice,i);

   for(i=0; i<limit; i++) ind_buffer2a[i]=iMAOnArray(ind_buffer1a,0,TRIX_Period,0,ModeAvg2,i);

   for(i=0; i<limit; i++) ind_buffer7[i]=iMAOnArray(ind_buffer2a,0,TRIX_Period,0,ModeAvg3,i);

   //-- TRIX

   for(i=0; i<limit-1; i++) {

      //-- Rate of change

      if (ind_buffer7[i+1] != 0)

            ind_buffer1a[i] = Scale * (ind_buffer7[i]-ind_buffer7[i+1]) / ind_buffer7[i+1];

   }

   

   for(i=0; i<limit-1; i++) ind_buffer2a[i]=iMAOnArray(ind_buffer1a,0,Signal_Period,0,MODE_EMA,i);

*------------------------------------

   i=limit-1;

   while(i>=0)

   {

      //-- draw signals

      if (Draw_Signals == true) {

         int shift = 0;         

         SignalUP[i+shift] = EMPTY_VALUE;

         SignalDN[i+shift] = EMPTY_VALUE;

         //-- long

         bool bSignalUP = (ind_buffer6upPV[i+shift] > 0 && ind_buffer6upPV[i+shift] != EMPTY_VALUE && ind_buffer6dnPV[i+1+shift] < 0);      

         //-- short

         bool bSignalDN = (ind_buffer6dnPV[i+shift] < 0 && ind_buffer6upPV[i+1+shift] != EMPTY_VALUE && ind_buffer6upPV[i+1+shift] > 0);

         if (bSignalUP == true) {

            SignalUP[i+shift] = 0;

            SignalDN[i+shift] = EMPTY_VALUE;

         }

         if (bSignalDN == true) {

            SignalUP[i+shift] = EMPTY_VALUE;

            SignalDN[i+shift] = 0;

         }


附加的文件:

反馈

1
开发者 1
等级
(19)
项目
22
23%
仲裁
3
67% / 33%
逾期
2
9%
工作中
2
开发者 2
等级
(5)
项目
5
0%
仲裁
3
0% / 0%
逾期
0
空闲
3
开发者 3
等级
(6)
项目
4
0%
仲裁
0
逾期
0
空闲
4
开发者 4
等级
(2590)
项目
3266
67%
仲裁
77
48% / 14%
逾期
341
10%
空闲
发布者: 1 代码
5
开发者 5
等级
(57)
项目
74
58%
仲裁
6
67% / 17%
逾期
7
9%
空闲
6
开发者 6
等级
(2)
项目
2
0%
仲裁
0
逾期
1
50%
空闲
7
开发者 7
等级
(560)
项目
840
73%
仲裁
15
53% / 13%
逾期
193
23%
工作中
8
开发者 8
等级
项目
0
0%
仲裁
0
逾期
0
空闲
9
开发者 9
等级
项目
0
0%
仲裁
1
0% / 100%
逾期
0
空闲
10
开发者 10
等级
项目
0
0%
仲裁
0
逾期
0
空闲
11
开发者 11
等级
项目
0
0%
仲裁
0
逾期
0
空闲
12
开发者 12
等级
(535)
项目
613
34%
仲裁
34
38% / 47%
逾期
9
1%
繁忙
13
开发者 13
等级
(322)
项目
496
67%
仲裁
5
40% / 0%
逾期
4
1%
工作中
发布者: 8 代码
14
开发者 14
等级
(270)
项目
550
49%
仲裁
55
40% / 36%
逾期
227
41%
工作中
15
开发者 15
等级
(572)
项目
943
47%
仲裁
303
59% / 25%
逾期
125
13%
工作中

项目信息

预算
30 - 70 USD
开发人员
27 - 63 USD
截止日期
 2  5 天