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
CopyBuffer is presenting a problem when copying to an array that has been marked with ArraySetAsSeries to have reverse order of indexing when you are shrinking the array in the process.
Aparently, the data is copied to the wrong address and then discarded by the resizing.
The only way to achieve the expected outcome, it to either have the array resized with ArrayResize first, or call CopyBuffer twice. This behaviour is not documented and clearly is a bug.
Here is an example that shows the problem, the two consecutive CopyBuffer calls generate different outputs: