![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
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.