I would like to calculate an average as follows :
1. Take the daily Hi-Lo-Range of the last 20 days.
2. Sort this values ascending in sequence.
3. Delete the highest and the lowest 5 values starting from the lowest.
4. Compute from the remaining 10 values an average and stddev.
5. Plot the average on an 5 minute chart.
Could somebody help with step 2 and 3?
Thanks
1. Take the daily Hi-Lo-Range of the last 20 days.
2. Sort this values ascending in sequence.
3. Delete the highest and the lowest 5 values starting from the lowest.
4. Compute from the remaining 10 values an average and stddev.
5. Plot the average on an 5 minute chart.
Could somebody help with step 2 and 3?
Thanks
Comment