how to add X grid trades after N pips drawdown
-
Hi everyone,
I want to add a simple grid trading system to my EA.
How can I make it so that if the price moves N pips against the current position, it opens another trade in the same direction, and repeats this process up to X times?I’ve built a very simple shared project here:
https://fxdreema.com/shared/D87ot2mvd
Could someone please take a look and show me the correct or most efficient way to implement this logic?
Thanks a lot in advance!
-
Pink blocks work in 2's, you need a for each block first, the picture is a basic idea of how to achieve this...

-
Hi, thank you for your reply.
I was able to successfully add the grid system to my EA.
I really appreciate your advice.Best,
-
