Each day the system waits for price to move more than 15 points away from the day open, then trades in that direction as long as price is still inside the three day high and low range. It takes one trade per day, never on Sunday, with a 0.60% stop and a 0.40% target.
Best run of 4. Dow Jones, 3 min, spread 3, from run sweeps:2026-09-26-DOW30-3m-opt.tsv:2.
| Period | Up to 2026-09-26 |
| Instrument | Dow Jones, 3 minutes |
| Spread | 3 points |
| Contracts | 1 |
| Starting capital | 1,000,000 |
| Costs | Spread only. Commissions and overnight financing are not included. |
| Bars | Up to 200,000 bars, fewer where the instrument has less history |
| Last tested | 2026-09-26 |
| positionSize Contracts per trade | 1 |
| useHighLowFilter 1 = only trade inside the last days' highs and lows | 1 |
| stopLossPct Protective stop, percent | 0.6 |
| takeProfitPct Profit target, percent | 0.4 |
| trailPct Trailing distance, percent of entry price | 0.35 |
| entryDistance Points beyond the day open that trigger an entry | 15 |
| forbiddenDay Day of week with no entries (0 = Sunday) | 0 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Dow JonesBest run | 3 min | n/a | 406 | 62.07 | 5,077 EUR | -3,271 |
| Nikkei 225 | 1 min | n/a | 140 | 67.86 | 5,630 USD | -1,706 |
| Dow Jones | 2 min | n/a | 271 | 63.84 | 5,578 EUR | -1,884 |
| Gold | 1 min | n/a | 111 | 69.37 | 378 EUR | -159 |
Charts
The code
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.
// ============================================================ // Day Open Straddle // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: 3 minutes // ============================================================ // --- Settings --- DEFPARAM CumulateOrders = false // --- Parameters --- positionSize = 1 // contracts per trade useHighLowFilter = 1 // 1 = only trade inside the last days' highs and lows stopLossPct = 0.60 // protective stop, percent of entry price takeProfitPct = 0.40 // profit target, percent of entry price trailPct = 0.35 // trailing distance, percent of entry price entryDistance = 15 // points beyond the day open that trigger an entry forbiddenDay = 0 // day of week with no entries (0 = Sunday) // --- Indicators --- // One trade per day at most, counters reset on the first bar of the session. IF IntradayBarIndex = 0 THEN longTradeCount = 0 shortTradeCount = 0 tradeCount = 0 ENDIF dayAllowed = DayOfWeek <> forbiddenDay // Evaluated before the entries on purpose, the counters update inside the entry blocks. longAllowed = CountOfLongShares < 1 AND longTradeCount < 1 AND tradeCount < 1 shortAllowed = CountOfShortShares < 1 AND shortTradeCount < 1 AND tradeCount < 1 IF Date <> Date[1] THEN dayOpen = open ENDIF // Lowest daily high and highest daily low over today and the two previous days. lowestDayHigh = Min(Min(DHigh(0), DHigh(1)), Min(DHigh(1), DHigh(2))) highestDayLow = Max(Max(DLow(0), DLow(1)), Max(DLow(1), DLow(2))) IF useHighLowFilter THEN longFilter = high < lowestDayHigh shortFilter = low > highestDayLow ELSE longFilter = high shortFilter = low ENDIF
51 more lines: the entry and exit rules.
Read this first
Questions
Yes, it trades 1 contract with the stop, target and one trade per day rule built in. The profit exit closes at market once the best close is 0.35% ahead, so it is not a resting stop.
The main run was Dow Jones 3 minutes. Nikkei 225 1 minute made USD 5,629.50, Dow Jones 2 minutes made EUR 5,577.50 and Gold 1 minute made EUR 378.10.
At 1 contract on Dow Jones 3 minutes the maximum drawdown was EUR 3,271.20. Keep enough on top of your broker margin to handle that.
The setup is about the first move away from the day open, which plays out within hours. Short charts catch the 15 point move close to when it happens.
Related
Copy trading on US indices is available to ProRealAlgos members as spots open.