Sorry, what does it mean?
I also saw another example. Which calculates the with the following lines
But I don't understand? Does it only work once?
That looks like reasonable code although I have never used that function. I would say you can call that set of 4 lower instructions as often as you like. The tricky part is the array initialize. that looks wrong. Although the function is called ArrayCopyRates() the help file clearly says that it does no such thing. It is returning a pointer to the relevant array which means that no copying is necessary. This means that dayPrice needs to be a pointer to an array and not an actual array. If you assign an actual array this will allocate memory to it. Changing the pointer value - well I don't know what that's going to do. If it is simply a pointer then you absolutely mustn't initialize it because the pointer will not be pointing anywhere.
Write it out and post the full code then somebody may be able to fix up the last little but for you.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I want to program an pivot - indicator, which isn't using any indicator buffer.
I have already reprogrammed an existing ea:
Now I am using the calculated values and draw them with objects!!
But I can only work with the results, when I calculate with given buffers.
//---------------------------------------------------------------
I also saw another example. Which calculates the with the following lines
But I don't understand? Does it only work once?