Strategies

Lambert CCI Robot for MT5: +111% on USDJPY in 72 Months

Anton Rozhnovsky · November 11, 2026 · 12 min read
Lambert CCI Robot for MT5: +111% on USDJPY in 72 Months

The CCI is one of the most popular indicators in MetaTrader. Donald Lambert created it in 1980, and his rule is this: if the CCI rises above +100, a trend has started and you buy; if it drops back down, you exit. I tested the classic version on seven markets over 72 months, and six of them came out negative or close to zero. But on USDJPY the idea worked, with a smooth balance curve and positive results in two years the optimizer never saw. Below you’ll find the USDJPY H4 robot, its results, real trades on the chart, and how to download it for free.

📊 Download the Lambert CCI robot for free

Lambert CCI robot for MetaTrader 5: an honest 72-month test on USDJPY H4

What the robot does

Donald Lambert described the Commodity Channel Index in Commodities magazine in 1980. The indicator shows how far the typical price of the candle, (high + low + close) / 3, has moved away from its 20-candle average, measured in units of mean deviation. Lambert chose the coefficient so that the CCI would spend most of its time between −100 and +100. He considered a move above +100 to be the start of a new trend. The robot keeps Lambert’s parameters, period 20 and level +100, and removes from the rules what got in the way in the historical data:

43% of trades close in profit, and the gain at take profit is almost double the loss at the stop: the result depends on that.

What it looks like on the chart

Below are two real trades by the robot in the USDJPY H4 test. Both come from the forward period, which the optimizer did not see: one winner and one loser. At the bottom is the CCI 20 with the ±100 levels; the yellow circle marks the +100 crossover. The yellow line on the price chart is the EMA 50, the trend filter.

Example of a winning trade by the Lambert CCI robot: USDJPY H4, CCI above +100, exit at take profit

Winning trade. On July 11, 2025, USDJPY was above the EMA 50, and the CCI, after a pullback, rose above +100 again. The robot bought at 147.081, with a stop at 146.417 and a take profit at 148.410, twice as far away as the stop. Four days later, on July 15, the pair reached the take profit: +$340.

Example of a losing trade by the Lambert CCI robot: USDJPY H4, exit at stop

Losing trade. On October 27, 2025, the picture was similar: price above the EMA 50 and the CCI crossed +100. The robot bought at 153.126, with a stop at 152.566. But the momentum did not continue: the next day the price reversed and hit the stop: −$187, exactly 1% of the balance at that moment. The loss is limited in advance, and every trade that reaches the take profit covers almost two stops like this one.

To do it by hand: open USDJPY H4 and add the standard CCI indicator with period 20 and an EMA 50. Buy at the open of the next candle if the CCI closed above +100 (and was below it on the previous candle) and the candle closed above the EMA 50. The stop goes at 1.5 ATR(14) from the entry; the take profit at twice that distance. If neither the stop nor the take profit is triggered and the CCI drops below zero, close manually. Don’t open shorts.

Robot results: training and forward

To avoid fooling myself with overfitting, I split the historical data into two parts. The parameters are chosen using only 10/2020–09/2024. Then the robot takes its exam on 10/2024–09/2026, data the optimizer did not see. The test: MetaTrader 5 strategy tester, a FxPro demo account with its quotes, spreads, commissions and swaps, $10,000 deposit, 1:500 leverage, “1 minute OHLC” mode, 72 months.

Lambert CCI robot on USDJPY H4: return in training and in the forward test 10/2024–09/2026
Period (USDJPY H4) Return Profit factor Max. drawdown Trades
Training, 10/2020–09/2024 +73.1% 1.66 9.8% 186
Forward, 10/2024–09/2026 +22.1% 1.46 10.7% 97
All 72 months, 1% risk +110.7% 1.57 10.7% 283
All 72 months, 2% risk +326.2% 1.53 20.6% 283
Longest period without a new high ≈ 7 months (12/2024–07/2025)

The key part here is the forward test, and I’ll be frank with you: on unseen data the robot earns more slowly than in training. The profit factor dropped from 1.66 to 1.46, and the return from about 18% to 11% per year. But it stayed positive, the drawdown did not grow, and it isn’t just one lucky combination of numbers: of 157 profitable parameter sets in training, 121 also made money in the forward test. Neighboring parameters also stay positive: CCI 30 with the same +100 level returned +23.1% in the forward test with a profit factor of 1.79, and CCI 25 with level +100 and a wide stop returned +7.7% with a profit factor of 1.51. In the test the robot finished in positive territory every full year from 2021 to 2025, and 2026 through September as well. Speaking plainly about the money: commissions took $787 over 72 months, and the swaps on USDJPY longs at FxPro were positive in the test and added $1,236. If the interest rate differential between the United States and Japan narrows, that extra will disappear.

MetaTrader 5 tester report: Lambert CCI robot on USDJPY H4

📊 Download the robot and the parameters for USDJPY H4

Why the “internet” CCI doesn’t work and this robot does

First I ran the strategy exactly as Lambert describes it: daily chart, CCI 20, buy above +100 and exit when it returns below +100, sell below −100 and exit when it returns above −100, and a protective stop of 2 ATR. Seven markets, 72 months:

Donald Lambert's CCI in its classic form: D1, 7 instruments, 72 months
Instrument (D1) Result Profit factor Max. drawdown Trades
BITCOIN +28.2% 1.57 6.9% 189
GOLD +5.2% 1.25 10.7% 80
WTI (oil) −4.7% 0.77 8.4% 79
EURUSD −7.1% 0.79 10.8% 150
USDJPY −9.3% 0.77 12.3% 156
USDCHF −9.8% 0.73 11.6% 144
GBPUSD −14.4% 0.61 16.5% 168

Five markets out of seven finish in negative territory, and even USDJPY, where the robot works, lost 9.3% with the classic version. There are three reasons:

The robot that works differs in exactly these points: an exit at zero instead of +100 and a take profit of two stops, so the trade has room to win; longs only above the EMA 50, with no trades against the trend; H4 instead of D1, for more signals. For comparison: Lambert’s classic version on the same USDJPY H4 returned just +4.7% in 72 months with a 28.2% drawdown, and lost 7.6% in the forward test. The robot is tuned only for USDJPY H4, and I don’t advise moving it to other markets without your own testing.

The risks, plainly

Where to run it

The robot works on MetaTrader 5 with any broker that offers USDJPY. My test was done at FxPro. The other brokers in my ranking also work: RoboForex and Tickmill. Before putting the robot on an account, run it in your broker’s tester: it takes an afternoon and shows you how it behaves with your quotes, spreads and swaps. For it to run continuously, keep the platform on a VPS: the robot checks the signal at the close of each H4 candle, and if the platform is off, the signal is missed.

Download the Lambert CCI robot for free

The robot is free for clients of the brokers in my ranking:

  1. Open a MetaTrader 5 account with one of the brokers above (or use the one you already have).
  2. Go to the Telegram bot with the button and send your account number.
  3. After verification, the bot sends you the file: the robot, the parameters for USDJPY H4, Lambert’s classic parameters for your own experiments, and the instructions.

📊 Download the robot for free on Telegram

My conclusion

Lambert’s CCI in its classic form is a rule that exits the trade too early and trades against the trend: on the daily chart, five markets out of seven ended negative over six years. If you keep Lambert’s parameters, CCI 20 and level +100, but trade USDJPY on H4, buy only above the EMA 50, use a take profit of two stops and exit at zero, you get a robot that doubled the deposit in 72 months with a 10.7% drawdown and stayed positive in two unseen years. It’s not the fastest robot in the section: in the forward test it earns more slowly than in training, but its curve is one of the smoothest. Protect your deposit: start with 0.5–1% risk.

Today I also analyzed the Awesome Oscillator, a robot for gold, faster but with deeper drawdowns. On USDJPY, the Williams fractals, the EMA crossover, the previous day breakout, Raschke’s “Holy Grail” and the Supertrend also passed the test. Other oscillators in the section: Connors’ RSI-2 and MACD + EMA 200.

Why 72 months?

The market changes fundamentally every 3–5 years: the participants and the volatility change, and trends give way to ranges. That’s why I don’t run 10–20 year tests: they blend different markets into a single average figure. USDJPY is a good example. Since 2021 the pair has risen because of the interest rate differential between the United States and Japan, and the CCI breakouts to the upside kept reaching their targets. A 10–20 year test would mix this market with very different yen eras. You have to choose a strategy for the current market and change it when the market changes, and that applies to this robot too: if USDJPY enters a long decline, you need to stop it.

That’s why I built my app “Find Your Strategy”, in the browser or in Telegram. There you can test any idea on up to 72 months of historical data, and every 2 weeks the app automatically runs tens of thousands of strategies and shows you the ones that work over the last 6, 12 and 36 months. It doesn’t promise profits: it helps you notice in time that the market has changed.

Backtest results do not guarantee future results.

Sources

Where to trade

These are the brokers and exchanges I use that work with clients from Latin America. Always check that the service is available in your country and start small.

Where I trade and what I recommend
Forex & CFD brokers
1
FxPro
A broker with a history going back to 2006 and one of the best-known names in the market. Fast execution and many platforms.
MT4MT5cTraderFxPro App
Open account
2
RoboForex
Low minimum deposit and many account types. A good option to start with little capital.
MT4MT5R StocksTraderCopyFX
Open account
3
Tickmill
Low spreads and competitive commissions. Built for people who trade often and count every pip.
MT4MT5Low spreads
Open account
Crypto exchanges
1
Bybit
One of the largest crypto derivatives exchanges. Futures, spot and copy trading in one account.
FuturesSpotCopy trading
Sign up
2
BingX
A very strong exchange for copy trading: you can follow traders and see their results.
Copy tradingFuturesSpot
Sign up
3
KuCoin
Hundreds of cryptocurrencies and plenty of altcoins. Spot, futures and trading bots in one account.
SpotFuturesTrading bots
Sign up
These are affiliate links: if you open an account, I may receive a commission at no cost to you. Trading CFDs, Forex and leveraged crypto carries a high risk of losing money. Check that the service is available in your country and only trade with money you can afford to lose.
Want my 4 indicators for MT5 free for 30 days? Open an account with a trusted broker, send the number to the Telegram bot and get them. No deposit.

Risk warning: CFDs, Forex and crypto derivatives carry a high risk of losing money due to leverage. This article is not investment advice.

Anton Rozhnovsky
Anton Rozhnovsky

Trader for 14 years. He has automated and tested more than 2,000 strategies in trading robots and develops his own indicators for MetaTrader 5.

← PreviousAwesome Oscillator Robot for MT5: +153% on Gold in 72 Months

Keep reading

Ichimoku Strategy: 72-Month Test and Free MT5 Robot
Strategies

Ichimoku Strategy: 72-Month Test and Free MT5 Robot

I tested Ichimoku over 72 months on MT5: half the markets ended at a loss; the version with a Kijun exit passed the forward test on bitcoin D1. Free robot.

MT5 Envelopes Robot: +30% on EURUSD in 72 Months, 6% Drawdown
Strategies

MT5 Envelopes Robot: +30% on EURUSD in 72 Months, 6% Drawdown

Envelopes robot for MT5: +30% on EURUSD H4 over 72 months with a 6% drawdown, positive every year and a forward profit factor of 1.92.

Grid and Martingale: A 72-Month Test and Which MT5 Robot to Use
Strategies

Grid and Martingale: A 72-Month Test and Which MT5 Robot to Use

I tested a martingale grid over 72 months on MT5: it blew up all 7 accounts within 11 weeks. Here's why, and which robots with stops to use instead.