Magic number filter
-
How can i filter the open orders related to magic number ?
For example:
If i have 6 open orders different simbols from external EAs, 3 of them have the same magic number and i want to calculate the TP of that 3 orders ..
How can i do that ? -
You can catch every trade's magic number this way:

Then you can use that variable to filter it as you wish with a condition block.
-
@l-andorrà thanks for that
but for example:
if i have 5 open ordersbuy EURUSD magic number 1001
buy GBPUSD magic number 1001
buy EURCHF magic number 1001
buy GBPJPY magic number 1001
sell EURUSD magic number 1005how can use the variables as you mentioned to detect and close the 4 "1001" orders on profit ?
-
The you need this other tree (separatd from the previous one):

-
@l-andorrà
i tried this .. but i think i am missing some thing, because the "variable" part do not detect the other EAs magic number trades .. it detect the magic number of the trades of its own EA it self only !i do not know what is wrong ...
-
Can you please share you project? I can't know what's the issue right now.