magic number with trade.PositionOpen
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
Hi all, I seem it's not possible to apply the magic number with trade.PositionOpen, is it correct?
Thank you