仕事が完了した
指定
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 !