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
(64)
Projects
93
37%
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
(300)
Projects
505
47%
Arbitration
28
11% / 43%
Overdue
139
28%
Working
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
(126)
Projects
158
35%
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
(166)
Projects
189
10%
Arbitration
37
38% / 35%
Overdue
5
3%
Working
14
Developer 14
Rating
(66)
Projects
143
34%
Arbitration
11
9% / 55%
Overdue
26
18%
Working
15
Developer 15
Rating
(86)
Projects
114
26%
Arbitration
7
29% / 57%
Overdue
5
4%
Free
Similar orders
Hello, I am looking for an expert MT4 MT5 Programmer to build an expert advisor that works perfectly for the two metatrader, I would like to work with an experieced full time coder who can be able to pay attention to details, I will be sharing my specifications regarding the development of this algorithm as expected in comment section, Kindly show up if you are the best fit thanks
I would like to calculate the deviations between the companies listed below with Meta Trader. Would you be interested? BETWEEN 01.00 AT NIGHT AND 00.00 OF THE NEXT DAY (FOR HOURS WHEN THE GOLD MARKET IS OPEN) *Instant comparison of prices of the same parities of different companies *Determination of deviation rates in downward or upward movements (average prices, prices below and above the average) *Detection of
Maybe this indicator will make a good ea but the aggressive entry moves and conservative entry is stationary and target tp2 which will make it a 0.3:1 aggressive entry is around a 1:1 with Tp 2 I want conservative entry and do aggressive entry pls do that too with the option too switch in the settings I want sl tp and trailing stop fire filter and auto lots fixed lots I get
The strategy is based on identifying overbought and oversold conditions across multiple timeframes. The primary indicator used is the stochastic indicator. Stochastic Settings: • %K period: 100 • %D period: 5 • Slowing: 4 •Price field : close/close For buying: • stochastic Signal line/Both Most be in the oversold zone (20 level of stochastic) on the H4, H1, 30m, 15m, 5m, and 1m timeframes. Final confirmation For a
Hello, I have an indicator on Trend View. I would like to convert it to a robot. The indicator is not very large, very simple, and works on a small time frame. Must be available Stop loss Setting goals Lot size time frame
3 Indicators from Trading View: Ghost Tangent Crossings [ChartPrime] SuperTrend [KivancOzbilgic] Trendline Breakouts With Targets [ChartPrime] Pair: XAUUSD - M15 If you can write code based on these 3 indicators, please confirm with me so I can send more detailed information about the trading order entry rules. Từ vựng Hán tự Dịch Đang tìm kiếm ... Tiếng Anh Từ điển JP
Fully automated with profitable setfiles. I will pass you funded challenges in few days. Included: FXIFY, FTMO, KORTANA FX, The5ers, etc. You name it You dont have to do anything, just contact me and ill do rest
MLQ4 Order: New EA Title: I need a Robot that can trade using price action and candle sticks formation + using 3 indicators: 1) RSI Ob Os_Arrow+Alerts EA (I will provide source code) 2) RSI Indicator (STANDARD) 2) A New ATR Zones indicator. I want you to create this new ATR Zones Indicator(I will provide the setting) Budget for project: US$80 - $100 Requirements of Trading Robot: 1) I want to Create a New ATR Zones
Breakout EA 100+ USD
EA based on the "Universal Breakout" https://www.mql5.com/en/market/product/84400?source=Site +Market+MT4+Expert+Free+Rating006 is needed. This means I need the exact same settings as defined in this specific EA, but I need the following input parameters as well: 1) If stop loss type = "Coefficient from box" the EA must have input parameter to define a minimum of stop loss points in range to open the order. 2) I need
EA 30+ USD
I have an EA bot CODE intend to be use on the MT5 platform, and all I need is a debug expert with full knowledge of what they are doing. The Skillset i need from you as a debugger are: 1. Trading Robot/Robot Debugging 2. Strategy Optimization 3. News Filter PS: I AM WILLING TO PAY $30 AS THAT IS WHAT I HAVE. IF YOU ARE NOT OKAY WITH THE PAY, PLEASE DON'T EVEN BOTHER DECLARING INTEREST I will send you the codes and

Project information

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