Okease Help - Sort

 

I want to use sorting in my indicator but i am not get it

How to sort our values in ascending order

Please guide

Thank you 

 

Hi.

Copy your indicator values to a new array and sort this array with the ArraySort() function.

https://www.mql5.com/en/docs/array/arraysort

Documentation on MQL5: Array Functions / ArraySort
Documentation on MQL5: Array Functions / ArraySort
  • www.mql5.com
Array Functions / ArraySort - Reference on algorithmic/automated trading language for MetaTrader 5
 
MODE_ASCEND 
MODE_DESCEND 
 
Snelle Moda:

Hi.

Copy your indicator values to a new array and sort this array with the ArraySort() function.

https://www.mql5.com/en/docs/array/arraysort

Thank You for share, 
Reason: