Join waitlist
Strategies / Trend / Supertrend SMA Filtered Order Block

Supertrend SMA Filtered Order Block

Takes Supertrend flips that agree with the 200-bar average, with a valid recent order block and a 0.8% stop loss and 1.6% target. Trades are skipped when RSI divergence, oversized bars or weak trend strength (ADX below 20) are present.

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 23. USD/JPY, 15 min, spread 1, from run pf:2026-10-10-USDJPY-15m.tsv:2.

Entry rules, long

  1. The close is above the 200-bar simple moving average.
  2. No bearish RSI divergence, where the close makes a new 5-bar high but RSI(14) does not.
  3. A valid bullish order block is in place, with the close within 1.5 times ATR(10) of its low.
  4. The bar range and body are each no more than 2 times ATR(10), and ADX(14) is at least 20.
  5. No position is open.

Entry rules, short

  1. The close is below the 200-bar simple moving average.
  2. No bullish RSI divergence, where the close makes a new 5-bar low but RSI(14) does not.
  3. A valid bearish order block is in place, with the close within 1.5 times ATR(10) of its high.
  4. The bar range and body are each no more than 2 times ATR(10), and ADX(14) is at least 20.
  5. No position is open.

Exit rules

  1. A profit target 1.6% from the entry price closes the trade.

Test conditions

PeriodUp to 2026-10-10
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-10

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.69390,050 USD-141,320
USD/JPY5 minn/a 12039.17229,930 USD-200,670
USD/JPY2 minn/a 4148.78216,050 USD-49,310
USD/JPY3 minn/a 7738.96145,210 USD-141,360
USD/JPYDailyn/a 4037.50117,760 USD-86,960
EUR/USD30 minn/a 29137.1127,389 USD-17,672
EUR/USDDailyn/a 3438.246,796 USD-6,341
DAX 405 minn/a 20039.504,903 EUR-1,753
Dow Jones1 hourn/a 7939.244,287 EUR-2,508
Brent Crude2 minn/a 29139.183,017 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,433 EUR-990
US Crude Oil2 minn/a 31535.241,084 EUR-800
FTSE 1002 minn/a 8639.531,082 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
Gold30 minn/a 42635.45666 EUR-360
Gold15 minn/a 32637.73652 EUR-471
S&P 5001 minn/a 5339.62480 EUR-420

Charts

Results by run

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

Net profitMax drawdown

The code

ProBuilder code, as tested

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

DEFPARAM CumulateOrders = false

ONCE ub = 0
ONCE lb = 0
ONCE st = 0
ONCE dir = 1
ONCE bullob = 0
ONCE bearob = 0
ONCE hasbull = 0
ONCE hasbear = 0

myAtr = AverageTrueRange[10](close)
ma = Average[200](close)
myRsi = RSI[14](close)
myAdx = ADX[14]

ubraw = MedianPrice + 3 * myAtr
lbraw = MedianPrice - 3 * myAtr
prevlb = lb
prevub = ub

72 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

SuperTrendATRSMARSIADX
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 SMA Filtered Order Block 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 23 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

Want strategies that are already part of a live portfolio? Join the ProRealAlgos waitlist.

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