Join waitlist
Strategies / Trend / SAR Flip With SMA Filter

SAR Flip With SMA Filter

Buys 1 contract when the Parabolic SAR flips below price after a candle pattern, with the close above the 60 period SMA. Sells the long on the mirror flip when the close is below the 60 period SMA.

TrendLong onlySwingNasdaq 1001 hour
3.33Profit factor
24,319Net profit EUR
56.56%Win rate
122Trades
-4,269Max drawdown
199Avg trade

Best run of 53. Nasdaq 100, 1 hour, spread 3, from run pf:2026-10-04-NAS100-1h.tsv:8.

Entry rules, long

  1. One of the 2 prior bars was an up candle, with its close above its open.
  2. The current bar is a down candle, with its open above its close.
  3. The close is above the 60 period SMA.

Exit rules

  1. One of the 2 prior bars was a down candle, with its open above its close.
  2. The current bar is an up candle, with its close above its open.
  3. The close is below the 60 period SMA.

Test conditions

PeriodUp to 2026-10-04
InstrumentNasdaq 100, 1 hour
Spread3 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-04

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
Nasdaq 100Best run1 hour3.33 12256.5624,319 EUR-4,269
Nasdaq 10030 min2.04 17962.5718,928 EUR-4,275
DAX 401 hour1.92 11747.0116,587 EUR-3,002
S&P 50030 min1.91 19354.924,415 EUR-836
Gold15 min1.85 24449.592,456 EUR-537
S&P 50015 min1.67 20250.003,843 EUR-691
Nasdaq 10015 min1.57 22148.8715,585 EUR-3,591
USD/JPY4 hoursn/a 3638.89299,120 USD-288,140
USD/JPY3 minn/a 24346.91160,010 USD-93,740
EUR/USD1 hourn/a 20844.7146,547 USD-29,410
Dow JonesDailyn/a 1566.6740,801 EUR-7,961
Nikkei 225Dailyn/a 1553.3336,071 USD-28,387
Dow Jones30 minn/a 9158.2432,534 EUR-4,585
Nikkei 22515 minn/a 20050.0030,111 USD-7,841
Nikkei 22530 minn/a 19448.9728,740 USD-12,348
Nikkei 22510 minn/a 20947.8528,517 USD-9,940
Silver10 minn/a 26943.1227,312 USD-10,354
Nikkei 2254 hoursn/a 3243.7524,542 USD-13,472
Dow Jones4 hoursn/a 1172.7320,218 EUR-5,500
DAX 40Dailyn/a 1573.3318,016 EUR-3,843
Nasdaq 100Dailyn/a 1471.4317,911 EUR-6,159
Nasdaq 1004 hoursn/a 2979.3116,439 EUR-3,074
Dow Jones15 minn/a 17543.4315,503 EUR-7,960
DAX 404 hoursn/a 3557.1414,369 EUR-4,480
Dow Jones1 hourn/a 4151.2214,112 EUR-6,069
Nikkei 2251 hourn/a 9747.4213,906 USD-11,048
DAX 4015 minn/a 22948.9110,521 EUR-4,261
US Crude Oil4 hoursn/a 2166.679,616 EUR-5,353
FTSE 100Dailyn/a 1877.787,866 EUR-2,242
US Crude Oil3 minn/a 22748.467,540 EUR-2,730
Brent Crude4 hoursn/a 2060.006,986 EUR-4,797
DAX 405 minn/a 24050.006,866 EUR-3,000
S&P 500Dailyn/a 1687.506,819 EUR-1,238
Nasdaq 10010 minn/a 23545.536,279 EUR-3,912
DAX 4030 minn/a 20747.346,078 EUR-4,234
Nasdaq 1002 minn/a 25245.246,013 EUR-1,807
Brent Crude2 minn/a 22748.905,789 EUR-3,052
DAX 4010 minn/a 23347.214,202 EUR-3,622
FTSE 10030 minn/a 21549.303,866 EUR-1,516
Nasdaq 1003 minn/a 27842.093,643 EUR-3,588
Nasdaq 1001 minn/a 26243.133,498 EUR-3,423
S&P 5004 hoursn/a 3560.003,066 EUR-1,325
Brent Crude5 minn/a 22747.582,997 EUR-2,817
S&P 50010 minn/a 22551.562,855 EUR-1,266
Gold1 hourn/a 12749.612,808 EUR-1,153
GoldDailyn/a 2441.672,689 EUR-773
S&P 5005 minn/a 24248.352,448 EUR-747
Gold4 hoursn/a 4057.502,430 EUR-962
Gold5 minn/a 23647.032,116 EUR-1,076
S&P 5001 hourn/a 12850.002,082 EUR-1,249
Gold10 minn/a 24644.721,704 EUR-1,168
Gold30 minn/a 20545.851,160 EUR-1,100
S&P 5002 minn/a 27848.20801 EUR-632

Charts

Results by run

Top 10 of 53 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

// ==============================================================
// SAR Flip With SMA Filter
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 1 hour
// ==============================================================

DEFPARAM CumulateOrders = false

sma = Average[60](close)
mySar = SAR[0.02, 0.02, 0.2]

27 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

Parabolic SARSMA
Longer historyRe-run on up to 1,000,000 barsNasdaq 100 · 1 hour · older data 352.60 EUR

Nasdaq 100 had no history beyond the standard run, so both runs used 114,000 bars.

Nasdaq 100 · 1 hour

Bars available114,000
Net, standard 200,000-bar run24,318.90 EUR
Net, long run24,671.50 EUR
Net on the older data alone352.60 EUR
Read this firstKnown weaknesses2 points
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.
  • Results include the spread only. Commissions and overnight financing are not included.

Questions

About this strategy

Can I run SAR Flip With SMA 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 53 market and timeframe combinations. The best run was Nasdaq 100, 1 hour, with a profit factor of 3.33 over 122 trades.

How large was the drawdown?

The best run had a maximum drawdown of 4,269 EUR at the tested position size, against a net result of 24,319 EUR.

Does it trade long, short or both?

It only takes long trades.

Related

Strategies like this one

Trend Surfer

Uses the same indicator.

1.04 PF · 10,813 trades

Volatility Spike Regression Long

Best run on the same market, Nasdaq 100.

1.22 PF · 1,850 trades

Renko MA Cross

Also a trend strategy.

3.34 PF · 144 trades

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

Copy trading on US indices is available to ProRealAlgos members as spots open.

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