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 дн.