The "Super" strategy is a backtesting strategy that combines the Supertrend and Bollinger Bands indicators to generate buy and sell signals. Here is a breakdown of what the strategy does:
It uses the Supertrend indicator to determine the long and short trends in the market. The Supertrend is calculated based on a specified period and multiplier.
It also calculates the Bollinger Bands indicator, which consists of three bands: the upper band, middle band, and lower band.
The Bollinger Bands help identify the volatility and potential price reversal points.
The strategy populates the indicators by adding columns to the dataframe, including "ST_long" (Supertrend long trend), "ST_short" (Supertrend short trend), "bb_lowerband" (Bollinger Bands lower band), "bb_middleband" (Bollinger Bands middle band), "bb_upperband" (Bollinger Bands upper band), "bb_percent" (percentage distance between the close price and lower band), and "bb_width" (percentage width of the Bollinger Bands). In the populate_buy_trend method, the strategy identifies buy signals when the Supertrend long trend is below the close price and the volume is greater than 0. In the populate_sell_trend method, the strategy identifies sell signals when the Supertrend short trend is above the close price and the volume is greater than 0. Overall, the strategy aims to capture potential trends and reversals in the market by combining the Supertrend and Bollinger Bands indicators.