For example, if I want to see the slope after 5 periods (EUR/USD) then I do the following calculation:
(candle 5 closing price - candle 1 closing price) / 5
Example: If bar 5 closing price is 1.3962 and bar 1 closing price is 1.3954 then the slope = (1.3962 - 1.3954) / 5 = 0.00016
I used this thread as a reference for the formula:
Comment