If close parent trade resulting in boolean to close all resulting children trades
-
Hello friends...
So, if there was a parent trade made by conditions, that multiplied because of conditions set forth, and now there are multiple trades. Suppose 20 have resulted as a result of those conditions....
Is there a way to close all the trades instantaneously, if the parent trade is manually taken out or closed? I suspect a boolean would be needed here, but the question is what blocks could be used for that? So far I have looked at "For each Closed Trade" (Magenta tab) but shouldnt that be at the top of each sequence? Same as "For each Trade"(Magenta tab)....OR, the "check how it was closed" (light pink) tab?
Or "If trade/order" tab (blue tab)?
I know they could be used, but all I want to do is to identify if a PARENT trade was manually closed and once that happens, close out its entire family of trades.Thanks...I appreciate all of your help. Thanks
Len -
What do you exactly mean by 'parent trade'? in fxDreema that is only considered when a partial close is executed. In that case the original trade is closed and a mew one is open with the remaining lot size. That mean you cannot close the 'parent trade' because is was already closed. What do you exactly mean?
-
If I open a trade and then multiplies trades, and it goes positive for 3 minutes and then in 10 minutes go severely negative, is there a way to close the first trade (that all other trades multiplied from) and by doing so, close every subsequent or following trade by doing that one action? Thanks
-
But are they independent trades? I mean are they partially closed? Otherwise they are not parent trades from a technical point of view.
-
@l-andorrà THERE IS an original trade from which the others result from (if trade button), and it results in opening up subsequent trades that follow, I am tlking about closing out the first trade of all of them.
-
@len-1 Ok. In that case, you need to store the value of the ticket number of that first trade into a variable and when the conditions are met you can the bot search for that ticket number again to close it.