Script_Algo - CCI Divergence Strategy🚀 A simple but effective strategy based on CCI divergence.
📊 The script is ready for automated trading via webhook on any crypto exchange that supports this functionality.
⏳ Recommended Use
The strategy can be effective on many fundamentally strong and highly liquid assets. It is recommended to use a timeframe of 1H or higher.
⚙️ How the Strategy Works
The script looks for divergence between the CCI line and the price:
📉 If the price updates a higher high, but CCI shows a lower high → this is a bearish signal.
📈 If the price updates a lower low, but CCI shows a higher low → this is a bullish signal.
🔄 When an opposite divergence appears, the script closes the current trade and opens a position in the other direction.
🛡️ To protect against deep losses, the strategy includes a stop loss based on ATR.
📊 For higher efficiency, the script also uses a trend filter based on EMA.
📈 Backtest Results
If you carefully check the backtest, you’ll see that on the DOTUSDT pair — a fairly conservative and reputable crypto asset — the strategy could potentially yield around +230% in 1.5 years.
Moreover, during a similar past period on the same asset, the strategy was also profitable.
On the 1-hour timeframe, the equity curve shows stable growth.
✅ Win rate: 50%+
✅ Profit factor: ~2
👉 Whether this is good or bad — judge for yourself, considering that during this time DOT price dropped by 50% (from $8 to $4).
⚡ The script does not repaint. I personally tested the strategy multiple times in TradingView’s backtest mode across different assets on the 1H timeframe.
Results may slightly differ due to slippage and sudden market moves.
🛠️ Settings
CCI Length – defines how sensitive the CCI line is to price changes.
Bars to look for divergence – defines how many bars back to check for highs/lows.
ATR period & multiplier – used for stop loss adjustment.
EMA trend filter – can be enabled and customized for length.
🎨 Visualization
📌 Signal markers for entries & exits are shown.
🟩 Light green background → when in a long position.
🟥 Light red background → when in a short position.
⬜ Light gray background → when no position is open.
⚠️ Disclaimer
Always remember: past performance does not guarantee future results.
The market constantly changes, so you must monitor conditions, backtest, and adjust settings for each asset.
💡 Advice:
Be aware of possible bugs in any algo trading strategy, even if well-tested.
No one knows what unexpected events may occur on the market tomorrow.
Trade only on high-liquidity assets to avoid excessive volatility, high slippage, wide spreads, and commissions.
📌 The author of this strategy does not encourage anyone to use this algorithm and is not responsible for any financial losses resulting from its application.
Any decision to use this strategy is made solely by TradingView users and crypto exchange account owners.
✍️ Final Notes
💡 If you have any ideas on how to improve this or my other strategies, feel free to let me know — I’ll try to implement them.
🐞 If you notice any bugs or inconsistencies in my algorithm, please write to me — I hope to fix them as soon as possible.
⚡ This is not the final version of the strategy.
I am constantly working on optimization and efficiency improvements, so follow me to not miss updates.
💰 Good luck and stable profits to everyone!
Startegy
Dollar cost averaging This is a testing startergy based on dollar cost averaging and sell on high points.
Keltner Channel - Trend Based StrategyThis strategy is based on 3 main indicators.
1st indicator is a trend indicator, which consists of SMA and EMA
2nd is Keltner Channel
3rd is DM indicator.
The conditions for the entry of this strategy are following:
First of all the assets need to be in an upward trend, this will occur when the EMA will cross SMA. The next condition for the entry is the opening and the closure of the candle. The open price of the candle should be in the upper part of the Keltner Channel and the close price should be above the Keltner channel. The third condition for the DM indicator is to be above a certain benchmakr. This benchmark can be set in the settings of the strategy.
The strategy has two potential Take Profit levels and single stop-loss levels. For the more efficient way you may try an use the trailing stop or extend the number of take-profit levels.
Volume Weighted EMAAn EMA using the Volume Oscillator to integrate volume fluctuations into the EMA calculations.
Especially useful for Crypto and Forex
RSI EMA CrossOver RameshThe RSI is one of the most popular technical indicators. The RSI measures the internal strength of the security. The RSI indicator oscillates between oversold and over bought levels, where a trader is advised to look for buying opportunities when the stock is in over sold region and selling opportunities when the stock is in over bought region.
The RSI with EMA strategy signals a trade when EMA of 7 period RSI crosses over the EMA of a 14 period RSI.
Buy: when 10 EMA of 7 period RSI crossing up 10 EMA of a 14 period RSI
Sell: when 10 EMA of 7 period RSI crossing down 10 EMA of a 14 period RSI
EMA = Exponential Moving Average
Crossover = Simple crossover between current RSI values and its 10 day EMA