Alberto Tortella:
Hi all, I seem it's not possible to apply the magic number with trade.PositionOpen, is it correct?
Thank you
you should be able to set the magic number separately first, for the class instance.
https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradesetexpertmagicnumber

Documentation on MQL5: Standard Library / Trade Classes / CTrade / SetExpertMagicNumber
- www.mql5.com
Sets the expert ID. Parameters magic [in] New ID of the expert. Return Value None...
Thank you

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi all, I seem it's not possible to apply the magic number with trade.PositionOpen, is it correct?
Thank you