Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1674

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
made. absolutely no different from the previous magazine.
no errors, or anything else.
Don't you need brackets for the loop? It seems that only when there is not more than one line you don't need them.
UPD:
Ah got it, there is one line.
There shouldn't be any errors, show the log
here are the last pages of the logbook from MT4.
is this log needed?
here are the last pages of the logbook from MT4.
is this log needed?
Here is the answer in your log)
The function bCheckOrders() after opening an order gives out that there are no orders, so they keep opening
And my head doesn't work at all, though I knew that, of course.
You have a funny way of putting it)))
You have a funny way of putting it)))
I mean, knew how to write assignment and comparison, but still got confused. Messed up.
That's not what I mean...
pribludilsa #:
and my head doesn't work at all, although I knew that of course.
Here is the answer in your log)
The bCheckOrders() function after opening an order gives out that there are no orders, so it keeps opening
Oh my god. Where does it say that?
maybe i did not read the log correctly?
The functionbCheckOrders()after opening an order prints that there is no order, therefore opening continues - by void OnTick() - I understand that this is not true.
until the order is closed bCheckOrders() - can not give out that there is no order.
Oh, shit. Where does it say that?
maybe i did not read the log correctly?
The functionbCheckOrders()after opening an order gives out that there is no order, therefore the opening continues - by void OnTick() - I understand that this is not true.
until the order is closed bCheckOrders()-can not show absence of an order.
bCheckOrders() does not work correctly!
I already wrote you a function for counting orders.
Just do it like this and it should work.
Instead of bCheckOrders(), put this function
And in OnTick(), instead of bCheckOrders(), write this