Convert MQL4 -> MQL5 EA

MQL5 Experts

Job finished

Execution time 2 days
Feedback from customer
Good Work
Feedback from employee
Thank you, I am glad to serve you.

Specification

Hi

You have to convert/ rewrite my Mql4 code into Mql5 code.

Back testing enable required.

you have to explain me that how i can enable and disable buy or sell in it ( Trade opening criteria is already in my Mql4 code)

It should work with Grid=.002 and  Grid=.2 ( already in my Mql4 code)

Arrange all steps as in my code, put the trading function Buy or Sell in the last if possible or let me know how to able and disable trading function.

Here is the code below

 

----------------------------------------------------------------------------------------------------------------------------------------------------------

//+------------------------------------------------------------------+

//|                                                Grid 2021 New.mq4 |

//|                                                            Smile |

//|                https://www.mql5.com/en/signals/author/tahirabbas |

//+------------------------------------------------------------------+

#property copyright "Smile"

#property link      "https://www.mql5.com/en/signals/author/tahirabbas"

#property version   "1.00"

#property strict

//+------------------------------------------------------------------+

//| Expert initialization function                                   |

//+------------------------------------------------------------------+

int OnInit()

  {

//--- create timer

   EventSetTimer(60);

   

//---

   return(INIT_SUCCEEDED);

  }

//+------------------------------------------------------------------+

//| Expert deinitialization function                                 |

//+------------------------------------------------------------------+

void OnDeinit(const int reason)

  {

//--- destroy timer

   EventKillTimer();

   

  }

//+------------------------------------------------------------------+

//| Expert tick function                                             |

//+------------------------------------------------------------------+

void OnTick()

  {

double OrderPirice,OrderSize,Lot,rsi,ReSize

,Grid=0.002,Profit,otp;

string symbol,csymbol;

int ticket,Type,result;

 int i =(OrdersTotal()-1);

   if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==true)

   {

   OrderPirice=OrderOpenPrice();

   OrderSize=OrderLots();

   Type=OrderType();

   symbol=OrderSymbol();

   otp=OrderTakeProfit();

   }


if (OrdersTotal()<4){ReSize=1;}

if (OrdersTotal()<3){Profit=300;}

if (OrdersTotal()>2&&OrdersTotal()<6){Profit=400;}

if (OrdersTotal()==4){ReSize=1.5;}   

if (OrdersTotal()==5){ReSize=2;}    

if (OrdersTotal()>5){Profit=500;}   

if (OrdersTotal()==11){ReSize=1.5;}

if (OrdersTotal()==10){ReSize=1.3;}

if (OrdersTotal()==9){ReSize=1.5;}

if (OrdersTotal()==8){ReSize=1.5;}

if (OrdersTotal()==7){ReSize=2;}

if (OrdersTotal()==6){ReSize=.7;}

    

//Print("Symbol",OrderSymbol());

csymbol=ChartSymbol();

if (symbol==csymbol&&OrdersTotal()<12&&OrderPirice-Ask>=Grid)

{

if (Type==OP_BUY==true)

{

Lot=(OrderSize*ReSize);

MathRound (Lot);

ticket=OrderSend(symbol,OP_BUY,Lot,Ask,300,0,0,"",0,0,Green);

for(int Kb = 0; Kb < OrdersTotal(); Kb++)

{

if(OrderSelect(Kb, SELECT_BY_POS, MODE_TRADES) == true) 

OrderModify(OrderTicket(),OrderOpenPrice(),0,Ask+Point*Profit,0,CLR_NONE);

}

}

}

csymbol=ChartSymbol();

if (symbol==csymbol&&OrdersTotal()<12&&Bid-OrderPirice>=Grid)

{

if (Type==OP_SELL==true)

{

Lot=(OrderSize*ReSize);

MathRound (Lot);

ticket=OrderSend(symbol,OP_SELL,Lot,Bid,300,0,0,"",0,0,Red);

for(int Ks = 0; Ks < OrdersTotal(); Ks++)

{

if(OrderSelect(Ks, SELECT_BY_POS, MODE_TRADES) == true) 

OrderModify(OrderTicket(),OrderOpenPrice(),0,Bid-Point*Profit,0,CLR_NONE);

}

}

if (symbol==csymbol&&OrdersTotal()==1&&otp==0)

{

if (Type==OP_BUY==true)

{

for(int Kb = 0; Kb < OrdersTotal(); Kb++)

{

if(OrderSelect(Kb, SELECT_BY_POS, MODE_TRADES) == true) 

OrderModify(OrderTicket(),OrderOpenPrice(),0,Ask+Point*Profit,0,CLR_NONE);

}

}

}

if (symbol==csymbol&&OrdersTotal()==1&&otp==0)

{

if (Type==OP_SELL==true)

{

for(int Kb = 0; Kb < OrdersTotal(); Kb++)

{

if(OrderSelect(Kb, SELECT_BY_POS, MODE_TRADES) == true) 

OrderModify(OrderTicket(),OrderOpenPrice(),0,Bid-Point*Profit,0,CLR_NONE);

}

}

}


rsi=iRSI(NULL,0,14,PRICE_CLOSE,0);

if (OrdersTotal()<1)

{

if (rsi<50)

{

ticket=OrderSend(NULL,OP_BUY,0.02,Ask,300,0,Ask+300*Point,"WhatsApp",0,0,Green);

}}

rsi=iRSI(NULL,0,14,PRICE_CLOSE,0);

if (OrdersTotal()<1)

{

if (rsi>50)

{

ticket=OrderSend(NULL,OP_SELL,0.02,Bid,300,0,Bid-300*Point,"WhatsApp",0,0,Red);

}}


}

//------------------------------------------------------------------------------------------------

//+------------------------------------------------------------------+

//| Timer function                                                   |

//+------------------------------------------------------------------+

void OnTimer()

  {

//---

   

  }

//+------------------------------------------------------------------+

//| Tester function                                                  |

//+------------------------------------------------------------------+

double OnTester()

  {

//---

   double ret=0.0;

//---


//---

   return(ret);

  }

//+------------------------------------------------------------------+

//| ChartEvent function                                              |

//+------------------------------------------------------------------+

void OnChartEvent(const int id,

                  const long &lparam,

                  const double &dparam,

                  const string &sparam)

  {

//---

   

  }

//+------------------------------------------------------------------+


Responded

1
Developer 1
Rating
(65)
Projects
95
36%
Arbitration
11
27% / 45%
Overdue
14
15%
Free
2
Developer 2
Rating
(57)
Projects
72
22%
Arbitration
13
46% / 15%
Overdue
5
7%
Free
3
Developer 3
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(304)
Projects
509
47%
Arbitration
29
10% / 45%
Overdue
138
27%
Free
5
Developer 5
Rating
(14)
Projects
19
11%
Arbitration
1
0% / 100%
Overdue
5
26%
Free
6
Developer 6
Rating
(15)
Projects
23
9%
Arbitration
7
29% / 57%
Overdue
2
9%
Free
7
Developer 7
Rating
(7)
Projects
8
63%
Arbitration
1
0% / 100%
Overdue
1
13%
Free
8
Developer 8
Rating
(38)
Projects
50
10%
Arbitration
1
0% / 0%
Overdue
8
16%
Free
9
Developer 9
Rating
(131)
Projects
171
38%
Arbitration
4
25% / 50%
Overdue
13
8%
Working
10
Developer 10
Rating
(33)
Projects
49
12%
Arbitration
16
0% / 88%
Overdue
10
20%
Free
11
Developer 11
Rating
(50)
Projects
55
60%
Arbitration
2
0% / 0%
Overdue
1
2%
Free
12
Developer 12
Rating
(7)
Projects
17
41%
Arbitration
3
0% / 100%
Overdue
3
18%
Free
13
Developer 13
Rating
(171)
Projects
194
11%
Arbitration
37
38% / 35%
Overdue
5
3%
Loaded
14
Developer 14
Rating
(66)
Projects
143
34%
Arbitration
10
10% / 60%
Overdue
26
18%
Free
15
Developer 15
Rating
(87)
Projects
114
26%
Arbitration
7
29% / 57%
Overdue
5
4%
Free
Similar orders
Looking for a indicator that can show me where the retail stoplosses are and to be made today please give me your professional opinion on how best to achieve this
I have an EA which i need to do below modifications. Variable Inputs to be added Order Type : Market , Pending Trade Type : Buy, Sell , Buy & Sell Pending Pips Step : ( Pips Value can be negative or positive to decide on what type of Pending Order ) // If trade type Buy is selected Close Type : Close All ( Bulk Close Option in MT5 ) , Close Individually Close Option : %of Equity , %of Balance , Amount $ , %of No
Hi Developer, I'm seeking a Forex HFT Scalping EA that operates on live streaming tick data and candlestick patterns, executing a high frequency of trades without balance restrictions. The EA should be compatible with major currency pairs like JPY currency pairs(usdjpy, audjpy,gbpjpy,cadjpy) and USD currency pairs (audUSD,EURUSD, gbpUSD, NZDUSD, USDcad, USDCHF, xauusd) , as well as US30 indices. Given its HFT
Amos sa 30 - 200 USD
Best quality platform where you can get what you desire or thy desires of your heart. Come let's do great business together of exchange.thank as you come so we can do business together your priority is your choice welcome
Hi, Developer Scalping ea is required in mql5 for JPY currency pairs(usdjpy, audjpy,gbpjpy,cadjpy) and USD currency pairs (audUSD,EURUSD, gbpUSD, NZDUSD, USDcad, USDCHF, xauusd). Scalping ea should be profitable. Trailing stop may be required Please help on this. Note: developer should complete more than 100 projects
Add multiplier to grid recovery system. For example: Grid Trade 2-3 Spacing; 1.0 Multiplier Grid Trade 4-6 Spacing; 2.0 Multiplier Grid Trade 7+ Spacing; 1.6 Multiplier Need quick turn around. Need it done ASAP
Create a mql5 expert advisor for forex/commodities trading based on modified candlestick formation. If modified bullish engulfing appears, EA will open buy position at closing of last candle area with martingale until opening of last candle area and set stop loss at open last candle area. Trailing stop appears when half of all buy positions running profit then when all buy positions running profit, and so on. If
Need to add Online Licence system for my MT4 EA. You can use any preferred strategy/ method you like for this. Licence can be control online. like activation deactivation I'm open for suggestions Many Thanks
HFT EA for prop firms 30 - 200 USD
am looking for a developer of a High Frequency Trading EA for MT5 to pass prop firms challengs. IF anyone has a Ready made HFT EA then we can discuss. I don't want HFT Arbitrage EA between slow and fast brokers. The EA has to work on all Brokers like FXPrimus/ICmarkets/Pepperstone or similar brokers and execute 100 orders per hour with 90% wins minimum. Must work on gold, 30 forex pairs and also on US30 and Nasdaq
Hello I need an HFT EA for MT5 that trade US30, BTC with low latency and high win rate! The bot should work on MT5, And can be back tested also! The bot works on real account with very low spread

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
from 1 to 5 day(s)