The "bbrsi" strategy is a trading strategy that combines Bollinger Bands and RSI (Relative Strength Index) indicators to generate buy and sell signals. Here is a short description of what the strategy does:
The strategy uses a 4-hour timeframe for analyzing price data. It requires a minimum of 30 candles before producing valid signals.
The strategy calculates the RSI indicator using the ta.RSI function from the TA-Lib library.
It also calculates two sets of Bollinger Bands using the qtpylib.bollinger_bands function: one with a standard deviation of 1 and another with a standard deviation of 4.
The strategy's buy signal is generated when the RSI value is above 25 and the closing price is below the lower Bollinger Band (1 standard deviation). The sell signal is generated when the RSI value is above 95 and the closing price is above the upper Bollinger Band (1 standard deviation). The strategy has predefined minimal return on investment (ROI) values for different time periods. It also has an optimal stop loss value. Trailing stop loss is disabled in this strategy. The strategy uses limit orders for buying and selling, and market orders for stop loss. It does not ignore the ROI values even if a buy signal is present. There are no additional informative pair/interval combinations defined for caching. Note: The strategy may have additional configuration options and plot configurations, but they are commented out in the provided code.