Setting the Magic Number used for New Trades on the MetaQuotes terminal

 

Is it possible to set the Magic Number used by the MetaQuotes terminal for manually creating new trades?

How can the Magic Number be set for use by the MetaQuotes terminal?

 
Don Baechtel:

Is it possible to set the Magic Number used by the MetaQuotes terminal for manually creating new trades?

How can the Magic Number be set for use by the MetaQuotes terminal?

This has been asked many times before.

A magic number must be generated programmatically, e.g., from an EA.

If you want to do it manually, I suggest going on the hunt for a custom trading panel EA that supports magic number.

 
Ryan L Johnson #:

Ryan already gave you the correct answer. Just to add some detail: the Magic Number is only set when you open a trade programmatically (via an EA/script using OrderSend).

Manual trades from the terminal will always have Magic = 0. If you want to assign your own value, the only workaround is through a custom panel EA that opens the trade on your behalf and passes the Magic Number.

 
Ryan L Johnson #:

This has been asked many times before.

A magic number must be generated programmatically, e.g., from an EA.

If you want to do it manually, I suggest going on the hunt for a custom trading panel EA that supports magic number.

Thanks for the info.