Buy stop and Trailing stop

MQL4 Experts

Job finished

Execution time 3 days
Feedback from employee
Great customer... clear description of requirements specifications. A++
Feedback from customer
very efficient programmer with great coding skill

Specification

i want to develop a MQL4 EA, pls see the strategy below

Some other requirements

1. I want to just hold 1 buy and 1 sell position at the same time (for some circumstances, it is possible that buy and sell postion holding at the sanme time). but since this EA will be use in the account that will use other EAs too, so just use “OrdersTotal() == 0” is not work, we may need to use Magic number to  differentiate with other trades that made by other EAs

2. The chart only show the buy trade, but i need the sell trade too, just all criteria reverse

3. Pls note that Buy Stop and Sell Stop may not be executed, because, for example, we may not get a higher price after EMA 24 crossing up EMA 60, I don’t know how would effect the coding, just raise it

4. I want to keep the code in void OnTick() as simple as possible, something like this (it is just a template i copy from other, you no need, or i don' think you can straightly apply) i want the other parts are coded as functions, then i can apply them to other EA easily (for example, i may use the Trailing Stop code for other trading strategy EA):

void OnTick()
  {
//---
   // Get the profit target price and the stop loss price
   double Long_TakeProfitLevel = Bid + Profit_target*Point; //0.0001
   double Long_StopLossLevel = Bid - Stop_loss*Point;
   double Short_TakeProfitLevel = Ask - Profit_target*Point; //0.0001
   double Short_StopLossLevel = Ask + Stop_loss*Point;   
   
   // Check if the long condition happen and place order accordingly
   if (Enter_long() ) //if more the one signal, could be Enter_long1, Enter long2 or Signal1, Signal2... //OrdersTotal depend on strategy
   {   
  
   Open_Enter_long(Lot_size,Long_TakeProfitLevel,Long_StopLossLevel,"First_Enter");  

   }
   else if (Exit_long())
   {
      Close_Exit_long("Close_Exit_long");
   }
   
   // Check if the short condition happen and place order accordingly
   if (Enter_short() ) //if more the one signal, could be Enter_long1, Enter long2 or Signal1, Signal2... //OrdersTotal depend on strategy
   {   
  
   Open_Enter_short(Lot_size,Short_TakeProfitLevel,Short_StopLossLevel,"First_Enter");  

   }
   else if (Exit_short())
   {
      Close_Exit_short("Close_Exit_short");
   }   
   
  }
Finally , i am not good at coding, i hope you can give me simple description on importantline of code , and the code must be testable by backtest , then i can check it faster and pay you faster, and both of us win-wn.



Responded

1
Developer 1
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
2
Developer 2
Rating
(131)
Projects
152
22%
Arbitration
5
0% / 60%
Overdue
4
3%
Busy
3
Developer 3
Rating
(37)
Projects
59
27%
Arbitration
24
21% / 54%
Overdue
10
17%
Working
4
Developer 4
Rating
(543)
Projects
753
46%
Arbitration
23
39% / 13%
Overdue
63
8%
Working
5
Developer 5
Rating
(1)
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
6
Developer 6
Rating
(13)
Projects
21
0%
Arbitration
1
0% / 0%
Overdue
0
Working
7
Developer 7
Rating
(4)
Projects
4
50%
Arbitration
0
Overdue
0
Working
8
Developer 8
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
Similar orders
Hi, i want to create EA that using martingale and hedge system working on metatrader 4 and has some options to be manually changed in the bot options i need expert in this strategy to do this job note that strategy is very simple no indicator needed unless moving average
Hi there, I have an MT5 EA with its source code that I would like to convert to MT4 and enhance with additional features. Currently, the EA functions as a cost-averaging and martingale EA. When I want to trade only buy or only sell, I place the EA on one chart. To trade both buy and sell, I place the EA on two charts. Each leg (buy and sell) operates independently with its own parameters. The EA does not use any
looking for someone to create an EA based on the OHLC of the last x candles, calculate lot size and place limit and stop orders with partial close. some other features
I have one table (Google Sheets) in my Google account. I need the MQL5 EA to be able to read this table and write to it. Please clarify immediately: can MQL5 EA access my table with my Google login and password or do I need to create some kind of service account
I would like a trading robot / Expert Advisor that simply operates on two basic trading view indicators to enter trades. Everything happens on the 1 minute time frame for this robot. Make the settings of both indicators full customization enabled from my end and also the risk percentage must be adjustable from my end but the risk-to-reward ratio must be fixed to 1:1.5. The scalping robot must operate based on two
I require an English speaking programmer to create the following robot: Brief overview: The program primarily operates just after the open of a new candle on the chart it is attached to. On new candle opening, previous candles over a user defined period are checked. If the number of candles closing with a price rise equal or exceed a given number, the market is considered “Overbought” and the program opens a buy or
Ezeana 40+ USD
i would like to have high frequency trading strategy bot that opens and close multiple trades in short calculated period of time . the expert adviser should be able to full run automatically on its own with 99% winning rate
i need a custom indicator in mql5 syntax with arrows to point when to buy or sell at time frames M5 and M15. the bellow settings and criteria look into higher time frames to confirm entries. I need extra string to add symbols: input string symbol2 = "DXY"; input string symbol3 = "US10Y"; i have made a very basic sketch on chatgpt but it needs professional code work. Indicators and Settings Used: Commodity Channel
The goal of this project is to catch positions which are moving in the right direction, while locking / hedging the ones that do not. Positions are only opened when price has been moving according to the predominant trend, and wins are used to buy down existing locked positions as required. Please see the attached files for full explanation of the requirements and anticipated solution
I have two not very sophisticated bots that need to be converted from python to MQL5. The bots are very similar, they use 99% of the same methodology, the only difference being that one is a trend-following bot, and the other is a mean reversion bot. I need the parameters to be at the top of the script so that they can be easily changed and optimised. The entire codebase is already done in python (sl,tp, trailing

Project information

Budget
30+ USD
For the developer
27 USD