Comments are not reliable, they can be changed or overwritten by your Broker.
MINTA:
That is true. But when order is closed. I need info until order is opened. Anyway can someone check code?
That is true. But when order is closed. I need info until order is opened. Anyway can someone check code?
Suggestion....
Mynumber as part of MagicNumber.....
MagicNumber = Magic + Mynumber ???
If (MagicNumber() - Magic == Mynumber) //.....countbuy++;
MINTA:
That is true. But when order is closed. I need info until order is opened. Anyway can someone check code?
Maybe you have a Double precision issue . . . Can price != price ?
That is true. But when order is closed. I need info until order is opened. Anyway can someone check code?
Mynumber as integer.
MINTA:
Mynumber as integer.
Then why are you converting the comment to a double?Mynumber as integer.
if (StrToDouble(OrderComment())==NormalizeDouble(Mynumber,5))
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,
I want to check open orders (market) orders for special number in OrderComment. If order with same comment exsist do not open another order.
Problem is that somethimes it duplicate order. Can you check for errors, please?