How to calculate the moving an average - Treading Strategies