OPEN-SOURCE SCRIPT
Range Breakout Pro [JOAT]

═══ RANGE BREAKOUT PRO [JOAT] ═══
Range Breakout Pro is a universal breakout engine. It defines a reference range from the Previous Day, Previous Week, an Initial Balance window, or a Custom Session, draws that range on the chart, and only fires a trade idea when price confirms a close beyond the edge. Every signal is scored 0–10 for conviction and shipped with a full trade plan: stop, three R-multiple targets, and live outcome tracking.

▎ WHAT IT DOES
It turns a simple "price broke the range" event into a structured, filtered, and scored decision. The chosen range basis is projected onto the current period as a box with edge rails and a midline. A confirmed break becomes a clean LONG or SHORT label with a stop, TP1/TP2/TP3 zones, and a running performance panel — all built to keep the chart readable.
▎ HOW IT WORKS
— Range basis: Previous Day / Previous Week project the prior completed period's high-low forward. Initial Balance and Custom Session accumulate the high-low inside a session window (in your chosen timezone) and lock the range at the window close.
— Break detection: a bar must close beyond the range edge, not just wick through it. In direct mode the close must clear the level by a Break Buffer measured in ATR.
— Optional retest: with retest confirmation on, price must break, pull back within a tolerance of the level, then close beyond it again before a signal arms — decisive reversals back through the level cancel the setup.
— Strength score (0–10): each candidate is graded on candle body dominance, candle range vs ATR, volume vs its average, 3- and 5-bar momentum agreement, penetration depth past the level, RSI posture, higher-timeframe trend alignment, whether it is the first break of the period, and range size vs ADR. The score maps to a ★ rank and a tier from FORMING to ELITE.
— Filters/gates: minimum strength to signal, optional "strong only" threshold, HTF EMA trend alignment (longs above, shorts below), a range-vs-ADR gate (skip ranges too tight or too wide), and a max-signals-per-period cap.
— Trade model: entry at the confirming close. Stop from Structure (opposite range edge), Mid (range midline), or ATR, with an ATR buffer plus min/max risk clamps. Targets are placed at your TP1/TP2/TP3 R-multiples off the measured risk.
— Outcome engine: each trade is tracked bar by bar for TP1/TP2/TP3, stop, or end-of-period flatten, including same-bar stop handling, and the result feeds the stats panel.
— VWAP overlay: session-anchored VWAP with ±1σ bands and an optional ±2σ outer channel, tinted to the side price is trading.
▎ HOW TO USE IT
— Pick the range basis that fits your style: intraday traders often use Initial Balance or Custom Session; swing traders use Previous Day or Previous Week.
— Wait for a LONG / SHORT label. The ★ rank and score tell you how much confluence backed that break — treat higher tiers as higher conviction.
— The entry line is the confirming close, the dashed line is the stop, and the three solid lines are targets tagged 🎯 TP1, 🥈 TP2, 🏆 TP3. The green zone is the reward area; the red zone is risk.
— Use the range box, midline, and rails as context: reclaims of the midline, failed breaks, and edge retests are all readable at a glance.
— Layer the VWAP bands as confluence — breakouts extending away from VWAP with room to the outer channel read differently than breaks stalling into a band.
— Result labels (TP / SL / EOP with the R outcome) close each idea so you can review what worked.
▎ KEY SETTINGS
— Engine: range basis, session timezone, IB / custom windows, retest toggle, break/retest tolerances, max signals per period.
— Strength & Filters: ATR length, minimum score, strong-only threshold, HTF trend alignment (timeframe + EMA length), and the range-vs-ADR gate.
— Trade Model: stop basis and buffer, ATR stop distance, min/max risk caps, TP1/2/3 in R, and how many past trades to keep drawn.
— Visuals: Ice / Emerald / Mono theme, box, rails, midline, measured-move ×1/×2 guides, projection length, label size, and toggles for signal, lines, zones, level labels, and result labels.
— VWAP & Candles: VWAP source, σ multiplier and lookback, outer channel, and optional RSI-gradient candles.
— Dashboard: show/hide, position, text size, and the outcome breakdown row.
▎ DASHBOARD
A chrome-accented panel reports the active range basis, current range size and % of ADR, price vs VWAP (with σ distance), engine status (forming / armed / trade active), the active and last signal with its score, and live stats: win rate, profit factor, average R per trade, long vs short win%, best direction, total signals, current and max streaks, plus an optional TP1/TP2/TP3 · SL · EOP outcome breakdown.
▎ ALERTS
— RBP Long and RBP Short on a confirmed, filtered breakout.
— TP3 Hit, Partial TP (protected exit), SL Hit, and EOP Exit (end-of-period flatten).
▎ NOTES
— Works on any market and any timeframe.
— Higher-timeframe data uses confirmed prior values, so signals are evaluated on bar close and do not repaint after the fact.
— Clean-by-default: measured-move guides, extra rails, gradient candles, and the outer channel all sit behind toggles so you can strip the chart down or build it up.
— Drawn history (ranges and trades) is capped to keep the chart light.
This tool is for research and education only. It is not financial advice. No indicator can predict the future, and any statistics shown reflect historical signals on your chart — past behavior does not guarantee future results. Always do your own analysis and manage your own risk.
Made with passion by JackOfAllTrades ⚡
Range Breakout Pro is a universal breakout engine. It defines a reference range from the Previous Day, Previous Week, an Initial Balance window, or a Custom Session, draws that range on the chart, and only fires a trade idea when price confirms a close beyond the edge. Every signal is scored 0–10 for conviction and shipped with a full trade plan: stop, three R-multiple targets, and live outcome tracking.
▎ WHAT IT DOES
It turns a simple "price broke the range" event into a structured, filtered, and scored decision. The chosen range basis is projected onto the current period as a box with edge rails and a midline. A confirmed break becomes a clean LONG or SHORT label with a stop, TP1/TP2/TP3 zones, and a running performance panel — all built to keep the chart readable.
▎ HOW IT WORKS
— Range basis: Previous Day / Previous Week project the prior completed period's high-low forward. Initial Balance and Custom Session accumulate the high-low inside a session window (in your chosen timezone) and lock the range at the window close.
— Break detection: a bar must close beyond the range edge, not just wick through it. In direct mode the close must clear the level by a Break Buffer measured in ATR.
— Optional retest: with retest confirmation on, price must break, pull back within a tolerance of the level, then close beyond it again before a signal arms — decisive reversals back through the level cancel the setup.
— Strength score (0–10): each candidate is graded on candle body dominance, candle range vs ATR, volume vs its average, 3- and 5-bar momentum agreement, penetration depth past the level, RSI posture, higher-timeframe trend alignment, whether it is the first break of the period, and range size vs ADR. The score maps to a ★ rank and a tier from FORMING to ELITE.
— Filters/gates: minimum strength to signal, optional "strong only" threshold, HTF EMA trend alignment (longs above, shorts below), a range-vs-ADR gate (skip ranges too tight or too wide), and a max-signals-per-period cap.
— Trade model: entry at the confirming close. Stop from Structure (opposite range edge), Mid (range midline), or ATR, with an ATR buffer plus min/max risk clamps. Targets are placed at your TP1/TP2/TP3 R-multiples off the measured risk.
— Outcome engine: each trade is tracked bar by bar for TP1/TP2/TP3, stop, or end-of-period flatten, including same-bar stop handling, and the result feeds the stats panel.
— VWAP overlay: session-anchored VWAP with ±1σ bands and an optional ±2σ outer channel, tinted to the side price is trading.
▎ HOW TO USE IT
— Pick the range basis that fits your style: intraday traders often use Initial Balance or Custom Session; swing traders use Previous Day or Previous Week.
— Wait for a LONG / SHORT label. The ★ rank and score tell you how much confluence backed that break — treat higher tiers as higher conviction.
— The entry line is the confirming close, the dashed line is the stop, and the three solid lines are targets tagged 🎯 TP1, 🥈 TP2, 🏆 TP3. The green zone is the reward area; the red zone is risk.
— Use the range box, midline, and rails as context: reclaims of the midline, failed breaks, and edge retests are all readable at a glance.
— Layer the VWAP bands as confluence — breakouts extending away from VWAP with room to the outer channel read differently than breaks stalling into a band.
— Result labels (TP / SL / EOP with the R outcome) close each idea so you can review what worked.
▎ KEY SETTINGS
— Engine: range basis, session timezone, IB / custom windows, retest toggle, break/retest tolerances, max signals per period.
— Strength & Filters: ATR length, minimum score, strong-only threshold, HTF trend alignment (timeframe + EMA length), and the range-vs-ADR gate.
— Trade Model: stop basis and buffer, ATR stop distance, min/max risk caps, TP1/2/3 in R, and how many past trades to keep drawn.
— Visuals: Ice / Emerald / Mono theme, box, rails, midline, measured-move ×1/×2 guides, projection length, label size, and toggles for signal, lines, zones, level labels, and result labels.
— VWAP & Candles: VWAP source, σ multiplier and lookback, outer channel, and optional RSI-gradient candles.
— Dashboard: show/hide, position, text size, and the outcome breakdown row.
▎ DASHBOARD
A chrome-accented panel reports the active range basis, current range size and % of ADR, price vs VWAP (with σ distance), engine status (forming / armed / trade active), the active and last signal with its score, and live stats: win rate, profit factor, average R per trade, long vs short win%, best direction, total signals, current and max streaks, plus an optional TP1/TP2/TP3 · SL · EOP outcome breakdown.
▎ ALERTS
— RBP Long and RBP Short on a confirmed, filtered breakout.
— TP3 Hit, Partial TP (protected exit), SL Hit, and EOP Exit (end-of-period flatten).
▎ NOTES
— Works on any market and any timeframe.
— Higher-timeframe data uses confirmed prior values, so signals are evaluated on bar close and do not repaint after the fact.
— Clean-by-default: measured-move guides, extra rails, gradient candles, and the outer channel all sit behind toggles so you can strip the chart down or build it up.
— Drawn history (ranges and trades) is capped to keep the chart light.
This tool is for research and education only. It is not financial advice. No indicator can predict the future, and any statistics shown reflect historical signals on your chart — past behavior does not guarantee future results. Always do your own analysis and manage your own risk.
Made with passion by JackOfAllTrades ⚡
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
The Institutional Grade Trading Ecosystem, Built to win trades 📈
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
The Institutional Grade Trading Ecosystem, Built to win trades 📈
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน