Type/to search

Dynamic CCI Support and Resistance Strategy

Common strategy
Created: 2024-01-22 16:37:46
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This strategy uses the pivot points of the CCI indicator to calculate dynamic support and resistance levels, and combines trend judgment to find buy and sell signals. The strategy integrates the reversal characteristics of CCI and the trend tracking ability to capture reversal points in the medium-term trend for profit.

Strategy Principle

CCI indicator can show whether the market is too weak or too strong. The two extremes of 80 and -80 can be used to determine whether the market has entered an overbought or oversold state. This strategy utilizes this characteristic of CCI. By calculating the pivot points of the left and right 50 bars, the upper and lower pivot points are obtained. Then support and resistance lines are constructed dynamically by adding or subtracting a buffer on the basis of the pivot points.

A buy signal is generated when the close is higher than the open and lower than the upper support level. A sell signal is generated when the close is lower than the open and higher than the lower resistance level. In order to filter out trading signals against the main trend direction, the strategy also combines EMA and slope indicators to determine the current main trend direction. Long entry trades are only placed when the trend is determined as bullish. Short entry trades are only placed when the trend is determined as bearish.

The stop loss and take profit are calculated dynamically based on the ATR indicator, making the risk control of this strategy more reasonable.

Advantage Analysis

  1. Taking advantage of the reversal characteristic of CCI, entries are made near potential reversal points, increasing the probability of profit.
  2. Combining with trend judgment avoids trading against the trend and reduces losses.
  3. Dynamic stop loss and take profit settings make risk control more sensible.
  4. Customizable parameters such as CCI length, buffer size, etc. adapt to more market environments.

Risk Analysis

  1. CCI indicator tends to generate false signals, needing the filter from trend judgment.
  2. Reversals do not always succeed, with certain probability of loss risk.
  3. Improper parameter settings may lead to over-trading or missing opportunities.

Methods like parameter optimization, adjusting stop loss range, etc. can help reduce risks. Also, this strategy can be used as an auxiliary tool for other indicators, not having to completely rely on its signals.

Optimization Directions

  1. Optimize buffer size to adapt to markets of different volatility levels.
  2. Optimize ATR period parameters for more accurate dynamic stop loss and take profit.
  3. Test different CCI parameter settings.
  4. Test the effects of other types of trend judgment indicators.

Conclusion

This strategy integrates the long/short screening ability from CCI and the filter confirmation from trend judgment, possessing certain practical value. The dynamic stop loss and take profit also makes the risk controllable when applying the strategy in actual trading. Through parameter optimization and improvements, better results can be expected.

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

// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © AliSignals

Strategy parameters
Strategy parameters
cci length
right pivot
left pivot
buffer
trend matter?
show mid?
trend type
slow ma length
fast ma length
slope's length for trend detection
ksl
ktp
Time Frame of Last Period for Calculating max
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)