by using Monotonic Trend Analysis script you can see if there is uptrend or downtrend. if there is no trend it goes to zero line.
You can change period and threshold values as you wish. Lower period faster response, vice versa.
If you find my works useful, please consider a donation
BTC: 16XRqyS3Vgh1knAU1tCcruqhUrVm4QWWmR
by LonesomeTheBlue