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 일