Close trades group
-
Hello, I have a problem and I want to comment on it; I have an EA which contains several groups and I close by profit (group) in pips or in money.
The problem that arises is that when you are closing the operations (one by one, because there are several), in the meantime that the entry conditions are met while you are closing, you begin to open new operations and it becomes something endless (close and open, close and opens).
Is there a way that when the block is applied (check Profit unrealized) and close trades, in that period it does not continue opening operations in that period.
Thank you, I don't know if this topic has been raised before, I'm still reviewing.
Note: The trades it reopens are from the same EA just in case. -
Basically the opposite condition to close use for placing a trade
-
@jstap I will put an example of a project (any), and I will say what happens.
This is better explained.
link text
For this example, assuming I have 5 trades open and I close in the money for 10 USD.
Only that in reality I have 50 operations or more, and the issue is that as the operation tickets are closed, it turns out that if the entry condition is met while it is closing, it continues to open new operations.
The idea is that while you are applying this globalized closure, do not open operations, with respect to those blocks.
I don't know if I explained myself better there or it's a translator problem.
As always @jstap, thank you. -
@Edtoloza Try this:

-
@Edtoloza I'm going to try that, great...
That's the idea, thank you very much, I'll try it DEMO of course, because backtesting isn't possible. -
@jstap Can you open block No. 21 please
-
@Edtoloza This is whatever reason you want to reset the pass once, why is back test not possible?
-
@jstap It is not possible, because in the backtesting it closes the operations at the same profit, there are no movements in the price.
So in the real market, as it closes the operations and just at that displacement the condition is met again and while it is closing it begins to open operations, and this occurs that it is closing and opening simultaneously. -
@Edtoloza Try this, it will work on back test, back test can be used to work out all so you know it works before using demo/live:

-
@jstap Thanks, I'll have to check this out because it's my first time using these blocks.