The BbandRsi strategy is a trading strategy that combines Bollinger Bands and the Relative Strength Index (RSI) indicator to make buy and sell decisions. Here's a breakdown of how the strategy works:
Populating Indicators:
The RSI indicator is calculated using a time period of 14 on the close prices of the trading data. Bollinger Bands are calculated using a window of 20 and 2 standard deviations on the typical price (average of high, low, and close prices) of the trading data.
Populating Buy Trend:
A buy signal is generated when the RSI is below 30 (indicating oversold conditions) and the closing price is below the lower Bollinger Band.
Populating Sell Trend:
A sell signal is generated when the RSI is above 70 (indicating overbought conditions).
The strategy aims to buy when the price is relatively low and sell when the price is relatively high. It uses the RSI to identify potential overbought and oversold conditions and the Bollinger Bands to confirm entry and exit points. The strategy sets a minimal return on investment (ROI) of 0.1, meaning it aims for at least a 0.1% return before considering selling. The stop loss is set at -0.25, indicating that if the trade goes against the strategy by 0.25%, it will be automatically sold. The timeframe for this strategy is set to 1 minute, meaning it operates on 1-minute candlestick data. Note: This strategy is based on a converted version from the original source mentioned in the comments.