Checking Order Comment in MQL4
Don't use order comment to identify orders and positions, the broker might/will change it!
Use the MagicNumbers for your trading. It is your ID and is not changed by the broker.
Don't use order comment to identify orders and positions, the broker might/will change it!
Use the MagicNumbers for your trading. It is your ID and is not changed by the broker.
Well, apart from the magic number, how can I understand this order was sent by this EA?
Hello,
If there is another position with the same Comment, I do not want a new order to be opened. I wrote a method for this, but it is not working. I am getting a false response in the "if(OrderType()==orderT)" part, and it allows opening a position.
There is only one open position and it is OP_BUY. The position I am trying to test is also OP_BUY. How can OrderType()==orderT be??
I would appreciate your help.