Close partially by money profit
-
Hi, someone has made a function or made an another kind of logic to close partially the trade by its profit got?
E.g. If the trade is running with +100 USD profit, then close 50USD of it and then close another part if the current position earn again 50USD to close 25USD?
I made this but something is wrong with the next partial level close. Because if if put 25 instead 75, then it closses inmediately with the first partial to close. I mean, both got closed

-
You should create two different Constants selecting two different profit targets instead of variables as it is now. Please notice that you just duplicated block trees 130 and 144 with the only difference being that variable modification. Because both block trees are doing exactly the same at the same time, this is the result is wrong.