Add a Trailing-Stop to an existing EA based on Envelope indicator

Job finished

Execution time 4 hours
Feedback from customer
Very talented developer, it was a great experience to work with him and I will not hesitate to do it again. He take the time to understand my needs and was very responsive. Fast and very good work.
Feedback from employee
Great customer. Communication and responsiveness at the highest level. Thank you for the order!

Specification

I want to have a trailing stop added to my simple EA based on envelope indicator. 


What my EA do : 


-  When the Fast MA break the upper line of the enveloppe indicator, it takes a long position. 


-  When the Fast MA break the lower line of the enveloppe indicator, it takes a short position. 


What I want to add : 


- When the EA takes long positions : 


The stop loss will start on the lower line of the envelope indicator, and move up with the price until it reaches the 

upper line of the envelope indicator, then it will not move anymore (it will be a break-even). 


- When the EA takes short positions :


- Same but all inverted.


Final source code needed,

I will need to be able to modify the stoploss distance and break-even position in the parameters of the EA

(example : if I want the break even to be +1 or +2 points of the upperline of the envelope indicator).   


I will give you the source code, and don't hesitate to contact me if you have any questions.


Thank you ! 

Responded

1
Developer 1
Rating
(615)
Projects
718
33%
Arbitration
46
48% / 41%
Overdue
14
2%
Loaded
2
Developer 2
Rating
(153)
Projects
240
34%
Arbitration
20
45% / 30%
Overdue
3
1%
Free
3
Developer 3
Rating
(298)
Projects
478
40%
Arbitration
105
40% / 24%
Overdue
82
17%
Loaded
Published: 2 codes
4
Developer 4
Rating
(455)
Projects
721
34%
Arbitration
35
71% / 9%
Overdue
23
3%
Free
5
Developer 5
Rating
(32)
Projects
57
23%
Arbitration
12
67% / 8%
Overdue
2
4%
Free
Similar orders
Water polo 30+ USD
//+------------------------------------------------------------------+ //| XAUUSD M5 TELEGRAM TRADING EA | //| EMA 20/50/200 + RSI + ATR + Telegram | //+------------------------------------------------------------------+ #property strict #property version "1.00" #property description "XAUUSD M5 EA with EMA, RSI, ATR and Telegram notifications" #include <Trade/Trade.mqh> CTrade trade;
Bonjour, Je souhaite créer un Expert Advisor (EA) en MQL5 optimisé pour opérer sur les paires Forex (EURUSD) et les métaux précieux (GOLD / XAUEUR / GAUUSD) Fonctionnalités requises : 1. Stratégie directionnelle : Le bot doit identifier le début d'un mouvement de tendance (hausse ou baisse) et exécuter des entrées rapides dans le sens de la tendance. 2. Sortie anticipée : Le bot doit sécuriser la position rapidement
Forex ai 30 - 3000 USD
Vous négociez les paires de devises (ex: EUR/USD, GBP/USD) en utilisant vos propres fonds ou ceux obtenus via des Prop Firms (sociétés de trading d'évaluation qui vous prêtent du capital après la réussite d'un test)

Project information

Budget
40 - 70 USD