I need MQL4 Code converted to MQL5 code

MQL5 In conversione

Lavoro terminato

Tempo di esecuzione 2 ore
Feedback del cliente
Great developer, i will hire him again...

Specifiche


I Need to convert MQL4 code to MQL5. Make it is working as same as MT4 do.  It is small Code I need this today. Code is Below -


 datetime start_date = TimeCurrent()-1000;
      
         double lots1,prices,prices_c,swap,pricesBuy,lotsbuy,pricesSell,lotssell;

         for (int i=OrdersHistoryTotal()-1; i>=0; i--)
         {
            if (OrderSelect(i, SELECT_BY_POS, MODE_HISTORY))
            {
               if (OrderSymbol() == _Symbol && (OrderType() == OP_SELL || OrderType() == OP_BUY) && doMagic() && OrderCloseTime()!=0)
               {
                  if ( OrderCloseTime() >= start_date) 
                  { 
                     lots1 = lots1 + OrderLots();
                     prices = prices + (OrderOpenPrice() * OrderLots());
                     prices_c = prices_c + (OrderOpenPrice() * OrderLots());
                     swap = swap + OrderSwap();  
               
                     if(OrderType()==OP_BUY){
                        pricesBuy = pricesBuy + (OrderOpenPrice() * OrderLots());
                        lotsbuy = lotsbuy + OrderLots();
                     }
                     else if(OrderType()==OP_SELL){
                        pricesSell = pricesSell + (OrderOpenPrice() * OrderLots());
                        lotssell = lotssell + OrderOpenPrice();
                     }
                  }
                  
                  if ( OrderCloseTime() < start_date) break;      
               }   
            }
         }  


Con risposta

1
Sviluppatore 1
Valutazioni
(163)
Progetti
258
61%
Arbitraggio
4
50% / 25%
In ritardo
10
4%
Gratuito
2
Sviluppatore 2
Valutazioni
(590)
Progetti
789
71%
Arbitraggio
9
33% / 33%
In ritardo
22
3%
Gratuito
Pubblicati: 8 codici
3
Sviluppatore 3
Valutazioni
(647)
Progetti
1295
67%
Arbitraggio
84
26% / 49%
In ritardo
338
26%
Gratuito
4
Sviluppatore 4
Valutazioni
(26)
Progetti
23
39%
Arbitraggio
26
8% / 38%
In ritardo
0
Gratuito

Informazioni sul progetto

Budget
30+ USD
Scadenze
da 1 a 2 giorno(i)