Nasdaq Break and Retest
A rule-based intraday strategy for the Nasdaq-100. It waits for price to break out of the Initial Balance (the 09:30-10:30 ET range), then for a pullback into the last candle that went the other way before the breakout.
- Market
- The Nasdaq-100, under any of the names it trades as.
- Runs on
- a 15-minute chart (recommended).
Free on request during the launch period.
Open on TradingViewThe rules, in full
- Initial Balance (IB) = the high and low from 09:30 to 10:30 ET.
- Price is grouped into 15-minute bars counted from 18:00 ET (the session start).
- Long breakout: the first 15-minute bar ending between 10:45 and 15:00 ET that closes above the IB high, when the bar before it closed at or below the IB high. The short breakout mirrors this below the IB low. Only the first breakout of each side is used.
- Retest zone: the high and low of the last down-close 15-minute bar before a long breakout (for a short, the last up-close bar). The search covers the whole session since 18:00 ET.
- Signal: within the next 12 fifteen-minute bars (ending by 15:00 ET), the first bar that trades into the zone and still closes beyond the IB level. For a long, the zone low minus 1 tick must be below that close (short: zone high plus 1 tick above it); otherwise that side is dropped and no later bar is checked. Without a zone candle or a retest in time, the side is also dropped.
- Entry: market order on the next bar's open. One trade per day. The first signal by time is taken; if both sides signal on the same bar, the long is taken.
- Stop = 0.20 x U from the fill, rounded to the tick away from the entry. U = median 18:00-17:00 range of the previous 20 complete sessions of that symbol; sessions with a holiday halt, a late start or missing regular-hours bars are skipped. If the 20th session back is more than 40 days old, U is not ready and the day's signal is skipped (the day still counts as used). The stop works from the fill bar.
- No profit target. The trade is closed at market 60 minutes after the entry if the stop has not been hit. A close at the first bar open at or after 16:10 ET and a close when a new session starts sit behind it as backstops: the last signal bar ends at 15:00 ET, so the 60-minute exit normally comes first. The backstops matter on a short or early-close session, where no bar reaches 16:10 ET.
- All of these are wall-clock ET times on every symbol: on a broker whose CFD day runs on another clock the window lands at a different local hour, and you would have to choose and test your own.
That is the whole rule set, exactly as published. Nothing is held back for subscribers.
What you see on the chart
- Gray IB high and IB low lines from 10:30 to 16:00 ET. Each is named with its price at the right edge.
- A small "break" mark on the breakout bar, plus a light green (long) or red (short) box over the retest zone. The box stretches right while a retest is still possible.
- Green ▲ LONG label below the signal bar or red ▼ SHORT label above it (size adjustable). Hover for the levels, zone, stop and time exit; after the fill it shows the fill price. Optional signal-bar background highlight (off by default).
- While in a trade: white entry line (the real fill) and red stop line, each named with its price, with a light red risk zone between them. On the fill bar the stop line shows the provisional stop that protected that bar; from the next bar it shows the exact stop from the fill.
- The LONG / SHORT label marks the signal bar; the Strategy Tester's own entry arrow is on the next bar, where the order fills.
- "EXIT +/- pts" label at the exit; hover for the reason (Stop, Time exit, Flat 16:10 ET, Session end) and the trade result.
- Compact status box (top right by default): the symbol and how it was read (Nasdaq futures / Nasdaq index / CFD / Nasdaq ETF); state (WAITING, SETUP with the retest zone, ENTERING, IN LONG / IN SHORT with stop and exit time, DONE with the reason, or OFF on a non-Nasdaq symbol or wrong timeframe); IB levels and stop size in points; signals and days loaded, or a short yellow note when there are none yet; an orange reminder on CFD and ETF symbols about Properties and the chart session. Hover any row for details.
- Red banner in the middle of the chart on any symbol that is not Nasdaq-100 (no orders unless the override is on). Orange banner on a timeframe that cannot run the rule, asking for a 15-minute chart. On 1, 3 or 5 minutes, a small tip recommends 15 minutes.
Alerts
1. Add the strategy to a Nasdaq-100 15-minute chart - NQ1!, MNQ1!, NAS100, US100, USTEC, USATEC, QQQ, QQQM. A cash index chart (NDX, TVC:NDQ, IXIC) will never fire: it has no 18:00 ET session.
2. Create Alert: Condition = this strategy, then "alert() function calls only". TradingView calls this a technical alert, and a free Basic account cannot create one - Basic allows 3 price alerts and no technical alerts at all, so the Create Alert dialog will not let you save it. Essential is the lowest plan that works (20 technical alerts); Plus 100, Premium 400. On Essential and Plus an alert also expires after two months and has to be created again; on Premium and Ultimate it does not expire. Phone notifications themselves are free on every plan - tick "Notify on app" and have the TradingView app installed and signed in on the same account.
3. Each message is one short line: what happened and at what price first, then the exchange and ticker, then the extras, separated by "|". Nothing else to read.
LONG 21455.75 on CME_MINI:NQ1! | SL 21420.00 | no TP | out ~11:45 ET | fills next open
LONG 21456.00 on CME_MINI:NQ1! | SL 21420.25 | out 11:45 ET | filled
EXIT 21420.25 on CME_MINI:NQ1! | Stop | -35.75 pts | position 0
LONG 21456.00 on PEPPERSTONE:NAS100 | filled | stopped same bar 21420.25
BREAKOUT UP on CAPITALCOM:NAS100 | IB high 21440.00 | retest 21420.00-21435.00 | within 12 bars
The ticker is in every line, so you can watch several Nasdaq symbols at once and still tell them apart at a glance. Alerts are per chart: create one on each symbol you want watched.
4. Messages fire once per bar close. Four toggles in the Alerts group: entry signal, entry fill, EXIT, and the optional breakout/setup heads-up (off by default). No alerts on non-Nasdaq symbols unless the market lock is overridden.
5. On a free Basic account, use the last row of the status box: "Price alert: ▲<IB high> ▼<IB low>". Basic cannot alert on the strategy, but it can set a plain price alert on the symbol at either number (Alt+A, Condition = the symbol, operator "Crossing", "Notify on app" ticked); both sides use two of the three free alerts.
It means price reached the IB level, not that the strategy entered - the signal still needs a breakout close and a retest - so look at the chart before acting. New IB each session, so edit the alert instead of creating another one.
Settings
- Rule: IB length 60 minutes, retest within 12 bars, last breakout/retest bar end 15:00 ET.
- Stop and exit: stop 0.20 x U, U from 20 sessions (oldest within 40 days), time exit 60 minutes after entry, flat by 16:10 ET.
- These are the defaults the strategy is designed around. Changing them changes the strategy.
- Market lock: "Allow orders on non-Nasdaq symbols (override)" (off by default). Accepted: the futures roots NQ and MNQ; index, CFD and forex-type quotes whose ticker starts with NAS, US100, USTEC, USATEC, NDX, NDQ or IXIC; and the funds QQQ and QQQM by exact ticker. A single share is never accepted, even a Nasdaq-100 member. Turn the override on only to experiment elsewhere - the orange status row then reminds you to check size, commission and hours yourself.
- Alerts, Display Options (IB lines, zones, labels and label size, entry/stop lines, signal-bar highlight, status box and its position, Show details, dark theme) and Colors.
- Properties default to 1 contract, 100,000 starting capital, 5% margin, no pyramiding, 0.95 commission per contract per side (micro) and 1 tick slippage. Enter your own size and cost for the instrument you trade - these defaults are wrong for CFDs, for ETFs and for full-size NQ.
Limits, and what this cannot do
- Different Nasdaq symbols are different data: a CFD feed, a futures contract and an ETF do not print the same bars, do not keep the same hours and do not start their day at the same time, so the same rule produces a different trade list on each. Read each one on its own chart.
- The chart must contain the session from 18:00 ET, so the first loaded session is skipped. On futures and on most index CFDs use the electronic (extended) session; on an ETF you must switch the chart to extended hours, and a cash index symbol that only quotes 09:30-16:00 ET never qualifies at all.
- Pine sees one price per bar. Stop touches are judged from bar highs and lows. Market orders fill at the next bar's open and stops at the stop price, each plus 1 tick of slippage, so results on chart bars can differ from live fills.
- The time exit is placed on the bar that ends 60 minutes after the entry and fills at the next bar's open.
- Deep Backtesting lists trades from before the first loaded bar; labels and lines exist only on the bars the chart has loaded.
- U is built from TradingView 15-minute data and can differ slightly around contract rolls and holidays. Early-close days use the normal times.
- Many days have no setup: it takes an IB breakout and a retest on the same day.
- The script only sees its own trades.
Educational tool. Not financial advice. Past behaviour does not predict future results.
Before you decide
The script page on TradingView carries TradingView's own Strategy Tester report, generated by TradingView from this script. We do not write those numbers and we do not repeat them here. Read them at the source: Nasdaq Break and Retest on TradingView.