Market: no trading operations - page 8

 
Maksim Neimerik:

All in all, it's time to end this conversation.

Some imaginary faults you saw at once, but the essence (I wrote about the return of the lot) was left without your attention...

Thank you all for your help!

You're welcome.

Vitaly told you the deal. Listen to your wise and experienced uncle.

 
Vitaly Muzichenko:

Maxim, can you hear me?

Reread the code I gave you and its message

You check for min/max and then calculate, so the calculation can be anything. You need to check for min/max after the calculation, not before

---------------------------

Here's mine.)


All right.

he has an error in logic, Market is working properly

 
Maksim Neimerik:

Anyway, it's time to end this conversation.

Some imaginary faults you saw at once, but the essence (I wrote about the return of the lot) was left without your attention...

Thank you all for your help!

there is nothing in the timer that has to do with calculating the lot?
 
Maksim Neimerik:

Can anyone explain why the market returns this error? All the checks in the EA are in place...

I understand the gist of course - there are no trades, but what is the reason?

Let it check for the entered value of lot... If it is 0 then trading stops.
Reason: