How to get Max/Min values of ExtMapBuffer[]?

 

My custom ExtMapBuffer[] is fluctuating between -ve and +ve regions,

For each region, I need to get its MAX/MIN strokes - for the visible bars - in order to be used as EXIT for SELL/BUY positions.

Any suggestions?

 
use mathmax or mathmin function
 
maniac1984:
use mathmax or mathmin function


MathMax( double value1, double value2)

Returns the maximum value of two numeric values, and hence can not be applied on Buffer[]

 
OmegaFX:

My custom ExtMapBuffer[] is fluctuating between -ve and +ve regions,

For each region, I need to get its MAX/MIN strokes - for the visible bars - in order to be used as EXIT for SELL/BUY positions.

Any suggestions?

You could use

https://docs.mql4.com/array/ArrayMaximum

and the matching ArrayMinimum function