This is a modified indicator base code from RSI Multi Length [LUX] and we will add some of functions by finding a classic/hidden divergence and alert.
The indicator returns information over RSI using multiple periods and calculates the percentage of overbought and oversold by overbought divided by oversold.
To find the divergence and hidden divergence we use base code from platform (Divergence Indicator) but change the input from normal to the average (RSI Multi Length).
RSI Settings
Maximum Length is maximum period.
Minimum Length is minimum period.
Overbought Level is value of the overbought level .
Oversold Level is value of the oversold level.
Source is input source of the indicator.
Divergence Settings
Pivot Right is value look back to the right side.
Pivot Left is value look back to the left side.
Max Range is maximum range value.
Min Range is minimum range value.
Alert Settings
It will be part of display of Divergence and Hidden Divergence.
Style Settings
Color of overbought/oversold/Bullish/Bearish which you can change as you wish.