Hello
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.
I've seen
OBJ_TRENDBYANGLE
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.
Hello
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.
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
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.
I've seen
OBJ_TRENDBYANGLE
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.