The KeltnerBounce strategy is a trading strategy that uses various technical indicators to determine buy and sell signals. Here is a brief description of what the strategy does:
The strategy populates several technical indicators in the given DataFrame, including:
Money Flow Index (MFI)
Moving Average Convergence Divergence (MACD)
Stochastic Fast Oscillator (STOCHF)
Relative Strength Index (RSI)
Fisher Transform of RSI (fisher_rsi)
Keltner Channels (kc_upperband, kc_lowerband, kc_middleband)
Bollinger Bands (bb_upperband, bb_lowerband, bb_gain)
Exponential Moving Averages (ema5, ema10, ema50, ema100)
Parabolic SAR (sar)
Simple Moving Average (sma)
The strategy then populates the buy signal based on the following conditions:
Volume is greater than 0
If enabled, MFI is less than or equal to a specified value (buy_mfi)
If enabled, Fisher RSI is less than or equal to a specified value (buy_fisher)
If enabled, Bollinger Bands gain is greater than or equal to a specified value (buy_bb_gain)
The candle's open and close prices are within the lower Keltner band and the candle is green (close > open)
The previous candle's open or close price is below the lower Keltner band
The strategy populates the sell signal when the candle's open or close price is above the upper Keltner band. The strategy combines these indicators and conditions to generate buy and sell signals for trading.