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
Is it possible to pass an array to a function that doesn't start with a zero element? For example, as a reference to the i-th element, and how would this look?
you can
winapi memcpy, etc. to help.
is it possible to pass an array to a function that doesn't start with a zero element? For example, as a reference to the i-th element, and how would that look?
You do not declare an array in the function import, but a simple reference.
When calling the function, pass in the i-th element of the array as a parameter. If you want an array from the beginning, pass in the 0th element of the array as a parameter.
Approximately like this:
This is about right:
Well, it doesn't work in 4 because the index element is not a lvalue when passed to the function.
It works in 5.
Well, this will not work in 4 because the index element is not a lvalue when passed to the function
I didn't realise we were talking about a four.
So these examples are for an external library? And without DLL ?
winapi memcpy does not belong to mql5 either
So these examples are for an external library? And without DLL ?
winapi memcpy does not belong to mql5 either
So these examples are for an external library? And without DLL ?
winapi memcpy does not belong to mql5 either
Good morning!
A word of advice to a very novice))). The question is as follows:
Let's assume a position was opened by a price jump and an ascending MA (it was set in the code), but almost immediately the chart changed, that is, the MA started going down (as well as the entire chart of course)) ). I have to write a function that will close the position at this point, but I have not reached stop loss or limit and reopen the position with the new data. And it all has to be checked each time. I hope the description is clear:)))