Download MetaTrader 5

Question about manual trades and magic numbers

To add comments, please log in or register
Publish your article and get a reward!
Arturo Lopez Perez
161604
Arturo Lopez Perez 2013.11.02 16:56 

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
18001
Simon Gniadkowski 2013.11.02 17:18  
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
161604
Arturo Lopez Perez 2013.11.02 17:53  
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
18001
Simon Gniadkowski 2013.11.02 18:09  
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
30743
Alain Verleyen 2013.11.02 19:46  
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