04-06-2010, 01:43 PM
|
#10 |
Join Date: Mar 2007 Location: In Da House Thanks: 129
Thanked 1,054 Times in 702 Posts
| Re: Median in Easylanguage Quote:
Originally Posted by Tams » you have to use the medianarray
first, create an array,
then put the 5 numbers in the array,
then use medianarray to interrogate the array for the median. | This would certainly work but grows exponentially slower as the set of data increases. (It calls SortArray which is a bubble sort and fairly highly iterative). Not a problem if you are looking at (for example) the close of 5 minute bars (small data set) but possibly an issue if you are using say tick data (a large data set).
Just offering this for consideration  . |
| |