Is MQL4 Bugged?
- "Doesn't work" is meaningless — just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.
- Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
- "Doesn't work" is meaningless — just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.
- Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
No, i don't expect it. If i change Ordersend with an alert, works perfectly. I can't understand why sometimes goes and sometimes now
int buyticket = OrderSend(_Symbol,OP_BUYSTOP,Lots,Ask+50*_Point,3,0,0,"BuyStop",MagicNumber,0,Green);
- You would know why if you had checked your return codes for errors, and reported them including GLE/LE, your variable values and the market.
- At least we would know, you are calling your code.
- Don't just silence the compiler, it is trying to help you.
What are Function return values ? How do I use them ? - MQL4 programming forum
- You would know why if you had checked your return codes for errors, and reported them including GLE/LE, your variable values and the market.
- At least we would know, you are calling your code.
- Don't just silence the compiler, it is trying to help
you.
What are Function return values ? How do I use them ? - MQL4 programming forum
Whats is the best way to solve this? I have just alert from compiler, no error, and no error in charts
Check if the OrderSend is successful, if not successful take the GetLastError() value, and create an alert for you.
I have no Alert with the error. It's simply ignoring the time and i don't know why!
I am trying one easy code. Open two orders at specific time. It works 6 times on 10. Why sometimes works and sometimes no?