OPEN-SOURCE SCRIPT
Execution Signals Breakout Strategy MTF

A mechanical price action breakout strategy for intraday futures (built on NQ/MNQ/ES/MES). Signals form on a higher timeframe; execution happens on the chart timeframe. Designed to run on a 1-minute chart with a 13-minute signal timeframe (both configurable — chart TF must be below signal TF).
SIGNALS (detected on signal-TF bar close)
- Failure to Go High — price exceeds the prior bar's high but closes back at or below it, leaving an upper wick (a trapped breakout)
- Failure to Go Low — the mirror on the downside
- Inside Bar — the full range held within the prior bar (compression)
Each pattern can be toggled independently. Failures can be filtered by minimum range.
ENTRY
The signal bar's high and low form a bracket. Within the next signal-TF window only, the first chart-TF close beyond either side enters in that direction — long above, short below. The market picks the side: a failure high that then breaks higher is traded long on the logic that clearing a level that just rejected shows strength.
One shot per setup: if the window expires without a confirming close, the setup is void. Once one side triggers, the other side is dead — no flipping. A newer signal replaces an older pending one.
RISK & SIZING
Stop rests at the signal bar's opposite wick (touch fill). Target is an R-multiple of the entry-to-stop distance (default 2R, adjustable). Sizing: 1 contract on failures, 2 on inside bars. One position at a time.
OPTIONAL TRADE MANAGEMENT (mutually exclusive, off by default)
- Break Even Mode — after price moves a set number of points in favor, exit if a chart-TF close returns to entry
- Close At Target Mode — bank the trade on the first chart-TF close beyond the point threshold
SESSION
Entries allowed from 6:00 PM ET; no signals or entries 4:00–6:00 PM ET; all positions force-closed 4:09 PM ET. Never holds overnight.
ON-CHART TOOLS
- Position boxes — every trade is marked with its risk (red) and reward (green) zones, frozen on chart after the trade closes
- Day-Set Levels — each evening at 6 PM the script deploys that day's context like pivots: previous RTH session high/low (yellow) plus Hourly Flip Engine levels (blue) — prices where RTH 1-hour candles flipped color, invalidated when a later RTH 1-hour body closes through them, filtered to within 2× daily ATR of the RTH close. Each set spans one full session and stays on chart as history. Levels are visual context only — they do not gate trades.
- Session VWAP (purple)
ALERTS
Two conditions: Entry (position opened) and Exit (position closed).
BACKTESTING NOTES
Fills use process_orders_on_close — entries fill at the confirming chart-TF close. Test on a 1-minute chart for execution precision. Results depend on the session template; use extended hours data so evening and pre-market signals are included.
SIGNALS (detected on signal-TF bar close)
- Failure to Go High — price exceeds the prior bar's high but closes back at or below it, leaving an upper wick (a trapped breakout)
- Failure to Go Low — the mirror on the downside
- Inside Bar — the full range held within the prior bar (compression)
Each pattern can be toggled independently. Failures can be filtered by minimum range.
ENTRY
The signal bar's high and low form a bracket. Within the next signal-TF window only, the first chart-TF close beyond either side enters in that direction — long above, short below. The market picks the side: a failure high that then breaks higher is traded long on the logic that clearing a level that just rejected shows strength.
One shot per setup: if the window expires without a confirming close, the setup is void. Once one side triggers, the other side is dead — no flipping. A newer signal replaces an older pending one.
RISK & SIZING
Stop rests at the signal bar's opposite wick (touch fill). Target is an R-multiple of the entry-to-stop distance (default 2R, adjustable). Sizing: 1 contract on failures, 2 on inside bars. One position at a time.
OPTIONAL TRADE MANAGEMENT (mutually exclusive, off by default)
- Break Even Mode — after price moves a set number of points in favor, exit if a chart-TF close returns to entry
- Close At Target Mode — bank the trade on the first chart-TF close beyond the point threshold
SESSION
Entries allowed from 6:00 PM ET; no signals or entries 4:00–6:00 PM ET; all positions force-closed 4:09 PM ET. Never holds overnight.
ON-CHART TOOLS
- Position boxes — every trade is marked with its risk (red) and reward (green) zones, frozen on chart after the trade closes
- Day-Set Levels — each evening at 6 PM the script deploys that day's context like pivots: previous RTH session high/low (yellow) plus Hourly Flip Engine levels (blue) — prices where RTH 1-hour candles flipped color, invalidated when a later RTH 1-hour body closes through them, filtered to within 2× daily ATR of the RTH close. Each set spans one full session and stays on chart as history. Levels are visual context only — they do not gate trades.
- Session VWAP (purple)
ALERTS
Two conditions: Entry (position opened) and Exit (position closed).
BACKTESTING NOTES
Fills use process_orders_on_close — entries fill at the confirming chart-TF close. Test on a 1-minute chart for execution precision. Results depend on the session template; use extended hours data so evening and pre-market signals are included.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。