Convert the existing MQ4 code to MQ5 code.

MQL5 Asesores Expertos Conversión

Tarea técnica

The program I have created is in MQ4, I want you to convert the programme to MQ5 language .  I will select only those who can change these two function from MQ4 to MQ5. 

double MaxSpread=4 ;
double MaxSlippage=1 ;
double    gThresholdATR = 1.0;

void lizong_7()
 {
  //+------------------------------------------------------------------------------------------------------------------------------+
  // OrderInfoArray is such that OrderInfoArray[OrderIndex][0] -> OrderOpenTime() & OrderInfoArray[OrderIndex][1] -> OrderTicket() |
  // OrderCount implies Total market and pending order count                                                                       |
  // Index implies the index of Open or Pending order, however it's dynamic and change as any Open or Pending orders get closed    |
  // OrderIndex implies the index of the Open or Pending order !!                                                                      
  //+------------------------------------------------------------------------------------------------------------------------------+
     
   
  // Assigning variable names 
     
  int       OrderInfoArray[30][2];
  int       OrderCount;
  int       Index; 
  int       OrderIndex;

 if (Ask >= iMA(NULL,0,20,0,MODE_SMA,PRICE_MEDIAN,0))
    {
    return;
    }
 if ( (Ask - Bid<=MaxSpread * gThresholdATR * Point()) && (FridayTrade()== false) )
    {
        OrderCount = OrdersTotal() ;
        Index = 0 ;
        for (OrderIndex = 0 ; OrderIndex < OrderCount ; OrderIndex = OrderIndex + 1)
            {
                if (( OrderSelect(OrderIndex,SELECT_BY_POS,MODE_TRADES) && (OrderType() != 1 || OrderSymbol() != Symbol() || OrderMagicNumber() != 2) ))   continue;
                OrderInfoArray[Index][0] = OrderOpenTime();
                OrderInfoArray[Index][1] = OrderTicket();
                Index = Index + 1;
            }
        if (Index > 1)
            {
                ArrayResize(OrderInfoArray,Index,0); 
                ArraySort(OrderInfoArray,0,0,1); 
            }
        for (OrderIndex = 0 ; OrderIndex < Index ; OrderIndex = OrderIndex + 1)
            {
                if ( OrderSelect(OrderInfoArray[OrderIndex][1],SELECT_BY_TICKET,MODE_TRADES) != true || OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),MaxSlippage,Red) != false )   continue;
                Print("OrderClose() error - ",ErrorDescription(GetLastError())); 
            }
    }
 }

bool FridayTrade()
   {
   //---------------------------------------------------
   // Only trade if FridayTrade() is false. 
   
      if ((Hour()>=15 && DayOfWeek()==5)|| DayOfWeek()==6)
      {
         return true;
      } 
      else 
      {
         return false ;
      }  
   }

Han respondido

1
Desarrollador 1
Evaluación
(42)
Proyectos
62
8%
Arbitraje
12
58% / 42%
Caducado
1
2%
Libre
2
Desarrollador 2
Evaluación
(2)
Proyectos
2
0%
Arbitraje
0
Caducado
1
50%
Libre
3
Desarrollador 3
Evaluación
(10)
Proyectos
15
27%
Arbitraje
3
67% / 33%
Caducado
0
Libre
4
Desarrollador 4
Evaluación
(45)
Proyectos
51
51%
Arbitraje
1
0% / 100%
Caducado
1
2%
Libre
5
Desarrollador 5
Evaluación
(16)
Proyectos
17
35%
Arbitraje
2
50% / 50%
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(1127)
Proyectos
1429
62%
Arbitraje
21
57% / 10%
Caducado
43
3%
Libre
7
Desarrollador 7
Evaluación
(39)
Proyectos
52
31%
Arbitraje
1
0% / 100%
Caducado
0
Libre
8
Desarrollador 8
Evaluación
(356)
Proyectos
632
26%
Arbitraje
89
73% / 13%
Caducado
12
2%
Libre
9
Desarrollador 9
Evaluación
(15)
Proyectos
19
37%
Arbitraje
2
0% / 100%
Caducado
0
Libre
10
Desarrollador 10
Evaluación
(453)
Proyectos
512
33%
Arbitraje
25
40% / 48%
Caducado
7
1%
Trabajando
11
Desarrollador 11
Evaluación
(50)
Proyectos
55
60%
Arbitraje
2
0% / 0%
Caducado
1
2%
Libre
12
Desarrollador 12
Evaluación
(290)
Proyectos
432
64%
Arbitraje
5
40% / 0%
Caducado
4
1%
Trabajando
13
Desarrollador 13
Evaluación
(2)
Proyectos
4
0%
Arbitraje
0
Caducado
0
Libre
14
Desarrollador 14
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
Hello, I am looking for someone to convert my well defined MQL4 code project to MQL5 (EAs) A brief description of my current strategy: MT4 'Spreadsheet' EA collects data from 28 FX currency pairs -> sends it to Excel, then Excel calculates and makes a decision -> Excel sends a signal to MT4 'Trading' EA and manages trades I want the MT4 EA to be converted into MT5. For Back testing purposes, I want to withdraw from
hi. I hv a strategy on tradingview need to convert to MT4/MT5 expert advisor for algo trading. would like to add some tradingview strategy setting to the EA(not included in my tradingview code): recalculate after order is filled, order size: xx% of equity
Hi, I would like the HARSI RSI indicator from TradingView (link below) converted to MT4: Heikin-Ashi RSI Oscillator on TradingView It appears that Mr. Tools from Forex Station has already created an MT4 version of this indicator. I've included the reference indicator here: !!rsi - heiken ashi averages smoothed (mtf + sw + alerts + arrows). I don't need the divergence settings in the indicator. I only need the
I need an expert to convert a TradeStation script over to pine please let me know if this is something you can do perfectly. I will be expecting your message. thanks
I need an expert to convert a TradeStation script over to pine please let me know if this is something you can do perfectly. I will be expecting your message. thanks
Hello, I have indicators for tradestation written in easylanguage and I need them in tradingview pinescript. So I need someone to convert these tradestation indicators to tradingview. Do you think you can help me with that
Dear Freelancers, I'm seeking a skilled MT4/MT5 developer to collaborate on a valuable trading indicator. Project Description: I'm looking to develop a powerful Elliott Wave indicator compatible with the MT4 and MT5 trading platforms. This indicator will be based on the highly successful [LuxAlgo] indicator currently available on TradingView. Key Features: In-indicator Alerts: The ability to receive pop-up
I am currently seeking a highly skilled developer for an important project. I need a professional developer to convert an Indicator to tradingview on MT4. If you are highly skilled and capable of handling this project, kindly reach out now
I HAVE A EX4 FILE,I NEED TO CONVERT THE EX5 FILE AS A EXPERT ADVISOR, I WANT SAME INPUT OF EX4. I ATTACHED MY EX4 FILE WITHHERE. PLS CONVERT THE SAME INPUT TO EX5. Thanks
Hello there, I'm looking for an experienced developer to convert a TradingView indicator script into an MT4 (MetaTrader 4) compatible format. The script, written in Pine Script version 5, includes custom indicators and graphical elements such as lines, boxes, and labels that we need to be accurately replicated in MT4. Check the attached file below

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD
Plazo límite de ejecución
a 10 día(s)