Title: Help with formula to close operations in pips
-
Hello everybody,
I am trying to develop a robot on FXdreema that closes trades based on a specific pips value. However, I'm having difficulty setting up the formula correctly.
My goal is that when a trade reaches a profit of X pips, it will be closed automatically. Could anyone help me understand how to do this?
I'd appreciate any guidance or configuration examples you guys can provide!
Thanks!

-
@alok In this example any trade hitting a 10 pips profit will be immediately closed:

-
@l-andorrà Hello, thanks for your help, but in grid trading mode it doesn't work, I would like to close all orders with profits equal to or above 10 pips
-
@alok That structure will do exactly that. It will search for all open trades right now and will check (one by one) if profit is 10 or more. If it is true, that trade will be closed. All other trades with less profit will not be closed.
-
@l-andorrà Hi, is there a way to do this Condition (TotalPips >= 10)
-
@alok What do you exactly mean by 'TotalPips'?