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.
Carl Schreiber #:
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?

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
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.