Modify MT4 TD sequence to MT5 TD sequence

MQL5 Indicadores

Trabajo finalizado

Plazo de ejecución 4 minutos
Comentario del Ejecutor
Thank you for this job!
Comentario del Cliente
速度快 服务好 非常不错!

Tarea técnica

//+------------------------------------------------------------------+
//| 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);
  }
//+------------------------------------------------------------------+

Han respondido

1
Desarrollador 1
Evaluación
(192)
Proyectos
232
30%
Arbitraje
1
100% / 0%
Caducado
9
4%
Libre
2
Desarrollador 2
Evaluación
(137)
Proyectos
167
35%
Arbitraje
11
91% / 0%
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(336)
Proyectos
620
38%
Arbitraje
39
23% / 64%
Caducado
93
15%
Libre
Solicitudes similares
Hello I'm in need of a developer who can modify only few items from my MT5 EA. Please take a look on the requirements below:  EA must force to close single trades at 0.1 dollars : True/False [value to change]  Sell break-even point has a bug  Sell trail stop has a bug N.B. Source code is available
Hello, I have an already working indicator on metatrader 4 but I want to convert it into tradingview pinescript and I need a developer that can help me to get this done and make it to work perfectly
I need to modify an existing deriv.com bot. Need to modify the money management and accuracy of taking trades, need to upgrade detecting of price when it's auto trading. need good results
I want an indicator based on two candles , once first candle is printed. Second candle must open and not trade above/below 50% of first candle(fully candle including highs and lows) , but it must trade below/above wick and close back inside first candle then give signal to buy or sell. Signal can be printed anywhere on chart but I don't want arrows on candles. Must be able to give alert via mobile phone
Hello, I have an already working indicator on metatrader 4 but I want to convert it into tradingview pinescript and I need a developer that can help me to get this done and make it to work perfectly
Conf. Prazo ZIGZAG: Exemplo “M5” ----------------------------------------------- % de Sensibilidade em Ziguezague: Exemplo 50% Sensibilidade de fuga do Ziguezague %: Exemplo' 75% Ziguezague normal preço fecha abaixo dos 50% ele fixa. Fuga do ziguezague quando 50% passa pelo último fundo ou topo. nesse exemplo o zigzague aberto passou o 50% do ultimo fundo então quando ele retorna e fecha acinma do 75% ele fixa. ele
I am looking for a unique indicator that incorporates the principles of specific indicators found on TradingView. I will provide a list of these indicators so that you can explore them on TradingView and understand their functionality. 1. Ppsignal Super Hull MA Cross V3 with alert Ppsignal01 2. Volume-based Support & Resistance Zones tommyf001 3. Breakout finder LonesomeThe 4. Hama Candles
Hello developer Am looking for scanner of mt5 when the orange dot come I want scanner to give buy signal on that script and just beside it should show the number of candle the signal have came vise versa for sell . Here is image for understanding https://prnt.sc/sSIHDwGUWw9L&nbsp ; And it should have option to disable this option of counting candle . And i can make a list of symbol which all symbol I want to scan
In an existing EA (MT4) I need to insert a new feature and delete a couple of un-utilised features. Please let me know if anyone can do the job. Thanks
Hello I have this MT4 indicator is is possible to convert to trading view indicator. I have pdf for strategy as well if needed, You must make sure you are an expert in this

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD