Type/to search

Keltner Channel Trend Based Strategy

Cryptocurrency
Created: 2023-11-03 16:59:39
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy is based on three main indicators: trend indicator, Keltner Channel and DM indicator.

The trend indicator consists of SMA and EMA. Keltner Channel is used to determine the open and close price of candles. DM indicator is for judging the direction of long and short.

The entry signal is triggered when:

  1. EMA crosses over SMA, confirming uptrend
  2. Candle opens above the upper band and closes inside the channel
  3. DM indicator is above the benchmark

The strategy has two take profit levels and one stop loss level. Trailing stop can be used for optimizing profits.

Strategy Principles

Trend Identification

SMA and EMA crossovers are used to determine the trend direction. EMA (46) crossing over SMA (46) indicates an upward trend.

Keltner Channel

The channel has three lines: middle, upper and lower. The middle line is SMA of close price with length of 81. The upper and lower bands are placed at a multiple of true range above and below the middle line. Here we use 2.5 times of true range.

Keltner Channel shows support and resistance levels. Price movements in relation to the channel are analyzed.

DM Indicator

DM indicator contains ADX, +DI and -DI. +DI measures uptrend strength while -DI measures downtrend strength. ADX shows the trend strength.

Here ADX (10), DI (19) are used. When +DI crosses above the benchmark (default 27), it signals strong uptrend and good for long entry.

Advantage Analysis

This strategy combines trend, channel and momentum indicators to effectively determine price actions and long/short direction. The advantages are:

  1. Trend identification is relatively accurate to avoid counter trend trades.

  2. Keltner Channel shows clear support and resistance levels.

  3. DM indicator measures long/short momentum to ensure direction.

  4. Strict entry rules help filter false breakouts.

  5. Take profit and stop loss points allow capturing profits.

Risk Analysis

There are also some risks to consider:

  1. Trend may reverse when EMA crosses below SMA, so exit timely.

  2. Channel can fail in strong trends, not strict support/resistance.

  3. DM may generate false signals, check price action.

  4. False breakout may trigger entry but quickly fallback, use reasonable stop loss.

  5. Take profit and stop loss need continuous optimization to adapt to changing market conditions.

Optimization Directions

Some ways to further optimize the strategy:

  1. Adjust parameters and test different trend identification methods.

  2. Optimize channel parameters to better fit true range.

  3. Test different DM parameters and find the optimal combination.

  4. Add more entry filters like volume.

  5. Try trailing stop loss for getting more profits.

  6. Test separately for different products to find best parameter sets.

Conclusion

The strategy integrates multiple indicators for determining trend, support/resistance and momentum, which allows effectively catching trends and controlling risks. But risks need to be noticed and parameters require optimization as market changes. Overall, this is a strategy with strong practicality.

Source
Pine
/*backtest
start: 2022-10-27 00:00:00
end: 2023-11-02 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//Original Idea by: Wunderbit Trading

//@version=4
strategy("Keltner Channel ETH/USDT 1H", overlay=true, initial_capital=1000,pyramiding = 0, currency="USD", default_qty_type=strategy.percent_of_equity, default_qty_value=100,  commission_type=strategy.commission.percent,commission_value=0.07)
Strategy parameters
Strategy parameters
Period
useTrueRange
length
mult
DI Length
DMI Benchmark
Backtest Start Year
Backtest Start Month
Backtest Start Day
Backtest Stop Year
Backtest Stop Month
Backtest Stop Day
Long Take Profit 1 %
Long Take Profit 1 Qty
Long Take Profit 2%
Long Take Profit 2 Qty
Long Stop Loss %
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)