I would search for the last closed order by trying to search through history, not by explicitly pointing to 1
And so on ... I can't search any further - first, it would hardly help me without code integrity, and second, it's 7 a.m. and I haven't even gone to bed yet...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Try n do double! It won't hurt, but it may help to solve the problem.
I have n written in arrays there as well. So it won't work, I tried it and got an error.
Is this from a textbook?
You have to overrun the orders like this:
Accordingly, the rest of the arrays will float...
I would search for the last closed order by trying to search through history, not by explicitly pointing to 1
And so on ... I can't search any further - first, it would hardly help me without code integrity, and second, it's 7 a.m. and I haven't even gone to bed yet...
I have n written in arrays as well. So it won't work, I tried it and got an error.
Array
what type do you have?
What type are price, tp, take variables? Why should we guess here?
Why should we guess? At the beginning of the function everything is declared as type double. take a look at .
Where do you live, Artyom? Siberia?
Why guess? At the beginning of the function everything is declared as type double. take a look at .
Right there:
Your ticket is int, the rest is double. You read them from the array - what type is the array?
What type of array is it?
also double
I have n written in arrays as well. So it won't work, I tried it and got an error.
also double