i will give 10$ for find a solve of problem
-
It is a hedge and I want the order to be closed every time I open a new order until the goal is achieved.
example:

-
-
This might help, every time a trade is placed delete the other in the buy/sell tree, use a variable with the lot size, and update the value under each buy/sell. Then reset back to the starting value in a separate tree when 0 trades are running.
-
@jstap Is it possible to save the value you purchased from?
-
What do you mean by value in this case? You have 2 ways to get a last trade value, save to a variable under buy/sell, or use pink blocks to get the a previous trade value.
-
Assuming that a purchase has been initiated now, is it possible to save the price at which the transaction was opened and use it?
-
In a variable save the current candle 0 close price, or pink for each trade and save the open into the variable via the loop into the variable. Or get this value when needed from a for each closed trade block.
-
can do it in an example
-
I try not to create things for people, otherwise I will spend all day doing so for people. Make the test project and add a shared link, then I can advise on why it's not working.
-
https://fxdreema.com/shared/5u6soYAbb
can Cheak it .
i want to save the price that i use it to open a pending order -
This won't save it, it will just use the open trade price.
