why do I get this rates wrong?

 
   static matrixf x_norm2m(SAMPLE_SIZE1,4);       // matrix for prices normalize

//--- request last bars
   if(!x_norm2m.CopyRates(_Symbol,_Period,COPY_RATES_OHLC,1,SAMPLE_SIZE1))
     {
      Print("CopyRates error");
      ExtPredictedClass=-1;
      return;
     }

// Ahora puedes acceder e imprimir los valores de x_norm2m correctamente
   Print("x_norm2m");
   for(int i = 0; i < SAMPLE_SIZE1; i++)
     {
      Print(x_norm2m[i][1]); // High
      Print(x_norm2m[i][2]); // Low
      Print(x_norm2m[i][3]); // Close
     }
2024.04.20 17:10:01.310 Core 01 2024.04.02 00:05:00   x_norm2m
2024.04.20 17:10:01.310 Core 01 2024.04.02 00:05:00   1.0779900550842285
2024.04.20 17:10:01.310 Core 01 2024.04.02 00:05:00   1.0781699419021606
2024.04.20 17:10:01.310 Core 01 2024.04.02 00:05:00   1.0784499645233154
....

why? whats wrong or what can I change?

 
CopyRates function - to copy price data from the terminal to array, not matrix. 
 
Oleksandr Medviediev #:
CopyRates function - to copy price data from the terminal to array, not matrix. 

thanks

 
Oleksandr Medviediev #:
CopyRates function - to copy price data from the terminal to array, not matrix. 

No to be honest, it does exist:

https://www.mql5.com/en/docs/matrix/matrix_initialization/matrix_copyrates

And the documentation page contains an example code.

On second thought OP what are you trying to achieve?

Documentation on MQL5: Matrix and Vector Methods / Initialization / CopyRates
Documentation on MQL5: Matrix and Vector Methods / Initialization / CopyRates
  • www.mql5.com
Gets the historical series of the MqlRates structure of the specified symbol-period in the specified amount into a matrix or vector. Elements are...
 
Tobias Johannes Zimmer #:

No to be honest, it does exist:

https://www.mql5.com/en/docs/matrix/matrix_initialization/matrix_copyrates

And the documentation page contains an example code.

On second thought OP what are you trying to achieve?

traying new strategies for dl

Reason: