Join today
Strategies / Breakout / Lift Up Down

Lift Up Down

A long triggers when the close crosses above the previous day's high while price is above the 14-period SMA, and a short when it crosses below the previous day's low under the 9-period SMA. Longs are blocked on Fridays and shorts only run on Mondays and Tuesdays. Each side can trade at most 2 times a day.

BreakoutLong & shortSwingGold4 hours
1.14Profit factor
21,810Net profit EUR
39.52%Win rate
1,326Trades
-12,137Max drawdown
16.45Avg trade

Best run of 8. Gold, 4 hours, spread 0.6, from run pf:2026-09-24-GOLD-4h.tsv:1.

Entry rules, long

  1. Members only
  2. Close is above the 14-period SMA
  3. Fewer than 2 longs today
  4. Not a Friday

Entry rules, short

  1. Members only
  2. Close is below the 9-period SMA
  3. Fewer than 2 shorts today
  4. Monday or Tuesday only

Exit rules

  1. Members only
  2. Shorts: stop loss 90 points, target 30 points

Test conditions

PeriodUp to 2026-09-25
InstrumentGold, 4 hours
Spread0.6 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-09-25

Parameters

startingCapital
Account size used for sizing
10000
riskFraction
Share of capital risked
0.01
sizingStopPoints
Stop distance assumed for sizing
10
longTrendPeriod
SMA longs must close above
14
shortTrendPeriod
SMA shorts must close below
9
maxTradesPerDay
Entries per side per day
2
noLongDay
No longs on this day (Friday)
5
shortDayLimit
Shorts only on days below this (Monday, Tuesday)
3
longStopPoints
Long stop, points
50
longTargetPoints
Long target, points
130
shortStopPoints
Short stop, points
90
shortTargetPoints
Short target, points
30

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest run4 hours1.14 1,32639.5221,810 EUR-12,137
Gold5 minn/a 41636.7821,452 EUR-9,071
Gold15 minn/a 1,06332.0820,631 EUR-8,123
Gold1 hourn/a 1,93435.5217,832 EUR-10,490
Gold30 minn/a 1,86933.3916,991 EUR-10,274
Gold10 minn/a 77631.7015,982 EUR-9,192
Gold3 minn/a 25843.0215,001 EUR-8,600
Gold2 minn/a 18243.9611,839 EUR-9,103

Charts

Results by run

Net profit against max drawdown

Net profitMax drawdown
0-20K-10K13K25KGold · 4 hoursGold · 5 minGold · 15 minGold · 1 hourGold · 30 minGold · 10 minGold · 3 minGold · 2 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.

// ============================================================
// Lift Up Down
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Breakout
// Direction: Long & short
// Timeframe tested: 4 hours
// ============================================================

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

// --- Parameters ---
startingCapital = 10000   // account size used for sizing
riskFraction = 0.01       // share of capital risked per trade
sizingStopPoints = 10     // stop distance assumed when sizing, in points
longTrendPeriod = 14      // SMA length that longs must close above
shortTrendPeriod = 9      // SMA length that shorts must close below
maxTradesPerDay = 2       // entries per side per day
noLongDay = 5             // no longs on this day of week (5 = Friday)
shortDayLimit = 3         // shorts only on days of week below this (Monday, Tuesday)
longStopPoints = 50       // stop on longs, in points
longTargetPoints = 130    // target on longs, in points
shortStopPoints = 90      // stop on shorts, in points
shortTargetPoints = 30    // target on shorts, in points

// --- Indicators ---
// Size is fixed once on the first bar from capital, risk and the sizing stop.
ONCE equity = startingCapital + StrategyProfit
ONCE maxRisk = round(equity * riskFraction)
ONCE positionSize = abs(round((maxRisk / sizingStopPoints) / PointValue) * PipSize)

// Daily trade counters reset on the first bar of the day.
IF IntradayBarIndex = 0 THEN
  longTradeCount = 0
  shortTradeCount = 0
ENDIF

longTrendMA = Average[longTrendPeriod](close)
shortTrendMA = Average[shortTrendPeriod](close)

24 more lines: the entry and exit rules.

Read this first

Known weaknesses

  • Only tested on Gold. The name suggests another market, but no other instrument is in the results.
  • The best run on Gold 4 hours made EUR 21,810 with a max drawdown of EUR 12,136.50 and a profit factor of 1.14.
  • Position size is computed once from a 10000 account, 0.01 risk and a 10-point sizing stop, so it depends on the instrument's point value.
  • Stop and target switch to whichever side traded last, which can change the exit on an open position.

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

Can Lift Up Down run in ProOrder?

Yes. The rewritten code has not been compile-checked, and the stats come from the earlier version, so demo test it first.

How did it do across Gold timeframes?

All seven Gold timeframes were profitable. The 4 hour run made the most, EUR 21,810 over 1,326 trades, and 5 minutes was close at EUR 21,452.

How is position size set?

Size is calculated from a starting capital of 10000 and a 0.01 risk fraction over a 10-point stop. The best run's max drawdown was EUR 12,136.50, so check what size your broker's point value gives you.

Why the weekday rules?

Longs skip Fridays and shorts only trade Monday and Tuesday. These filters come from the tested version and cut out days that did worse for each side.

Related

Strategies like this one

Bollinger Squeeze

Uses the same indicator.

14.30 PF · 86 trades

Triple Band Market Model

Best run on the same market, Gold.

2.27 PF · 203 trades

SMA Cross 10/30

A similar profit factor.

1.14 PF · 2,495 trades

Curious which day-breakout ideas make it into 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