The BBRSI strategy is a backtesting strategy that combines two technical indicators, namely the Bollinger Bands and the Relative Strength Index (RSI), to generate buy and sell signals for trading. Here's a breakdown of what the strategy does:
Populating Indicators:
Calculates the RSI (Relative Strength Index) using the ta.RSI function. Calculates the Bollinger Bands using the qtpylib.bollinger_bands function.
It uses the typical price as input and sets the window size to 20 with 2 standard deviations.
Populating Buy Trend:
Generates a buy signal when the RSI is below 40 and the closing price is below the lower Bollinger Band.
Populating Sell Trend:
Generates a sell signal when the closing price is above the upper Bollinger Band. Other important details about the strategy:
The minimal ROI (Return on Investment) is set to 10, meaning the strategy aims for a 10% return. The stoploss is set to -0.99, which acts as a hard stoploss at a 99% loss. The strategy uses a 5-minute ticker interval for analyzing price data. The trailing stoploss feature is disabled. The strategy doesn't run TA (Technical Analysis) indicators on every candle. The order types for buying and selling are set to 'limit', and the stoploss order type is also set to 'limit'. The order time in force for buying and selling is set to 'gtc' (good 'til canceled), which means the orders remain active until executed or canceled. Please note that this is a sample strategy provided by Freqtrade and can be customized or used as inspiration for building your own strategy.