Join waitlist
Strategies / Trend / Supertrend Order Block Trend Filter

Supertrend Order Block Trend Filter

This idea buys when a Supertrend turns up above the 200-period moving average and sells short when it turns down below it. Trades need trend strength and a nearby order block, and each has a fixed 0.8% stop and 1.6% target.

TrendLong & shortIntradayUSD/JPY15 min
1.57Profit factor
641,620Net profit USD
44.09%Win rate
186Trades
-110,180Max drawdown
3,450Avg trade

Best run of 24. USD/JPY, 15 min, spread 1, from run pf:2026-10-11-USDJPY-15m.tsv:1.

Entry rules, long

  1. The close is above the 200-period simple moving average.
  2. ADX(14) is at least 20.
  3. No bearish RSI divergence over the prior 5 bars, and a recent bullish order block lies within 1.5 times ATR of the close.
  4. The signal bar's range and body are each at most 2 times the 10-period ATR.

Entry rules, short

  1. The close is below the 200-period simple moving average.
  2. ADX(14) is at least 20.
  3. No bullish RSI divergence over the prior 5 bars, and a recent bearish order block lies within 1.5 times ATR of the close.
  4. The signal bar's range and body are each at most 2 times the 10-period ATR.

Exit rules

  1. A target 1.6% from entry closes the trade at the fixed level.
  2. New signals are ignored while a position is open, so exits are only the stop or target.

Test conditions

PeriodUp to 2026-10-11
InstrumentUSD/JPY, 15 minutes
Spread1 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-11

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest run15 min1.57 18644.09641,620 USD-110,180
USD/JPY10 minn/a 19439.69388,520 USD-141,320
USD/JPY5 minn/a 12039.17228,570 USD-200,670
USD/JPY2 minn/a 4148.78214,840 USD-49,310
USD/JPY3 minn/a 7639.47155,880 USD-129,460
USD/JPYDailyn/a 4037.50117,760 USD-86,960
EUR/USD30 minn/a 29236.9927,198 USD-17,672
EUR/USDDailyn/a 3438.246,794 USD-6,341
DAX 405 minn/a 19939.705,093 EUR-1,753
Dow Jones1 hourn/a 7939.244,287 EUR-2,508
Nasdaq 1001 minn/a 10639.623,808 EUR-3,581
Brent Crude2 minn/a 29139.183,014 EUR-1,145
FTSE 1001 hourn/a 27237.131,664 EUR-1,398
DAX 404 hoursn/a 11338.051,605 EUR-917
Gold5 minn/a 26841.791,426 EUR-1,003
US Crude Oil2 minn/a 31535.241,082 EUR-800
FTSE 1002 minn/a 8639.531,081 EUR-1,066
S&P 50030 minn/a 39036.67959 EUR-552
SilverDailyn/a 4124.39938 USD-671
Gold10 minn/a 30537.70859 EUR-456
FTSE 100Dailyn/a 3250.00811 EUR-163
S&P 5001 minn/a 5242.31695 EUR-420
Gold30 minn/a 42635.45666 EUR-360
Gold15 minn/a 32637.73641 EUR-471

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

// ==============================================================
// Supertrend Order Block Trend Filter
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long & short
// Timeframe tested: 15 minutes
// ==============================================================

DEFPARAM CumulateOrders = false

ONCE lband = 0
ONCE uband = 0
ONCE dir = 1
ONCE st = 0
ONCE bullob = 0
ONCE bearob = 0
ONCE hasbull = 0
ONCE hasbear = 0

myAtr = AverageTrueRange[10](close)

prevlband = lband
prevuband = uband
prevst = st
prevdir = dir
newl = MedianPrice - 3 * myAtr
newu = MedianPrice + 3 * myAtr

100 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

SuperTrendADXATRSMARSI
Longer historyRe-run on up to 1,000,000 barsUSD/JPY · 15 min · older data 123,510.00 USD

On the long run with 511,000 bars the net result was 765,130 USD, against 641,620 USD on the standard 200,000-bar run. The older data alone gave 123,510 USD.

USD/JPY · 15 min

Bars available511,000
Net, standard 200,000-bar run641,620.00 USD
Net, long run765,130.00 USD
Net on the older data alone123,510.00 USD
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 Supertrend Order Block Trend Filter 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 24 market and timeframe combinations. The best run was USD/JPY, 15 minutes, with a profit factor of 1.57 over 186 trades.

How large was the drawdown?

The best run had a maximum drawdown of 110,180 USD at the tested position size, against a net result of 641,620 USD.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

EMA 8 21 RSI Filtered Bracket

Best run on the same market, USD/JPY.

1.09 PF · 6,194 trades

EMA 5 32 Fixed Percent Bracket

Also a trend strategy.

1.57 PF · 557 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