Assuming I have an smaHandle piping in SMA values to my smaVals array, I need to find the angle of the trend over a specified number of bars in a zoom-friendly manner.
but it looks like it's geared towards price. Does anyone know if there is a more general tool for calculating this in mql5? As is already known
ATan(vertical height / horizontal length) * 180 / PI()
would give me the angle of the trend, but as the horizontal length and vertical height are different units, I'm stuck. I've read somewhere else on the forum that it's not possible as such, but an equivalent would do it.