I created this indicator watching how good VDUB works, so I want to say THANKS to vdubus (https://www.tradingview.com/u/vdubus/) and his incredible strategy (https://www.tradingview.com/script/yjtTc...).
It works really well on and forex :)
See how perfectly this indicator works compared to RSI:
And see how perfectly it works directly on market prices:
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.