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
(130)
Projects
151
23%
Arbitration
5
0% / 60%
Overdue
4
3%
Working
3
Developer 3
Rating
(37)
Projects
59
27%
Arbitration
24
21% / 54%
Overdue
10
17%
Working
4
Developer 4
Rating
(537)
Projects
746
45%
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
Free
8
Developer 8
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
Similar orders
can you build me a bot base on this strategy please The term "MartiScalper robot" likely refers to a type of automated trading system that combines two different trading strategies: Martingale and Scalping. Here's a breakdown of these strategies: 1. **Martingale Strategy**: This is a betting strategy that involves doubling the trade size after a loss, with the idea that an eventual win will recover all previous
The TurtleDashboard BOT (Expert Advisor) has the goal to provide to the trader a dashboard that summarises, for each symbol (currency pair for the Forex market), a set of technical indicators for a set of timeframes (the set of timeframes is always fixed - hardcoded). The dashboard is actually a simple Google Sheet Document, with one sheet and 38 columns. Once the BOT is started and running, every X minutes it
I am using pine script plot function there is offset value there , I need a pine script and mql code when. The close cross under or cross over the offset value line it generate an alert , it's not possible through plot function however could be done through other means do you know how to do it
I am looking for superb amazing fast MT4 EA coding service from a reliable skilled programmer, If you are the type that used to attend to messages after it client has been waiting so long or paying attention in the beginning then disappear for a while, not ready to provide timely updates and pay attention to details, don't apply as not to waste both our time, I begged you with the power that keep you alive, this is
hi guys, I have a script, that I have been struggling to work. most of the work is done, just final touch of an expert is needed. The script Is using Fibonacci and Pivot standard in its base. look forward to hear from an expert! Best regards Sina
Please give me a quote. 1. On Ea automatic take a trade, off Ea as indicator 2. News on/off 3. when to when (in arrange of time), once break up/down happened Ea will take a trade, spread on/off 4. Auto lot on/off, auto lot should be based on balance percentage. 5. Five of EMA for the trend direction 6. Tp & SL, ratio 1:1, 1:2, 1:3, After hit first TP, Trailing stop trigger, TP move to second TP Regards
Greetings. I will buy your EA for MT5, in case that on distance it is able to make a profit of 10% per month. Martingale methods and grid strategies should not be used as the basis of a trading strategy. I will need to test in the strategy tester and on live market (on demo account for at least two weeks), so I ask you to provide an executable demo file of the EA with necessary restrictions. The EA should not use
Hello, I have a file of different settings for a trading bot, I need a capable and trustworthy developer to execute the project perfectly without any mistake apply now if you are capable of carrying out the project
hello coders i need someone to create an ea with this condition: the ea has to start with open buy and sell order and after that use a grid with lot exponent 1,1.1,1.2,1.3 and etc. the ea has to start for example with sell and buy order with 0.05 lot or other that i can select on inputs but after that the grid has to start with 0.01 lots i need also a step grid option so i can select the distance from the grid
### **Indicators** 1. **Daily % Mover**: - Identify the symbol with the highest absolute percentage change for the day. This symbol will be the current traded symbol until another reaches #1. (The calculation is clarified in the file attached below) 2. **Range Bars**: - Construct Range Bars based on price movement rather than time. - Determine the “spread” data for all symbols. The minimum range bar size should be

Project information

Budget
30+ USD
For the developer
27 USD