Join waitlist
Strategies / Trend / Ichimoku MACD Trailing Stop Long

Ichimoku MACD Trailing Stop Long

Buys when the Tenkan line is above the Kijun line, price is above the Ichimoku cloud, and the MACD line crosses above its signal line. Holds with a 3% trailing stop and no other exit.

TrendLong onlySwingSilver4 hours
18.64Profit factor
579,152Net profit USD
41.78%Win rate
213Trades
-7,529Max drawdown
2,719Avg trade

Best run of 63. Silver, 4 hours, spread 2, from run pf:2026-10-13-SILVER-4h.tsv:1.

Entry rules, long

  1. The Tenkan line (9-bar midpoint) is above the Kijun line (26-bar midpoint).
  2. The close is above the close from 25 bars earlier and above both cloud spans calculated 25 bars earlier.
  3. Signals are only checked after 90 bars, and only when no position is open.

Exit rules

  1. A 3% trailing stop closes the long at market, trailing the highest price reached since entry.

Test conditions

PeriodUp to 2026-10-13
InstrumentSilver, 4 hours
Spread2 points
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-10-13

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
SilverBest run4 hours18.64 21341.78579,152 USD-7,529
Silver1 hour7.11 52836.74570,321 USD-15,596
GoldDaily3.45 11447.372,687 EUR-186
Gold4 hours2.23 14945.643,140 EUR-478
Gold1 hour2.09 28147.334,592 EUR-611
Gold30 min1.66 28339.933,814 EUR-609
EUR/USD3 minn/a 3145.16159,810 USD-29,756
Silver3 minn/a 21042.8635,929 USD-11,333
Nikkei 22530 minn/a 38139.9029,646 USD-8,359
Silver5 minn/a 26041.9224,619 USD-17,865
Silver2 minn/a 21139.8121,877 USD-21,612
Nikkei 22515 minn/a 24740.4920,414 USD-11,953
Silver15 minn/a 42537.1819,924 USD-13,922
Nikkei 22510 minn/a 19541.0319,503 USD-10,128
Nikkei 2255 minn/a 13643.3818,683 USD-15,953
Silver30 minn/a 59736.6817,683 USD-11,751
Dow Jones5 minn/a 4250.0017,439 EUR-5,918
Dow Jones15 minn/a 13342.1116,613 EUR-7,758
Dow Jones10 minn/a 10042.0013,932 EUR-12,377
Nikkei 2251 minn/a 4744.6813,556 USD-13,214
Nikkei 2252 minn/a 8643.0213,290 USD-12,236
Nasdaq 1001 hourn/a 32241.3012,967 EUR-5,247
Dow Jones30 minn/a 10942.2012,621 EUR-9,150
Nasdaq 10010 minn/a 19042.1112,321 EUR-4,941
Nikkei 2251 hourn/a 27241.5411,292 USD-9,432
Nasdaq 10030 minn/a 33743.0311,176 EUR-5,598
Nasdaq 10015 minn/a 27040.749,779 EUR-5,486
DAX 4015 minn/a 19942.219,322 EUR-4,119
Dow Jones1 hourn/a 8944.948,654 EUR-7,167
DAX 4030 minn/a 33138.377,814 EUR-5,670
Nasdaq 1005 minn/a 9339.787,768 EUR-5,296
DAX 4010 minn/a 12941.867,169 EUR-4,083
Nasdaq 1001 minn/a 1936.846,621 EUR-3,947
Nasdaq 1002 minn/a 4032.505,973 EUR-4,150
DAX 405 minn/a 6142.625,497 EUR-4,581
US Crude Oil1 hourn/a 39038.215,477 EUR-2,797
Dow Jones1 minn/a 862.505,138 EUR-4,123
Brent Crude10 minn/a 38341.254,254 EUR-4,069
SilverDailyn/a 9143.963,972 USD-1,863
Brent Crude1 hourn/a 31240.383,849 EUR-2,796
FTSE 10010 minn/a 7550.673,762 EUR-1,005
Brent Crude3 minn/a 20542.933,383 EUR-3,355
Brent Crude4 hoursn/a 13638.243,314 EUR-1,739
Gold5 minn/a 9147.253,115 EUR-1,085
Gold15 minn/a 16345.403,109 EUR-1,517
FTSE 10015 minn/a 14046.433,023 EUR-1,543
Brent Crude5 minn/a 24040.422,963 EUR-2,853
FTSE 1005 minn/a 3148.392,801 EUR-1,056
S&P 50030 minn/a 25138.652,717 EUR-1,599
Brent CrudeDailyn/a 6142.622,658 EUR-2,049
S&P 5005 minn/a 5040.002,648 EUR-973
Gold10 minn/a 13644.122,397 EUR-1,322
DAX 401 minn/a 1457.142,371 EUR-1,758
S&P 50010 minn/a 12142.152,270 EUR-1,826
FTSE 1003 minn/a 2147.622,167 EUR-1,000
S&P 5001 hourn/a 26038.851,865 EUR-1,380
Gold3 minn/a 8239.021,837 EUR-1,271
S&P 5004 hoursn/a 13840.581,708 EUR-637
S&P 50015 minn/a 18338.801,568 EUR-1,261
S&P 5003 minn/a 3441.181,392 EUR-922
FTSE 1002 minn/a 1457.141,346 EUR-968
S&P 5001 minn/a 757.141,201 EUR-435
S&P 500Dailyn/a 15036.67671 EUR-648

Charts

Results by run

Top 10 of 63 runs. The full list is in the table above.

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// Ichimoku MACD Trailing Stop Long
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 4 hours
// ==============================================================

DEFPARAM CumulateOrders = false

tenkan = (highest[9](high) + lowest[9](low)) / 2
kijun = (highest[26](high) + lowest[26](low)) / 2
spana = (tenkan + kijun) / 2
spanb = (highest[52](high) + lowest[52](low)) / 2
sshigh = MAX(spana[25], spanb[25])
myMacd = ExponentialAverage[12](close) - ExponentialAverage[26](close)
sig = ExponentialAverage[9](myMacd)

10 more lines: the entry and exit rules.

Setup

How to load it

  1. Copy the code with the copy button on 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.

Indicators used

IchimokuMACDEMA
Read this firstKnown weaknesses2 points
  • Results include the spread only. Commissions and overnight financing are not included.
  • The code is published as it was backtested and has not been compiled again since.

Questions

About this strategy

Can I run Ichimoku MACD Trailing Stop Long in ProOrder?

Yes. The code is ProBuilder and runs as an automated ProOrder system. Backtest it on your own account with your own spread and position size before trading it live.

Which markets was it tested on?

It was tested on 63 market and timeframe combinations. The best run was Silver, 4 hours, with a profit factor of 18.64 over 213 trades.

How large was the drawdown?

The best run had a maximum drawdown of 7,528 USD at the tested position size, against a net result of 579,152 USD.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Slow MACD Slope

Uses the same indicator.

6.80 PF · 7,305 trades

SMA Crossover With RSI Exit

Best run on the same market, Silver.

2.13 PF · 8,999 trades

Ichimoku TK Cross Cloud Thickness

Also a trend strategy.

17.19 PF · 524 trades

Get the full rules, the complete code and the ProRealAlgos portfolio as a member.

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