Download MetaTrader 5

Question about manual trades and magic numbers

To add comments, please log in or register
Arturo Lopez Perez
166993
Arturo Lopez Perez  

Good afternoon,

I have a very simple question. Which is the default magic number for manual trades in MT5? Is it zero?

Thanks!

Simon Gniadkowski
Moderator
18021
Simon Gniadkowski  
PzTrading:

Good afternoon,

I have a very simple question. Which is the default magic number for manual trades in MT5? Is it zero?

Thanks!

Probably this . . .  OrdergetInteger() with ORDER_MAGIC . . .

If the function fails, 0 is returned.

Arturo Lopez Perez
166993
Arturo Lopez Perez  
RaptorUK:

Probably this . . .  OrderfetInteger() with ORDER_MAGIC . . .

Thanks Raptor. My goal is to pick only trades placed manually and leave alone other orders.
Simon Gniadkowski
Moderator
18021
Simon Gniadkowski  
PzTrading:
Thanks Raptor. My goal is to pick only trades placed manually and leave alone other orders.
What about orders placed non-manually with a Magic Number of 0 or non-manually without a Magic Number ?  it might be that you can't definitively do what you are trying to do . . .
Alain Verleyen
Moderator
32776
Alain Verleyen  
PzTrading:
Thanks Raptor. My goal is to pick only trades placed manually and leave alone other orders.
You are not the first and probably not the last.
To add comments, please log in or register