search maxinum value in array

Questions about MultiCharts and user contributed studies.
turbofib
Posts: 213
Joined: 11 May 2013
Has thanked: 67 times
Been thanked: 1 time

search maxinum value in array

Postby turbofib » 06 May 2022

hi,
array:mm[500];

I wanted to know the maximum value in an array without using the for loop

I would like to find the fastest method possible

MAZINGUER
Posts: 75
Joined: 06 Jan 2017
Has thanked: 9 times
Been thanked: 25 times

Re: search maxinum value in array

Postby MAZINGUER » 07 May 2022

hi,
In easylanguage is the reserved word

HighestArray

but I can't find its equivalent in powerlanguage.

Perhaps the word Maxlist can help you....putting all the elements of the array in the list.

User avatar
Tammy MultiCharts
Posts: 200
Joined: 06 Aug 2020
Has thanked: 6 times
Been thanked: 65 times

Re: search maxinum value in array

Postby Tammy MultiCharts » 09 May 2022

Hello turbofib,

Please have a look at the pre-built functions that might help you:
SortArray
Sort2DArray
SortDown_a
SortHeap2DArray
SortHeapArray
SortUp_a


Return to “MultiCharts”