OPEN-SOURCE SCRIPT

Bollinger Band with RSI

Updated

Using combination bollinger band and RSI indicator as guide to predict price volatility and the best entry point. The strategy logic is pretty straightforward where we're interested with close price that touches the lower bollinger band ; there are only two scenarios that will happened after the price reaches the lower band; the price might rebound from the lower bollinger band or drop lower and continue downtrend. To confirm the price movement, we use a second indicator which is the RSI to further investigate the price trend. For example, if the price reaches the lower bollinger band but the RSI value is not in the oversold region, we can conclude that the price will go lower and continue downtrend. If the RSI value is in the oversold region, we can use this price area as our entry point.

Stop loss is necessary to avoid losing too much capital if the RSI value lingers too long in the oversold region.

Best take profit area is when the price rebound above the middle bollinger band area/upper bollinger band or when the RSI reaches overbought region; whichever comes first.

Long entry:
RSI < 30 & close price < lower bollinger band

Exit entry:
RSI > 70

Default stop loss: -25%
Release Notes
After more than two weeks of dry-run trading, bollinger band and rsi strategy are not able to accumulate huge profit. Some profits were lost due to lag on the indicators; rsi and bollinger band are pretty slow indicator for high frequency trading. Below is the summary of my trades using this strategy:

Mode: Dry-run
Exchange: binance
Stake per trade: 40 USDT
Max open Trades: 0
Minimum ROI: {'0': 0.1}
Ask strategy: {"price_side": "ask", "use_order_book": false, "order_book_min": 1, "order_book_max": 1, "use_sell_signal": true, "sell_profit_only": false, "ignore_roi_if_buy_signal": false, "sell_profit_offset": 0.0, "ignore_buying_expired_candle_after": 0}
Bid strategy: {"price_side": "bid", "ask_last_balance": 0.0, "use_order_book": false, "order_book_top": 1, "check_depth_of_market": {"enabled": false, "bids_to_ask_delta": 1}}
Stoploss: -0.25
Timeframe: 15m
Strategy: bbandrsi
Current state: running

ROI: Closed trades
∙ -16.46963487 USDT (-0.57%) (-41.13 Σ%)
∙ -16.634 USD
ROI: All trades
∙ -19.92004824 USDT (-0.67%) (-49.75 Σ%)
∙ -20.119 USD
Total Trade Count: 74
First Trade opened: 2 weeks ago
Latest Trade opened: 18 hours ago
Win / Loss: 38 / 34
Avg. Duration: 1 day, 9:55:57
Best Performing: EOS/USDT: 27.16%

Use the strategy at your own risk.
Bollinger Bands (BB)bollingerbandstrategybothighfrequencytradingRelative Strength Index (RSI)scalpingTrend Analysistrendfollowing

Open-source script

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer