Hi all,
I have a 2D array
after populating the data, I used arraysort but it is in ascending for the 1st dimension
How can I sort it in descending for the 1st dimension?
Thank you very much
Reverse the array after sort , i don't think it has an argument for descending . i think
Perhaps you should read the manual. ArraySetAsSeries - Array Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
ArraySetAsSeries(PTs, !ArrayGetAsSeries(PTs) );
Perhaps you should read the manual. ArraySetAsSeries - Array Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
I did try to do this but I'm getting a weird
'PTs' - parameter conversion not allowed

- 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 all,
I have a 2D array
after populating the data, I used arraysort but it is in ascending for the 1st dimension
How can I sort it in descending for the 1st dimension?
Thank you very much