Join today
Strategies / Trend / SuperTrend CCI

SuperTrend CCI Trend Strategy

It goes long when the close is above the SuperTrend (3, 10) and CCI(20) is above -100, and short when the low touches the SuperTrend with CCI below 100. Entries alternate between long and short. Exits come from the SuperTrend flip, a 42 point stop, or a 1760 profit target in account currency.

TrendLong & shortSwingGBP/USDDaily
1.72Profit factor
14,408Net profit USD
14.44%Win rate
561Trades
-3,343Max drawdown
25.68Avg trade

Best run of 5. GBP/USD, Daily, spread 1.5, from run pf:2026-09-24-GBPUSD-D.tsv:1.

Entry rules, long

  1. Members only
  2. CCI(20) is above -100
  3. No long is open and the previous entry was not a long

Entry rules, short

  1. Members only
  2. CCI(20) is below 100
  3. No short is open and the previous entry was not a short

Exit rules

  1. Members only
  2. Close a short when the close is above the SuperTrend
  3. Stop loss of 42 points
  4. Target of 1760 in account currency

Test conditions

PeriodUp to 2026-09-24
InstrumentGBP/USD, Daily
Spread1.5 points
Contracts1
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-09-24

Parameters

positionSize
Contracts per trade
1
superTrendMultiplier
SuperTrend ATR multiple
3
superTrendPeriod
SuperTrend ATR length
10
cciPeriod
CCI length
20
cciLongLevel
Longs need CCI above this
-100
cciShortLevel
Shorts need CCI below this
100
stopLossPoints
Protective stop in points
42
takeProfitMoney
Target in account currency
1760

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GBP/USDBest runDaily1.72 56114.4414,408 USD-3,343
EUR/USD1 hourn/a 6,12529.9951,778 USD-35,399
Silver4 hoursn/a 1,25230.3520,386 USD-8,402
GoldDailyn/a 56733.511,893 EUR-636
Gold4 hoursn/a 1,36934.261,709 EUR-807

Charts

Results by run

Net profit against max drawdown

Net profitMax drawdown
0-50K-25K50K100KEUR/USD · 1 hourSilver · 4 hoursGBP/USD · DailyGold · DailyGold · 4 hours

The code

ProBuilder, rewritten to house standard

Every file in the library uses the same header, the same section order and the same variable names. The numbers above were produced by the original version before the rewrite, and the rewrite has not yet been compiled in ProRealTime.

// ============================================================
// SuperTrend CCI
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: Daily
// ============================================================

// --- Settings ---
DEFPARAM CumulateOrders = false

// --- Parameters ---
positionSize = 1              // contracts per trade
superTrendMultiplier = 3      // SuperTrend ATR multiple
superTrendPeriod = 10         // SuperTrend ATR length
cciPeriod = 20                // CCI length
cciLongLevel = -100           // longs need CCI above this
cciShortLevel = 100           // shorts need CCI below this
stopLossPoints = 42           // protective stop in points
takeProfitMoney = 1760        // target in account currency

// --- Indicators ---
superTrendValue = Supertrend[superTrendMultiplier, superTrendPeriod]
touchesSuperTrend = low <= superTrendValue
aboveSuperTrend = close > superTrendValue
cciValue = CCI[cciPeriod](TypicalPrice)

// Alternation flags: after a long, the next entry must be a short, and vice versa
ONCE longTaken = 0
ONCE shortTaken = 0

36 more lines: the entry and exit rules.

Read this first

Known weaknesses

  • Only 14.44% of trades won in the best run, so long losing streaks are normal and results depend on rare big winners.
  • Stop is in points and target in account currency, so risk and reward vary a lot between instruments.
  • Only four other runs are listed and none has a recorded profit factor. EUR/USD 1 hour drew down USD 35,399.

Indicators used

SuperTrendCCI

How to load it

  1. Copy the code with the copy button above the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Questions

About this strategy

Can SuperTrend CCI run in ProOrder?

Yes. The order blocks are kept in the tested sequence because an exit and a new entry can fire on the same bar. The rewritten code was not compile-checked, so test it first.

How did it do on other markets?

EUR/USD 1 hour, Silver 4 hours and Gold on daily and 4 hours were all positive. EUR/USD 1 hour made USD 51,778 over 6,125 trades.

What drawdown came with 1 contract?

The GBP/USD daily best run had a max drawdown of USD 3,343.2 against USD 14,408.1 net profit over 561 trades.

Why daily bars?

The daily chart gave the best recorded result, and the SuperTrend (3, 10) flips less often there.

Related

Strategies like this one

Supertrend Counter Trend

Uses the same indicator.

3.47 PF · 1,444 trades

Breakout Failures

Best run on the same market, GBP/USD.

1.17 PF · 911 trades

RSI(2) Trend Filter

A similar profit factor.

1.73 PF · 254 trades

Trend systems with low win rates need a steady hand. Join the ProRealAlgos waitlist to see how we manage them.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs