numpy hstack

 

Hi, 

it is great to have matrix methods analog to numpy included in metaeditor.
I am missing numpy.hstack. (numpy.hsplit is available on the other hand); 

https://numpy.org/doc/stable/reference/generated/numpy.hstack.html
https://www.mql5.com/en/docs/basis/types/matrix_vector

I wonder if it is planned to add other numpy matrix methods like numpy.hstack to metaeditor?


Best, Julian

numpy.hstack#
  • numpy.org
, , , # Stack arrays in sequence horizontally (column wise). This is equivalent to concatenation along the second axis, except for 1-D arrays where it concatenates along the first axis. Rebuilds arrays divided by . This function makes most sense for arrays with up to 3 dimensions. For instance, for pixel-data with a height (first axis), width...
 
Maybe, we don't know. But meanwhile it shouldn't be a problem to write a little function that can do it.
 

Guys, is it possible to use numpy arrays in metaditor, keeping the MT5 commands?

 
Quen24 #:

Guys, is it possible to use numpy arrays in metaditor, keeping the MT5 commands?

Depending on your aim, you can just use a common single or multidimensional array. Or a vector / matrix. 

Reason: