Coding One of the Best Trading Strategies in TradingView

Coding a Powerful Reversal Strategy on the RSI Using Pine Script

Sofien Kaabar, CFA
4 min readDec 8, 2022


Simple strategies can be as powerful as complex strategies. This article presents one of my favorite strategies used with the RSI.

For a complete collection of candlestick patterns in detail with back-tests and technical strategies, you can check out my newest book with O’Reilly Media. The book features a huge number of classic and modern candlestick patterns as it dwelves into the realm of technical analysis with different trading strategies. The book comes with its own GitHub and is dynamic in nature as it is continuously updated and questions are answered on the O’Reilly platform promptly.

The RSI Simple Reversal Strategy

The RSI is known as the number one technical bounded indicator. With the huge number of techniques and strategies applied on it, one particular technique always arises. The pull-back technique and more specifically the simple pull-back technique awaits the…