code for getting the smallest or highest indicator value for a given time

 

Please with respect to the great coders of this forum, i need a code that will output the least/highest value of a given line indicators like Moving Average for like 20 bars back in a given period.

just like the case of High[iHighest(NULL,0,MODE_HIGH,20,1)];

 
Gbenga Ayodele:

Please with respect to the great coders of this forum, i need a code that will output the least/highest value of a given line indicators like Moving Average for like 20 bars back in a given period.

just like the case of High[iHighest(NULL,0,MODE_HIGH,20,1)];

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

Documentation on MQL5: Array Functions / ArrayMaximum
Documentation on MQL5: Array Functions / ArrayMaximum
  • www.mql5.com
//| Filling the basic part of the candlestick                        | //
 
nicholishen:

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

Thanks a lot. May your decades be long in happiness.

Reason: