Live Divergence Indicator Coding

Job ID: 38940252

Budget: $30 – $250 AUD

I am looking for someone who can code a divergence indicator for me in pinescript V6.

It must run live by storing the last pivot point low/high on the chart and also the value of the RSI at that pivot point.

When I say live I mean that it monitors each new candle and if it detects either hidden or regular divergences between price and the RSI then it will use the plot candle function to change the colours of the candle immediately instead of waiting 5 bars to record another pivot point.

1) 5 bars must pass to record the last pivot point high or low.
2) RSI value must be recorded at the high or low of that pivot point.
3) If price begins to make a higher high yet the RSI has not gone higher than the last pivot point (Regular Bearish Divergence) then the candles should start turning purple until the RSI moves lower than the previous bar.
4) If price has not yet surpassed the high of the last pivot point yet the RSI is higher than the last pivot point (Hidden Bearish Divergence) then again the candles should be purple until the RSI moves lower than the previous bar.
5) If price begins to make a lower low yet the RSI has not gone lower than the last pivot point (Regular Bullish Divergence) then the candles should start turning yellow until the RSI moves higher than the previous bar.
6) If price has not yet surpassed the low of the last pivot point yet the RSI is lower than the last pivot point (Hidden Bullish Divergence) then again the candles should be yellow until the RSI moves lower than the previous bar.
7) 4 alerts to be created using the alert() function and input.bool function so I can turn the alerts on or off in the settings and I can use the any alert function call() to have whichever alert I choose in the settings to run.
8) This must be amalgamated with another script I have created.

Image attached.
Related categories: Python Metatrader