Join today
Strategies / Trend / Dual MA Long Trend

Dual MA Long Trend: Buying Above Two Moving Averages

Dual MA Long Trend buys when the close is above both the 185-period and 16-period SMA, on weekdays only. Every trade has a fixed 67 point stop and 185 point target, and there are no shorts.

TrendLong onlySwingS&P 5001 hour
1.39Profit factor
4,193Net profit EUR
33.61%Win rate
241Trades
-856Max drawdown
17.40Avg trade

Best run of 31. S&P 500, 1 hour, spread 1, from run pf:2026-09-24-USA500-1h.tsv:3.

Entry rules, long

  1. Close is above 1000
  2. Members only
  3. Close is above the 16-period SMA
  4. The bar does not open on a Saturday or Sunday
  5. No long is open

Exit rules

  1. Stop loss 67 points
  2. Members only

Test conditions

PeriodUp to 2026-09-25
InstrumentS&P 500, 1 hour
Spread1 points
Contracts1
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-09-25

Parameters

positionSize
Contracts per trade
1
slowPeriod
Long trend average
185
fastPeriod
Short trend average
16
minPrice
Only trade above this price
1000
firstTradeDay
First trading weekday (Monday)
1
lastTradeDay
Last trading weekday (Friday)
5
stopLossPoints
Protective stop in points
67
takeProfitPoints
Profit target in points
185

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
S&P 500Best run1 hour1.39 24133.614,193 EUR-856
Silver30 minn/a 87129.8534,326 USD-16,196
Silver15 minn/a 72230.0630,714 USD-14,954
Silver4 hoursn/a 57830.6229,303 USD-10,272
SilverDailyn/a 40131.4223,648 USD-9,790
Silver1 hourn/a 86928.7722,621 USD-13,135
Silver10 minn/a 74028.7819,566 USD-16,134
Nasdaq 10030 minn/a 2,37828.8112,043 EUR-3,979
Nasdaq 10015 minn/a 2,78228.3610,922 EUR-5,032
Nasdaq 1001 hourn/a 2,03428.669,544 EUR-5,067
Nasdaq 1004 hoursn/a 1,43129.078,383 EUR-2,740
Nasdaq 100Dailyn/a 1,03629.447,380 EUR-1,851
DAX 405 minn/a 1,31428.395,233 EUR-2,752
S&P 500Dailyn/a 18034.443,493 EUR-972
Gold1 hourn/a 13236.363,252 EUR-979
Gold30 minn/a 16334.363,131 EUR-1,202
S&P 50030 minn/a 31330.673,043 EUR-1,190
Gold15 minn/a 13235.612,991 EUR-1,338
Gold4 hoursn/a 11236.612,786 EUR-919
Gold5 minn/a 11935.292,609 EUR-1,129
S&P 5004 hoursn/a 20231.682,554 EUR-895
GoldDailyn/a 10135.642,305 EUR-765
S&P 5005 minn/a 15632.052,147 EUR-1,141
Gold10 minn/a 13732.852,141 EUR-1,597
FTSE 10010 minn/a 34029.122,061 EUR-1,389
Gold3 minn/a 12032.501,788 EUR-1,122
FTSE 1005 minn/a 20629.611,548 EUR-1,421
FTSE 1003 minn/a 16330.061,377 EUR-1,152
S&P 5003 minn/a 11231.251,264 EUR-918
FTSE 1002 minn/a 11930.251,098 EUR-781
S&P 5002 minn/a 6631.82826 EUR-768

Charts

Results by run

Net profit against max drawdown

Net profitMax drawdown
0-20K-10K25K50KSilver · 30 minSilver · 15 minSilver · 4 hoursSilver · DailySilver · 1 hourSilver · 10 minNasdaq 100 · 30 minNasdaq 100 · 15 minNasdaq 100 · 1 hourNasdaq 100 · 4 hoursNasdaq 100 · DailyDAX 40 · 5 minS&P 500 · 1 hourS&P 500 · DailyGold · 1 hourGold · 30 min

The code

ProBuilder, rewritten to house standard

Every file in the library uses the same header, the same section order and the same variable names. The numbers above were produced by the original version before the rewrite, and the rewrite has not yet been compiled in ProRealTime.

// ============================================================
// Dual MA Long Trend
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Trend
// Direction: Long only
// Timeframe tested: 1 hour
// ============================================================

// --- Settings ---
DEFPARAM CumulateOrders = false

// --- Parameters ---
positionSize = 1          // contracts per trade
slowPeriod = 185          // long trend average
fastPeriod = 16           // short trend average
minPrice = 1000           // only trade when price is above this level
firstTradeDay = 1         // Monday
lastTradeDay = 5          // Friday, so no bars opening on the weekend
stopLossPoints = 67       // protective stop
takeProfitPoints = 185    // profit target

// --- Indicators ---
slowMA = Average[slowPeriod](close)
fastMA = Average[fastPeriod](close)
tradingDay = OpenDayOfWeek >= firstTradeDay AND OpenDayOfWeek <= lastTradeDay

13 more lines: the entry and exit rules.

Read this first

Known weaknesses

  • The win rate in the best run is 33.61%, so about two in three trades hit the stop.
  • Fixed point stops and targets do not adjust to each market. The same 67 and 185 points were used on Silver, Gold, indices and FTSE 100.
  • Silver runs show big swings, for example a 16,195.50 USD drawdown on the 30 minute chart.
  • Long only. It has no way to profit in a falling market, and the other markets in the table have no recorded profit factor.

Indicators used

SMA

How to load it

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

Questions

About this strategy

Does it work in ProOrder?

Yes. The stop and target are set at entry, so it runs unattended in ProOrder. The rewritten code has not been compile checked yet.

How did it do across markets?

All 30 runs in the table were profitable. The headline S&P 500 1 hour run made 4,193 EUR over 241 trades, and Silver on 30 minutes made 34,326 USD.

What risk comes with 1 contract?

With 1 contract and a 1 point spread, the S&P 500 1 hour run had a max drawdown of 856.46 EUR. Each loser is capped at 67 points.

Why the 1 hour chart for the headline?

On 1 hour bars the 185 SMA tracks the multi-week trend while the 16 SMA catches the recent push. That combination gave the best profit factor, 1.39.

Related

Strategies like this one

Bollinger Squeeze

Uses the same indicator.

14.30 PF · 86 trades

Candle Body Sum Intraday

Best run on the same market, S&P 500.

2.86 PF · 124 trades

EMA Cross 50/200

A similar profit factor.

1.39 PF · 697 trades

Trade trend systems alongside other members. Get on 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