
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
You can't "extract" double array from your struct array.
If you want to fill field Fastest in each struct in your array, you will have to declare helper array in your function, fill that array with CopyBuffer and then copy those values into the struct array.
Something like this:
Code is not tested, but you should get the idea.
Hi Drazen
I have tried it and works well ...
It also gave me opportunity to Normalize the out values to a specified digits, which I was not able to do earlier in CopyBuffer().
Hi Drazen
I have tried it and works well ...
Yes, but you should think about Alain's suggestion because you now use CopyBuffer to copy data into temporary arrays, and then you copy that data into array of struct - you move the same data two times.
Measure the performance. If it is slow, then consider struct of arrays that Alain suggested.