Trade limit on Add to volume block
-
Hi,
I added the Add to volume block so that if price moves -20 pip against open trade, another trade open. Is there a way to limit the number of trades to open, for instance Max trades = 3 at 20 pips distance each and after 3 trades , EA wont open anymore.
Thanks
-
Interesting question, it's a good idea to make it able to get the number of children trades (trades created with "add to volume"). But here is how I did it anyway (I used this example: https://fxdreema.com/demo/mt4-loop-add-to-volume-on-loss


I added extra block who passes when the distance from the parent trade is more than 30 pips... which is when we don't want to add to the volume anymore, so I used its yellow output.
-
@fxdreema great, thank you!