Im trying to code a 10 point moving average OF a simple moving average(30). I want to know the slope of the last 10 points of a simple moving average(30) so i can add this to my condition. Can someone help me do this