OPEN-SOURCE SCRIPT

RSI+BOLLINGER (LONG & SHORT)

7 082
This indicator combines two of the most popular tools in technical analysis, the Relative Strength Index (RSI) and Bollinger Bands (BB), to generate both long (BUY) and short (SELL) trading signals.

Strategy:

Entries (Buy/Short): Entry signals are based on the RSI.

A BUY is suggested when the RSI crosses above an oversold level (default: 29), indicating a possible upward reversal.

A SHORT is suggested when the RSI crosses below an overbought level (default: 71), indicating a possible downward reversal.

Exits (Position Closure): Exit signals are based on Bollinger Bands.

A long position is closed when the price crosses below the upper Bollinger Band.

A short position is closed when the price crosses above the lower Bollinger Band.

Key Features:

Cascade Filter: Includes a smart filter that prevents opening new consecutive trades if the price hasn't moved significantly in favor of a new entry, optimizing signal quality.

Automation Alerts: Generates detailed alerts in JSON format for each event (buy, sell, close), designed for easy integration with trading bots and automated systems via webhooks.

Fully Configurable: All parameters of the RSI, Bollinger Bands, and strategy filters can be adjusted from the indicator’s settings menu.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.