IMO it’s useless since angle degree depends of the height/width of your chart/computer screen. You’d better look at price percentage change over x periods, I think it’s more accurate 🙂
this simply compares if the tradeema rises or falls within the last 2 bars.
you could also check if the difference of tradeema[2] & tradeema[1] if positive but smaller than the diff of tradeema[1] and tradeema -> which would mean it’s getting steeper.
getting a angle value is useless imho as there’s the need for a absolute x & y scale. but based on the difference you could use a treshold value to check if the slope is steep enough…