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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.