Using MT5 order comment to track an order in FXdreema
-
Hello Everyone! Hopefully someone will be able to help me out.
I have an EA in the process that opens and manages orders (sets BE, trails SL etc)
Now everything is fine when the order is placed via the EA itself, since then it applies group ID to an order and later uses that group ID to manage the orders.
However, I would very much like for the EA to be able to manage a manually opened order as well. The only way I see this being done is by using the Comments added on orders in MT5.
So I tried just that: I open the order manually and set the coment: long1 (for example)
In the EA where it manages orders I have "for each position" block that separates longs from shorts and after that a simple condition block that checks: "(in loop) Trade/Order" -> comment = Value -> text -> long1
Logically it should access the order but it does not. Any ideas why?
-
I will Add that I have 2 separate "for each position" blocks, one has group ID taken into account (for the EA orders) and one that only separates longs from shorts (without any group IDs, since the manual trades dont have them)
-
Add a shared link to see what you have done, in group select all manually opened and EA
-
Sorry, my first time posting. Im not quite sure how create the link, but here is the setup.
I added the Draw arrow block to see if anything gets past the condition block and it does not.
when opening the trade manually in Mt5 I tried adding the comments as:
longa
"longa"but none of these worked
The left "1for each L position" works great, it uses just the group ID to select orders to manage
-
project page - project tab - create a shared link - open in web page - copy address bar - past here
-
@jstap Thank you for the willingness to help. I did manage to sort it out. Turns out at the top, there actually is a dropdown menu which has to be changed for the block to work on manually opened orders:

-

