Buy stop and Trailing stop

MQL4 Experts

Tâche terminée

Temps d'exécution 3 jours
Commentaires de l'employé
Great customer... clear description of requirements specifications. A++
Commentaires du client
very efficient programmer with great coding skill

Spécifications

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.



Dossiers :

Répondu

1
Développeur 1
Évaluation
Projets
0
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
2
Développeur 2
Évaluation
(137)
Projets
162
22%
Arbitrage
7
29% / 43%
En retard
4
2%
Occupé
3
Développeur 3
Évaluation
(37)
Projets
59
27%
Arbitrage
25
20% / 52%
En retard
10
17%
Travail
4
Développeur 4
Évaluation
(549)
Projets
759
46%
Arbitrage
23
39% / 13%
En retard
63
8%
Travail
5
Développeur 5
Évaluation
(1)
Projets
0
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
6
Développeur 6
Évaluation
(13)
Projets
21
0%
Arbitrage
1
0% / 0%
En retard
0
Travail
7
Développeur 7
Évaluation
(5)
Projets
5
60%
Arbitrage
0
En retard
0
Travail
8
Développeur 8
Évaluation
Projets
0
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
Commandes similaires
I want an Expert advisor that takes trade on price crossing the upper limit or lower limit of the marked range. It needs to mark the range on daily basis and place a buy and sell order simultaneously Buy Condition Price crosses the upper level of marked range Sell condition Price crosses the lower level of marked range Re-Entry Condition i will tell the programmer In that Expert Advisor I want to add some below
Hey I am looking for someone to help with the testing of my 1000+ robots, you will be asked to always run testing for 30 expert advisors within 24/7 and you will have to provide results from the testing of each EA, let me know if you can help thanks
Check it 30 - 100 USD
please check the file before the bid, i need a developer who is sure to be work with this type of job, check the file attached before apply to this job, then we can discuss more about requirements. please apply only if you can do it, i don't want leave bad feedbacks
Hello, I need an EA or indicator for MT4 that can calculate the difference in pips between the closing price of the first 5 second candle and my actual trade entry price on the opened MT4 trade . EXAMPLE: BUY TRADE: When I open a EURUSD buy trade at 14:30:07 with a fill at 1.0860 and the price at 14:30:05 was at 1.0855 then the script should show me -5.0 pips on the MT4 chart. SELL TRADE: When I open a EURUSD sell
Hi, I'm looking for a coder to develop an automated trading robot for the MetaTrader 5 platform, capable of executing orders according to a defined strategy. The robot must allow for the configuration of: Distances between orders Lot sizes Levels of profits and losses (in pips and in currency) Recording performances in 2 dashboards Manual closure of all positions The Expert Advisor must successfully pass the MQL5
Telegram To MT5 EA 40 - 50 USD
I'm in need of Telegram to MT5 EA copier. The copier should be able to open telesignals directly on MT5 terminal. Message me if you can create the EA as described. Regards
Hey I am looking for someone to help with the testing of my 1000+ robots, you will be asked to always run testing for 30 expert advisors within 24/7 and you will have to provide results from the testing of each EA, let me know if you can help thanks
I need an expert to test robots 24/7 and the best ones come to real servers to work with real money. If we have good success, I increase the risk to 10-20% and the capital. a) 30x Forex robot installation. b) 30x Forex robot settings adjustment. c) 30x Forex robot is tested 24/7 for success. d) 30x Forex robot is provided by the client. e) 30x Forex robot is tested for functions to see if it works on MT4 or MT5. f)
Hello, how are you? I would like to create a robot (another version of a robot I already have) I currently have the source code but would like to have another robot that belongs to me but with different settings, if I provide you with the source code with all the settings are you able to remake me another robot with modifications? and if so what would be your price
EA indicador Velas 30 - 50 USD
Necesito crear un EA basado en un indicador que da señal de entrada y que tenga los siguientes parametros 1. Entrar Buy o Sell en la siguiente vela de la señal dependiendo la Flecha 2. El TP para BUY sera apenas cierre en vela verde sin importar los pips que saque de ganancias puede ser que sea 1 pip o 10 o incluso salir en perdida, no importa 2. El TP para Sell sera apenas cierre en vela roja sin importar los pips

Informations sur le projet

Budget
30+ USD
Pour le développeur
27 USD