Myth Busting E07 - Two-Candle Bias Breakout [PyneSys] — Strategy by PyneSys

By PyneSys

Performance Metrics

Description

This strategy trades a breakout at the New York open on a 5-minute Nasdaq 100 chart. The chart shows a Capital.com US 100 example from October 20, 2026 in the optional No filter mode, with the other inputs at their defaults. The triangle marks the breakout, the lines mark the setup level and trigger, and the arrows show the entry and exit. The preset in the source remains Two-candle bias. Two candles set the direction for the day: when yesterday's daily candle and the last closed 4-hour candle agree, it trades only in their direction, and when they disagree, it stays out. A small pullback marks a level, and after a candle closes through it and a later candle leaves a wick back toward it, a stop order at the breakout candle's extreme enters with a target of one times the risk. The idea comes from Harry Sharpe, who presented it in an interview with IQCapital. The direction rule follows TradeSharpe99's open-source Tradesharpe Session Bias indicator (MPL-2.0): the previous daily and 4-hour candles must agree. We wrote this script ourselves to test the rules with fixed definitions; it does not copy the indicator's code.How it works1. Bias: at the first candle of the session, the script reads the previous daily candle (17:00 to 17:00 New York time) and the last closed 4-hour candle (at 9:30 that is the 5:00-9:00 candle). Both closed up: longs only. Both closed down: shorts only. Anything else is a mixed day without a trade. The bias holds for the rest of the day.2. Level: after a bullish candle, a run of two or more bearish candles marks a level at the highest body of that run (the open of its highest candle). The range runs from the start of that run to the breakout candle. Shorts mirror this with a run of bullish candles and its lowest body.3. Breakout: a bullish candle closes above the level, has a wick above its close, and is no taller than half of the range. It must close inside the window, 9:30 to 10:30 New York time.4. Wick: a later candle leaves a wick of at least 5 points below its body. On that candle's close, a buy stop goes in at the breakout candle's high.5. Stop and target: the stop is at the breakout candle's low, so the risk is the breakout candle's high-low range. The target is one times that risk above the order price. Both are sent with the entry.6. Cancellation: a close back below the level before the fill cancels the setup. An order still unfilled when the window ends at 10:30 is cancelled.7. Limits: one trade a day and one position at a time. A trade still open at 16:00 New York time is closed at the next candle's open.Where we had to decideThe interview leaves some details open. These readings are ours, not the presenter's rules:- The daily candle runs from 17:00 to 17:00 New York time, the CFD and futures trading day, and the 4-hour candles start at 17:00. The script builds both from the chart's own candles. A higher-timeframe request of close[1] and open[1] without lookahead usually returns, on historical candles, the 4-hour candle before the last closed one, so a check of past days would often read the wrong candle. Building the candles here gives the same result on past and live candles.- The level is the highest body of the last run of two or more opposite candles, and the range starts with that run.- The minimum wick of 5 points is the presenter's rule of thumb for the Nasdaq 100. How good a wick looks is otherwise a matter of judgment, which the script cannot copy.- Mixed days are skipped. The presenter decides those days from the bigger picture, which is discretionary.- He trades one hour from the 9:30 open. We read that as breakouts and orders from 9:30 to 10:30, at most one trade a day, and a time exit at 16:00.- The discretionary parts of his trading, such as a clean area to the left of the level or a daily resistance nearby, are left out. The script tests the stated mechanical rule, not his personal trading.SettingsThe defaults follow the interview: the two-candle bias, a fixed 1R target, a 5-point wick, a breakout candle no taller than half of the range, the New York open and a one-hour window. We added these settings for research; change one at a time. No setting was chosen for its result.- Exit: Fixed 1R (default), or Break-even at 1R, 2R target: once a candle closes after the price has reached one times the risk from the fill, the stop moves to the fill price, and the target is two times the risk from the order price. This is how the trade was managed in the interview's example. The same entries then end as wins, losses or flat trades in different proportions.- Direction: Two-candle bias (default); Bias, mixed days both ways; No filter; or Long only. The last three are for comparison.- Minimum wick in points (5 by default, 0 accepts any wick) and the breakout candle's maximum as a share of the range (50% by default, 0 turns the limit off).- Session: New York open at 9:30 (default) or London open at 3:00 New York time. Window: 60 (default) or 120 minutes.- Trading day starts: 17 by default, the New York hour at which the daily and 4-hour candles begin.- Coin flip seed: above 0, every order keeps its price, risk and target distance but gets a random direction; a trade against the setup uses a limit order at the same price, so it fills on the same touch. 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 5-minute chart (a 15-minute chart also works) of a Nasdaq 100 CFD or future. Other timeframes stop the script with an error. The symbol has to trade overnight, because the bias needs the candles before the open; a chart of the cash index alone has none. All times are New York time, so the chart's time zone does not matter, and summer and winter time are handled like a local clock. On another market, scale the minimum wick in points to that market's price.Properties: initial capital 1,000,000, a fixed order size of 1 (one contract or CFD unit), no pyramiding, and orders processed from the next candle on. The large capital only makes sure a one-unit order never runs out of money; judge the results per trade and in multiples of the risk, not as a return on that capital.Fills: the risk and the target are planned from the breakout candle. When the price is already past the order level as the stop order goes in, it fills at the next candle's open, so wins and losses often differ from exactly one times the risk. A trade often opens and closes inside one 5-minute candle. 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 level of a working setup in orange, the order price in teal, and triangles on every qualifying breakout candle in the window, whether or not it is traded. The Data Window shows the planned risk, the day's bias (1, -1 or 0), the bias the two candles show on the current candle, and each qualifying breakout.CostsCommission and slippage are zero by default, so readings and markets 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 and overnight funding are not modeled: the strategy fills at the chart's candle prices. For this strategy costs matter because the stop is a single 5-minute candle. In our research on Capital.com Nasdaq 100 CFD data the median risk was about 29 points and the typical entry spread 1.8 points, about 6% of the risk on every trade. On futures, add the commission per contract.Sample size and limitationsThe default rules are intentionally selective. On TradingView's full available 5-minute Capital.com US 100 Cash CFD history (May 2017 to November 2026), they produced 30 closed trades. The standard 5-minute Capital.com chart (August to November 2026) produced no closed trades with the default bias, so this publication illustrates the order mechanics with the optional No filter comparison. The attached report shows only 4 closed trades in that comparison and does not measure the default strategy. A chart marker alone does not mean the bias, wick and order-fill conditions all passed. We kept the original defaults so this example demonstrates the rules as tested. Neither sample is large enough to estimate a reliable win rate.A separate run on independently stored Capital.com Nasdaq 100 candles found 16 trades in almost 3 years. It used a different data source and is not the TradingView Strategy Report. Results depend on the symbol, feed, history and Properties. This is a research implementation; past results do not predict future ones.How to use it1. Open a 5-minute chart of a Nasdaq 100 CFD or future that trades overnight, and load as much history as you can.2. Add the strategy and keep the defaults to test the rules as presented.3. Set commission and slippage for your instrument and broker.4. With a 1:1 target, the strategy needs to win 50% 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. Switch Exit to the break-even management and look at the List of Trades: count the trades that closed flat, and decide whether you count them as wins, losses or leave them out. The win rate changes a lot with that choice.6. Check single trades: the Day bias in the Data Window, the level, the breakout candle, the wick candle, the stop and the target. Set a coin flip seed to see what random directions do with the same orders.License: MPL-2.0. Copyright 2026 PyneSys LLC.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView