Type/to search

Trend Filter Quantitative Strategy Based on Keltner Channels and CCI Indicator

Cryptocurrency
Created: 2024-02-27 15:47:20
Last modified: 2 years ago
1
Follow
1781
Followers

img

Overview

This strategy combines Keltner Channels, CCI indicator and RSI indicator with trading volume conditions to create a relatively complete trend filtering quantitative trading strategy. It generates buy and sell signals when prices break through key areas, indicators give trading signals, and large trading volumes appear. At the same time, moving averages are used for trend judgment to avoid trading without a clear trend.

Strategy Logic

The strategy makes trading decisions mainly based on the following indicators and conditions:

  1. Keltner Channels: Calculate upper and lower bands based on typical price and ATR over a period to determine if price is within the channel.

  2. CCI Indicator: Used to determine whether price is overbought or oversold.

  3. RSI Indicator: Assists in judging overbought/oversold levels.

  4. Trading Volume: Requires breakout of certain moving average value.

  5. Trend Filter with MAs: Use SMA, EMA etc. to determine overall trend direction.

With trend direction condition met, buy and sell signals are generated when price breaks Keltner Channel bands, CCI and RSI give signals, and trading volume surges.

Advantages

The strategy combines multiple indicators and conditions to filter uncertain signals and make decisions more reliable:

  1. Trend filter avoids unclear volatile markets.

  2. Keltner Channels identify key breakout levels.

  3. CCI and RSI signals are relatively accurate.

  4. Volume surge helps prevent some false breakouts.

Risks

Main risks:

  1. Improper trend judgment may miss stronger trends. Test different MA parameters.

  2. Wrong indicator parameters may cause missed or false signals. Optimize parameters.

  3. Ineffective volume magnification leaves certain false breakout risks. Test different multipliers.

Optimization Directions

Potential optimization directions:

  1. Test different MA types and lengths for better trend filter.

  2. Optimize parameters of Keltner Channels, CCI, RSI for more accurate signals.

  3. Test different volume multipliers to find optimal level.

  4. Consider adding stop loss to limit max loss per trade.

Conclusion

Overall, this strategy combines Keltner Channels, CCI, RSI indicators and trading volume conditions to create a relatively complete trend filtering quantitative trading strategy. It has advantages like avoiding unclear volatile markets, identifying key breakouts, getting relatively accurate overbought/oversold signals, and preventing some false breakouts. Risks exist in aspects like improper parameter settings and ineffective volume magnification. Further optimizations can be done on the trend filtering method, indicator parameters, volume multiplier, and adding stop loss mechanisms.

Source
Pine
/*backtest
start: 2024-01-27 00:00:00
end: 2024-02-26 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
strategy("Custom Keltner CCI Strategy with Trend Filter", overlay=true )
// Input Parameters for allowing long and short trades
allowLong = input(true, title="Allow Long Trades")
Strategy parameters
Strategy parameters
Allow Long Trades
Allow Short Trades
MA Type
Trend Filter Method
MA Length
Keltner Channels Length
Keltner Channels Multiplier
CCI Length
CCI Overbought Level
CCI Oversold Level
RSI Period
RSI Overbought Level
RSI Oversold Level
Volume Multiplier
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)