MQL4 mean code sample?

[Deleted]  

Hi there

I am new to MQL4 and MetaTrader which I really like.

I am looking for any code samples of calculating the mean of set of prices within MQL4? I found this for a median.

https://www.mql5.com/en/code/7819

Does anything like this exist for calculating the statistical mean similar to this?
Thanks

 

It's not the median it's the mean . . .

MidlleBuffer[shift-1]=(mmax+mmin)/2;
[Deleted]  
RaptorUK:

It's not the median it's the mean . . .


Great! This is very helpful. Thanks