Skip to main content

KAMA Strategy Analysis

Strategy Number: #185 (185th of 465 strategies)
Strategy Type: Trend Following / Adaptive Moving Average
Timeframe: 5 Minutes (5m)


I. Strategy Overview

KAMA (Kaufman Adaptive Moving Average) is a quantitative trading strategy based on the Kaufman Adaptive Moving Average. KAMA's uniqueness lies in its ability to automatically adjust smoothing coefficients based on market volatility — following price closely in trending markets while filtering noise in ranging markets.

Core Features

FeatureDescription
Entry ConditionKAMA golden cross/slope + optional CCI/RSI confirmation
Exit ConditionKAMA death cross/slope reversal
ProtectionTrailing stop + dynamic take-profit
Timeframe5 Minutes
DependenciesTA-Lib

II. Strategy Configuration Analysis

2.1 Basic Risk Parameters

# Optimized parameters (based on 60-day Kraken 20 BTC pairs)
buy_params = {
'cci-enabled': True,
'cci-limit': 198,
'cci-period': 18,
'kama-long-period': 46,
'kama-short-period': 11,
'kama-trigger': 'cross',
'rsi-enabled': False,
'rsi-limit': 72,
'rsi-period': 5
}

sell_params = {
'sell-cci-enabled': False,
'sell-cci-limit': -144,
'sell-cci-period': 18,
'sell-kama-long-period': 41,
'sell-kama-short-period': 5,
'sell-kama-trigger': 'cross',
'sell-rsi-enabled': False,
'sell-rsi-limit': 69,
'sell-rsi-period': 12
}

minimal_roi = {
"0": 0.11599,
"18": 0.03112,
"34": 0.01895,
"131": 0
}

stoploss = -0.32982

2.2 Trailing Stop

trailing_stop = True
trailing_stop_positive = 0.28596
trailing_stop_positive_offset = 0.29771
trailing_only_offset_is_reached = True

III. Entry Conditions Details

3.1 Trigger Methods

# Method 1: KAMA Golden Cross (default)
Condition: KAMA short-term > KAMA long-term

# Method 2: KAMA Slope
Condition: KAMA long-term slope > 1

3.2 Auxiliary Conditions (Optional)

# CCI Confirmation
Condition: CCI > 198 (enabled for buy)

# RSI Confirmation
Condition: RSI > 72 (enabled for buy)

IV. Exit Conditions Details

4.1 Exit Triggers

# KAMA Death Cross
Condition: KAMA short-term < KAMA long-term

# OR Slope Reversal
Condition: KAMA long-term slope < 1

V. Technical Indicator System

IndicatorDescriptionPurpose
KAMAKaufman Adaptive Moving AverageTrend following, volatility-adaptive
CCICommodity Channel IndexMomentum confirmation (optional)
RSIRelative Strength IndexOverbought/oversold (optional)

VI. Risk Management

6.1 Take-Profit Strategy (ROI Table)

TimeMinimum Profit
0 minutes11.6%
18 minutes3.1%
34 minutes1.9%
After 131 minutes0%

6.2 Stop-Loss Strategy

  • Hard stop: -32.98%
  • Trailing stop: After profit exceeds 29.8%, a 28.6% pullback triggers exit

VII. Strategy Pros & Cons

✅ Pros

  1. Adaptive: KAMA automatically adjusts to market volatility
  2. Dual Trigger: Supports both crossover and slope methods
  3. Optimized Parameters: Default parameters are backtested and optimized
  4. Flexible Configuration: CCI/RSI can be independently toggled on/off

⚠️ Cons

  1. Complex: Multiple parameters require tuning
  2. Lagging: KAMA itself has some lag
  3. Wide Stop-Loss: -33% is a large stop

VIII. Applicable Scenarios

Market EnvironmentPerformance
Trending Up⭐⭐⭐⭐⭐
Trending Down⭐⭐⭐⭐⭐
Ranging Upward⭐⭐⭐
Sideways Ranging⭐⭐

IX. Parameter Optimization

9.1 Key Parameters

ParameterDefault ValueOptimization Suggestion
kama-short-period115-20
kama-long-period4620-100
kama-triggercrosscross/slope
cci-limit198100-300

X. Live Trading Notes

10.1 Parameter Source

Default parameters are optimized under:

  • Platform: Kraken
  • Trading Pairs: 20 BTC pairs
  • Data: 60 days of historical data
  • Optimization Function: SharpeHyperOptLoss

10.2 Usage Suggestions

  • It is recommended to use default parameters directly
  • If adjustment is needed, validate on paper trading first

XI. Summary

KAMA is a mature, adaptive trend-following strategy. Its core advantage is that the KAMA indicator automatically adjusts based on market volatility — following price in trending markets while filtering noise in ranging markets. Default parameters are optimized and ready to use. Suitable for medium-to-short-term traders.