This script shows divergences over the periods 2,3,4,5 and 6.
One period is 1 day on the Daily, or 5m on the 5m chart
I will add more when needed. but it will get busy soon on the chart so that i why i stick to the most important ones.
The divergence is indicated with a number on the end of the divergence. The number shows how many periods you have to go back in time. This is where you can draw a line as usual. (if anyone knows how to draw a line let me know)
The divergence is only detected after one extra candle close.
The divergence is based on close price.
Red is Bearish divergence
Green is Bullish divergence
Orange on top is hidden(negative) divergence
Orange on bottom is also hidden(Positive) divergence
between 40 and 80 is uptrend
between 20 and 60 is downtrend