Dont use ticket number for this - use MagicNumber, which is set in the OrderSend line.
Best to have this as an extern variable
See 'MagicNumber: "Magic" Identifier of the Order'
You can then use the same EA on multiple charts with different values for the MagicNumber (set in the extern variable list that pops up when you add an EA to a chart)
Good Luck
-BB-
TC
Dont use ticket number for this - use MagicNumber, which is set in the OrderSend line.
Best to have this as an extern variable
See 'MagicNumber: "Magic" Identifier of the Order'
You can then use the same EA on multiple charts with different values for the MagicNumber (set in the extern variable list that pops up when you add an EA to a chart)
Good Luck
-BB-
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I ran the same EA on multiple charts and it starting doing some wacky things, what am I missing? And what is the 'magic number' for? I thought if I saved the ticket number in an external variable I could use that to identify the trades of individual EA's. Each EA has only one trade open at all and any time.
Thanks!
Tom