Modify MT4 TD sequence to MT5 TD sequence

MQL5 Индикаторы

Работа завершена

Время выполнения 4 минуты
Отзыв от исполнителя
Thank you for this job!
Отзыв от заказчика
速度快 服务好 非常不错!

Техническое задание

//+------------------------------------------------------------------+
//| TD Sequential.mq4                                                |
//| Copyright ?2004, MetaQuotes Software Corp.                      |
//| http://www.metaquotes.net                                        |
//+------------------------------------------------------------------+
#property copyright "James OBrien"
#property link "http://www.metaquotes.net"
//----
#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 LimeGreen
//#property indicator_color2 Red
//---- input parameters
//int shift=0;
int i;
int num=0;
int num1=0;
string textVar;
//---- buffers
double ExtMapBuffer1[];
//double ExtMapBuffer2[];
//double b4plusdi,b4minusdi,nowplusdi,nowminusdi;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_ARROW);
   SetIndexArrow(0,159);
   SetIndexBuffer(0, ExtMapBuffer1);
/*
SetIndexStyle(1,DRAW_ARROW,EMPTY);
SetIndexArrow(1,234);
SetIndexBuffer(1, ExtMapBuffer2);
*/
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//---- TODO: add your code here
   int limit;
   limit=1500;
   for(int i=limit; i>=0; i--)
     {
      ObjectDelete(""+i);
     }
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int limit;
   int counted_bars=IndicatorCounted();
//---- check for possible errors
   if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
   if(counted_bars>0) counted_bars--;
   limit=1500-counted_bars;
//---- macd counted in the 1-st buffer
   for(int i=limit; i>=0; i--)
     {
      if(Close[i+1]<Close[i+5])num=num + 1;
      else num=0;
        if (num > 0 && num < 10) 
        {
         textVar=num;
         ObjectCreate(""+i, OBJ_TEXT, 0, Time[i+1],Low[i+1]-5*Point );
         ObjectSetText(""+i, ""+DoubleToStr(num,0), 10, "Arial", Red);
        }
        if (num==9) 
        {
         ObjectCreate(""+i, OBJ_TEXT, 0, Time[i+1],Low[i+1]-5*Point );
         ObjectSetText(""+i, ""+DoubleToStr(num,0), 16, "Arial", Red);
        }
      else if((Close[i+1]<Close[i+5])&& num>=10)
           {
            ObjectCreate(""+i, OBJ_TEXT, 0, Time[i+1],Low[i+1]-5*Point );
            ObjectSetText(""+i, ""+DoubleToStr(num,0), 10, "Arial", Orange);
           }
      if(Close[i+1]>Close[i+5]) num1=num1 + 1;
      else num1=0;
//----
      if (num1 > 0 && num1 < 10)
        {
         textVar=num1;
         ObjectCreate(""+i, OBJ_TEXT, 0, Time[i+1],High[i+1]+10*Point );
         ObjectSetText(""+i, ""+DoubleToStr(num1,0), 10, "Arial", RoyalBlue);
        }
        if (num1==9) 
        {
         ObjectCreate(""+i, OBJ_TEXT, 0, Time[i+1],High[i+1]+10*Point );
         ObjectSetText(""+i, ""+DoubleToStr(num1,0), 16, "Arial", RoyalBlue);
        }
      else if((Close[i+1]>Close[i+5])&& num1>=10)
           {
            ObjectCreate(""+i, OBJ_TEXT, 0, Time[i+1],High[i+1]+10*Point );
            ObjectSetText(""+i, ""+DoubleToStr(num1,0), 10, "Arial", LightSkyBlue);
           }
     }
//----
   return(0);
  }
//+------------------------------------------------------------------+

Откликнулись

1
Разработчик 1
Оценка
(192)
Проекты
232
30%
Арбитраж
1
100% / 0%
Просрочено
9
4%
Свободен
2
Разработчик 2
Оценка
(137)
Проекты
167
35%
Арбитраж
11
91% / 0%
Просрочено
0
Свободен
3
Разработчик 3
Оценка
(336)
Проекты
620
38%
Арбитраж
39
23% / 64%
Просрочено
93
15%
Свободен
Похожие заказы
I need an experienced person who can help to convert my existing code from MQL4 to MQL5 (HFT EA). I will assist with testing, and the expert must work like the MT4 version and passes the MQL5 checker
Hello I want to buy a strategy and put it in an indicator I have This strategy must be strong, with a profit rate of +90% without repeating or deleting the signal The signal should be 1 minute to 5 minutes maximum I do not have a specific strategy or ideas. You show me your strategies and I am ready to test it send ex4 to test it and videos or images too
Hello guys! I have my own existing EA with mq5 files and like to add on extra functions and features. This is a grid hedging martingale EA. I hope I can get a developer who can do this. 1. Allow input for different magic number for BUY and SELL (Currently, it is using same magic number for both BUY and SELL) Eg: Magic number for BUY = 1, Magic number for SELL = 2 and the same calculation method will apply to the
hi.. i have a pin script (TV) but some lines in the code needs to be fixed,,, i will attach the file thanks very much in advance, Also there will be more project in front, so I need a very dedicated developer
Bom dia, O filtro de notícias do meu EA deixou de funcionar. Algum especialista para trabalhar no filtro de notícias? A ideia é apenas eliminar ordens pendentes ou abertas alguns minutos antes da divulgação de notícias e voltar a abrir alguns minutos depois da divulgação das notícias. Obrigado e cumprimentos, Nelson Dias
Using a tradingview indicator Trend Indicator A (v2.3) to convert it into a Robot. Conditions as follows : Buy when the trend color is green, sell when trend color is red, set stop loss and take profits, risk to reward ratio 1:3 or when the trend color changes, whichever is best based on backtesting. You can add anything that will make the robot works better
I am looking for a skilled developer to create a custom indicator for NinjaTrader with the following specifications: Long (Buy) Signal: First Rule: MACD is positive. Second Rule: A candle changes from red (bearish) to green (bullish). Visual Indication: When the second rule is met, an arrow (color customizable) should appear below the candle to signal a long (buy) position. Short (Sell) Signal: First Rule: MACD is
I have an indicator that shows green and red bar depending on the market trend. The struggle is not just converting the .mql4 to .mql5 but to have the same calculation and resulting the same view as in the metatrader4 I will share the file in the chat discussion :)
I am looking for a developer to assist in testing my Sierra Chart Indicator code. The task involves checking the code for any errors and ensuring it functions perfectly. Your expertise in identifying and fixing potential issues will be invaluable. If you have experience with Sierra Chart and are skilled in debugging, please get in touch. Thank you
Develop ctrader 30+ USD
Hi mate, i would like to make Tensorflow.NET dlls (including Keras.NET, NumSharp etc ) from https://scisharp.github.io/SciSharp compatible with cTrader, so i can develop algos inside cTrader. Can you help? Cheers

Информация о проекте

Бюджет
30+ USD
Исполнителю
27 USD