The bbrsittfv1 strategy is a backtesting strategy designed to analyze and trade financial markets. Here's a short description of what the strategy does:
Timeframe: The strategy operates on 15-minute timeframes. Indicators:
Bollinger Bands: The strategy calculates Bollinger Bands using the typical price and a window of 20 periods with 2 standard deviations.
It tracks the upper band, middle band, and lower band.
RSI (Relative Strength Index): The strategy calculates the RSI indicator with a time period of 14.
TTF (Trend Trigger Factor): The strategy calculates the TTF indicator using a custom function called ttf(). TTF measures the difference between buy power and sell power based on the high and low prices of the candles. It uses a rolling window of length ttf_length (a parameter that can be adjusted) to calculate the TTF values. Buy Signal:
The strategy generates a buy signal when the following conditions are met:
RSI is below 30. TTF is below the lower TTF trigger value (ttf_lowerTrigger parameter). The closing price is below the lower Bollinger Band. Sell Signal:
The strategy generates a sell signal when the following conditions are met:
RSI is above 70. TTF is above the upper TTF trigger value (ttf_upperTrigger parameter). The closing price is above the upper Bollinger Band. Plot Configuration:
The main plot displays the Bollinger Bands with the upper band in blue, the middle band in white, and the lower band in yellow. The subplots include:
RSI plot: RSI indicator in blue, overbought level (70) in light gray, and oversold level (30) in light gray. TTF plot: TTF indicator in red, upper TTF trigger value in light gray, and lower TTF trigger value in light gray. Note: The strategy uses the Freqtrade library for backtesting and trading. It includes a stop-loss parameter set to -0.99, which represents a 99% stop loss.