Find Average High/Low for specified no. of candles?

 

I can found high/low of no.of candles.

here: High[iHighest(NULL,0,MODE_HIGH,4,1)];
Low[iLowest(NULL,0,MODE_LOW,4,1)];

I want to find average high/low values for speciafied candles.is there any mt4 functions availble?

or i use now:

Havg=High[1]+High[2]+High[3]+High[4]/4
Lavg=Low[1]+Low[2]+Low[3]+Low[4]/4

Please suggest me any functions available to average high/low besides above i used.

 
sheriffonline:

I can found high/low of no.of candles.

I want to find average high/low values for speciafied candles.is there any mt4 functions availble?

or i use now:

Please suggest me any functions available to average high/low besides above i used.

Yes, it's called a Moving Average, iMA()
 

Oops. very simple, but not strike on my poor mind.

Thanks RaptorUK.

Reason: