nth_element

 
Hi all! Is there a nth_element function (C++) in MQL5?
 
Arthur Albano:
Hi all! Is there a nth_element function (C++) in MQL5?

One way to achieve this is by doing

double array;

ArraySort(array);

return(array[n]);