blouf: I'll post it later, it's a draft & not clean at all
2014.12.0614:13:52 Core 1 too low available memory, 1279 Mb used
Even clean, may memory matter ? I mean, 'buffer' shows as a printf in the indicator, but seems not given to the ea. I wished I could send the results directly, without buffers.
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.
What is the actual buffer index ?
Buffer in the indicator : index = 3
But for the debug inside the EA I used the CPMBuffer var
Here's what is the value of the buffer inside the EA log, Buffer = 120 is showed from the indicator / the same buffer inside the EA = 0
Buffer in the indicator : index = 3
But for the debug inside the EA I used the CPMBuffer var
Here's what is the value of the buffer inside the EA log, Buffer = 120 is showed from the indicator / the same buffer inside the EA = 0
You have a bug somewhere. Difficult to help with code snippets only.
I'll post it later, it's a draft & not clean at all
Buffer in the indicator : index = 3
But for the debug inside the EA I used the CPMBuffer var
Here's what is the value of the buffer inside the EA log, Buffer = 120 is showed from the indicator / the same buffer inside the EA = 0
Try this. Change:
to:
For some reason, in my tests, CopyBuffer always returns zero regardless of the number of elements copied.
Try this. Change:
to:
For some reason, in my tests, CopyBuffer always returns zero regardless of the number of elements copied.