This script finds Pivot high and Pivot low points according to parameters left bar and right bar and then draws trend lines. with this you can see the trend and trend reversals.
This is beta version, please do not hesitate to add comments.
If you find my works useful, please consider a donation BTC: 16XRqyS3Vgh1knAU1tCcruqhUrVm4QWWmR