This looks like a great indicator. I do have a question: how long are the periods for the "Short Term", "Mid
Term", and the "Long Term"?
I am not sure that this is doing what you think it is doing.
The slope calculations are not moving averages with lookbacks.
The slopes referenced are the ToS LinearRegressionSlopes
This script creates the slopes based on a short 5-bar moving average (a common method of smoothing price).
The slopes are:
shortTermLength = 5
midTermLength = 15
longTermLength = 40
Last edited: