Myth Busting E05 - ORB One-Candle Retest [PyneSys] — Strategy by PyneSys

By PyneSys

Performance Metrics

Description

Myth Busting E05 - ORB One-Candle Retest [PyneSys]This strategy trades an opening range breakout at the New York open on a 1-minute chart. The first five minutes set the range; after a candle closes outside it, the strategy waits for price to come back to the broken level, reject it, and then trades in the direction of the breakout with a 2R target. The idea comes from Scarface Trades' video. We wrote this script ourselves to test the rules with fixed definitions.How it works1. Opening range: the high and low of the five 1-minute candles from 9:30 to 9:34 New York time. A day with a missing range candle is skipped.2. Breakout: a 1-minute candle closes above the range high (long side) or below the range low (short side). The breakout candle itself can never be the entry candle.3. Retest: from the next candle on, price comes back to the broken level and rejects it (see "Where we had to decide"). A candle that closes back inside the range before an entry cancels that side for the day; the other side can still break out and trade.4. Entry: a market order on the signal candle's close, so it fills at the next candle's open.5. Stop: one tick beyond the signal candle (below its low for a long, above its high for a short).6. Target: twice the distance from the signal candle's close to the stop. Stop and target are fixed on the signal candle and sent together with the entry.7. Limits: at most one trade per direction per day and one position at a time. No new signal after the 10:29 candle closes (10:30), and an open trade is closed at 11:00 New York time.Where we had to decideThe video does not define the "weak price action" at the retest. These readings are ours, not the presenter's rules:- Rejection candle (default): one candle touches the level, closes back on the breakout side and closes in the breakout direction.- Close after touch: after any touch, the first candle that closes beyond the level in the breakout direction.- Hammer: a candle at the level whose wick against the breakout is at least twice its body and which closes in its outer third (a shooting star for shorts).- A touch means coming within 5% of the opening range's height of the broken level.- The video does not say exactly when the trading window ends. The 10:30 signal cutoff and the 11:00 exit are our fixed reading of the morning session it trades.The video also takes some trades by judgment, for example a stop behind two candles or a target at the day's high. Those cannot be written as a fixed rule and are not in the script.SettingsThe defaults follow the video: a five-minute range from 9:30 and a target of twice the risk. We added these settings for research; change one at a time. No setting was chosen for its result.- Retest rule: the three readings above.- Touch tolerance: how close a candle must come to the level, in percent of the range height.- Reward-to-risk ratio.- Round the target out to a whole price: moves the target away from the entry to the next whole price unit. Off by default.- Close open trades at: 11:00 (default) or 12:00.- Coin flip seed: above 0, every trade keeps its entry time, risk and target distance but gets a random direction. Each seed gives a different, repeatable sequence. 0 (default) trades the real direction. Use it to compare the strategy with chance.Chart and propertiesUse a 1-minute chart of a US stock. The script stops with an error on any other timeframe. All times are New York time, so it works with or without extended hours, in summer and in winter. It needs only the current day's candles.Properties: initial capital 1,000,000, a fixed order size of 1 share, 100% margin on both sides, no pyramiding, orders filled on the next candle. The large capital only makes sure a one-share order never runs out of money; judge the results per trade and in multiples of the risk, not as a return on that capital. When a stop and a target fall inside the same candle, TradingView's broker emulator assumes which one filled first; it does not see the ticks. Bar Magnifier can change those fills.On the chart: the range high in teal and the range low in orange until the exit time, and triangles on signal candles. The Data Window shows the planned risk of each signal in price units.CostsCommission and slippage are zero by default, so markets and retest readings can be compared before costs. That is not a claim that trading is free: these results are gross, not what you would keep. Set your own commission and slippage in Properties before you judge the results. The bid/ask spread is not modeled: the strategy fills at the chart's candle prices. For this strategy costs matter a great deal. The stop sits one candle away, often only a few tens of cents on a stock, so a spread or commission of a few cents per share can take a large part of every trade's risk.Test coverage and limitsThis publication uses the regular-session 1-minute AMD chart with the default settings. The chart report contains 26 closed trades over the available history. We also ran the same defaults in TradingView on AAPL, NVDA and TSLA, for 109 closed trades across the four stocks combined. The per-symbol samples are small because the script uses only the opening part of each session and takes at most one trade per direction per day. The chart illustrates the setup. Results depend on the symbol, data feed, loaded history and trading costs. Past results do not predict future ones.How to use it1. Open a 1-minute chart of a US stock, for example AMD, and load as much history as you can.2. Add the strategy and keep the defaults to test the rules with the rejection-candle reading.3. Set commission and slippage for your instrument and broker.4. With a 2R target, the strategy needs to win 33.3% of its trades just to break even before costs. Compare the win rate in the Strategy Tester with that, and look at how many trades it is based on.5. Check single trades in the List of Trades: the range lines, the breakout, the signal candle, the stop and the target.6. Switch the retest rule to compare the readings, or set a coin flip seed to see what random directions do with the same entries.License: MPL-2.0. Copyright 2026 PyneSys LLC.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView