Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1664
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
You still need to check the conditions on each new tick, and if it didn't work on the previous tick, it will change on the new one.
And error handling has to be done.
A typo? I think both functions can only take one parameter.
If you do it through an array, then check only the ticks of modified orders written to it against all the others.
About right, yes, thanks. In that case, if we're saving to objects, we'd better have unique majicks instead of tickets, otherwise there will be dozens of objects with the same name.
A typo? I think both functions can only take one parameter.
They won't.
Sorry
h ttps://www.mql5.com/ru/docs/objects/objectname
This is for MT5
and this is for MT4
They won't.
Sorry
By the way, do you happen to know why the following error occurs periodically? For 100 successfully opened orders, there are about 10 of these.
2021.10.10 16:18:09.853 2021.01.05 21:15:00 test EURUSD,M5: 4051 | order.sl_price: 2.813499706815862e-262 2021.10.10 16:18:09.853 2021.01.05 21:15:00 test EURUSD,M5: OrderSend error 4051 2021.10.10 16:18:09.853 2021.01.05 21:15:00 test EURUSD,M5: unknown trade cmd 406958564 for OrderSend function
order.sl_price: 2.813499706815862e-262 - stoploop price, clearly this number should not be.
4051 - "Invalid value of function parameter"
- is this the order type? Shouldn't be a problem with that either.
Do you mean "min and max" by ticket or price?
By ticket
By the way, do you happen to know why the following error occurs periodically? For 100 successfully opened orders, there are about 10 of these.
order.sl_price: 2.813499706815862e-262 - stop price, clearly this number should not be.
4051 - "Invalid value of function parameter"
- is this the order type? There should not be any problems with it either.
Try to move "NormalizeDouble"
By ticket
Try moving "NormalizeDouble"
unchanged.
Makar has inserted code into the EA so far only to compare profit in currency and profit in pips as far as I understand it can be understood when these functions have zero values