Probably you need to add the flag COPY_RATES_VERTICAL.
PS. For troubleshooting it's better to print out complete arrays/matrices.
Hi,
I am experiencing a discrepancy in data integrity when using matrix::CopyRates() compared to the legacy CopyRates() function.
For the same symbol, timeframe, and depth, I am unable to retrieve the same Close values, and the resulting matrix structure appears inconsistent with the requested parameters.
Is there a documented layout I am missing, or is there a bug in the matrix::CopyRates() implementation?
Here is a reproduction of the issue
" (length: 174)
All is correct. You are probably confused in the indexes. By default (horizontal alignment) OHLC/OHLCT values for 1 candle are copied in a column, so Close values are always in row 3.
Should be :
s_report += "Matrix OHLCT [3,0]: " + (string)im_ohlct[3, 0] + "\n\n";
- 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 am experiencing a discrepancy in data integrity when using matrix::CopyRates() compared to the legacy CopyRates() function.
For the same symbol, timeframe, and depth, I am unable to retrieve the same Close values, and the resulting matrix structure appears inconsistent with the requested parameters.
Is there a documented layout I am missing, or is there a bug in the matrix::CopyRates() implementation?
Here is a reproduction of the issue