Convert the existing MQ4 code to MQ5 code.

MQL5 专家 转化中

指定

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 ;
      }  
   }

反馈

1
开发者 1
等级
(42)
项目
62
8%
仲裁
12
58% / 42%
逾期
1
2%
空闲
2
开发者 2
等级
(2)
项目
2
0%
仲裁
0
逾期
1
50%
空闲
3
开发者 3
等级
(10)
项目
15
27%
仲裁
3
67% / 33%
逾期
0
空闲
4
开发者 4
等级
(44)
项目
50
50%
仲裁
1
0% / 100%
逾期
1
2%
工作中
5
开发者 5
等级
(16)
项目
17
35%
仲裁
2
50% / 50%
逾期
0
空闲
6
开发者 6
等级
(1124)
项目
1426
62%
仲裁
21
57% / 10%
逾期
43
3%
空闲
7
开发者 7
等级
(38)
项目
51
29%
仲裁
1
0% / 100%
逾期
0
空闲
8
开发者 8
等级
(356)
项目
632
26%
仲裁
89
73% / 13%
逾期
12
2%
空闲
9
开发者 9
等级
(15)
项目
19
37%
仲裁
2
0% / 100%
逾期
0
空闲
10
开发者 10
等级
(441)
项目
499
33%
仲裁
25
40% / 48%
逾期
7
1%
繁忙
11
开发者 11
等级
(50)
项目
55
60%
仲裁
2
0% / 0%
逾期
1
2%
空闲
12
开发者 12
等级
(282)
项目
422
63%
仲裁
5
40% / 0%
逾期
4
1%
已载入
13
开发者 13
等级
(2)
项目
4
0%
仲裁
0
逾期
0
空闲
14
开发者 14
等级
项目
0
0%
仲裁
0
逾期
0
空闲
相似订单
Необходимо конвертировать индикатор в Mql5. Индикатор должен индентично работать иметь тот же функционал. Ссылка на индикатор . Я планирую конвертировать 5 индикаторов в общей сложности. Надеюсь на долгосрочное сотрудничество
Hello freelancers here, I need an expert freelancer to help me convert an expert advisor from MT4 to MT5. I have the MT4 source code, As for now i only got $15 for this project i don't have much on me at the moment, So i need someone who can work long terms cause i still have other projects i need him to work on for me
I want to convert my tradingview indicator to mt5 indicator .. I want the mt5 indicator to be same with how the tradingview is . No addition no subtraction. Must be same with tradingview for mt5 indicator
Hey I need a pinescript coder to convert Tradingview PINESCRIPT to Metatrader 5, I have the script on tradingview and I will be eligible to share this with you via comment section I need a proficient individual who is able to make a good conversion to tradingview indicator without any errors code/bugs, make the code run perfectly as expected, please reach out if you can do this thanks
We have and expert EA running trades in MT5 and wish to duplicate those in Tradovate. The Tradovate platform does have an API facility so we require someone who can configure/write MT5 trades to Tradovate via the API
I need two bots converted from MQL4 to MQL5. They have indicators and order types inside, I will provide the source code etc when agreed. Please message me for more details
Hello. I have 2 indicators from pinescript that I am looking for a conversion to ninjascript. The first indicator is about 60 lines of code. The second indicator is about 100 lines of code. My code is very neat and organized easy to follow. The math and logic in the code *must* be converted exactly or the indicators will be useless
Hello Everyone, In Trading view there is a Script named 'Fibonacci Trend Reversals', I want's the same convert it into MT5 Indicator. The script giving Buy & Sell Signals with 2 Targets as TP1 & TP2, want the same into MT5. Also requires the same Input that the Indicator having, for ref. Screenshots attached
I have a strategy that is based on an indicator that I have in trading view, and I want to automate this strategy for mt4 or mt5. Pls reach out to me of you have the right profession for converting tradingview strategy to metatrader thanks
I have the source file for a FOREX EA that I would like to modify to allow it to trade crypto currencies. It currently gives the error that the currency is not recognized when trying to back test and optimize the EA. Will need the EA to recognize BTC/ETH/SOL pairs and be able to trade crypto currencies

项目信息

预算
30+ USD
开发人员
27 USD
截止日期
 10 天