Forums › ProRealTime English forum › ProOrder support › EMA 45 degres Uptrend › Reply To: EMA 45 degres Uptrend
05/13/2018 at 10:58 AM
#70279
Similar I think to what Robertogozzi said you can apply a gradient score to the average by subtracting the average level x bars ago from the average level now and dividing by x. By comparing different values of x you can confirm whether the steepness of gradient is increasing or decreasing.
Could you not then also return this as degrees by the following formula?
|
1 2 3 4 5 6 7 8 |
Period = 200 //Average period x = 1 //Number of bars to look back Gradient = (ExponentialAverage[Period](close) - ExponentialAverage[Period](close[x]))/x Angle = ATAN(Gradient) Return 0, Angle |