magic number

Sezione dedicata a metatrader (ed altre piattaforme) ed al suo linguaggio di programmazione per il trading automatico
Messaggi: 4
Iscritto il: 01/12/2016, 21:50

magic number

Messaggio da giogio81 » 17/04/2018, 21:34

hi guys ... I found an ea in mql4 and I would like to know if possible how to insert the magic number to make it manage with another expert? which code can I insert in the metaeditor? thank you so much

Avatar utente
Messaggi: 327
Iscritto il: 12/05/2014, 12:10
Località: Castellanza (VA)

Re: magic number

Messaggio da Dainesi » 21/04/2018, 18:27

Usually every EA inserts a magic number in his orders, if it does not and you have a code (mq4 file), it is possible to add a few lines of code that does this for you.
First of all find out where is the command OrderSend, thus put a MagicNumber value into the his place (see Knowledge base for additional info).

Chi c’è in linea

Visitano il forum: CC [Bot], texcs e 0 ospiti