Great! It worked very well.
Now an additional difficulty is added and I know I'm close, but not enough. This is my project now (only buy section included):
https://fxdreema.com/shared/okGed5M9b
This is what the EA has to do:
- A buy is opened with a specific TP and SL.
- Two candles after opening (1 minute time frame) the SL can be moved, not before.
- The SL moves at a fixed distance (5 pips) below the 10 periods moving average.
- The trade finishes once TP or SL are reached.
It works perfectly so far except for one single point. Sometimes the moving average is so close to the SL that when adding those 5 pips, the new SL is moved below the original position, and I don't know how it not to happen. I see that in my first "Modify Order" block there an option to chose "pips" instead of "proce level" at the "Mode" option. Could this be the solution?
Thank you very much in advance.