Trb breakout up event
Marks each one-minute bar that closes above the highest high of the previous k bars.
On each bar it takes the highest high of the k bars before the current one and checks whether the close is above that level. The band parameter scales the level by (1 + band), so 0 means a plain break and 0.001 means a close 0.1% above the old high. The current bar's own high never counts toward the level, and the lows input is accepted but never read.
How to read it
- Each marker sits on a candle whose close cleared the highest high of the prior k bars (50 by default, so 50 minutes).
- A breakout that holds keeps closing above the level, so it shows as a run of consecutive markers; the first marker in the run is the breakout bar.
- In the September 2026 SPY sample at defaults it was true on about 4% of one-minute bars, with about 24 separate firings a day.
What it outputs
- Breakout above prior high
- Marked on each bar whose close is above the highest high of the prior k bars, raised by band.
When it fires
The close clears the highest high of the prior k bars by the band margin. The first marked bar of a run is a fresh breakout to a new k-bar high; the bars after it show that breakout still holding above the old level.
Settings
- k
- How many prior bars set the level, 1 to 1000 minutes. Raising it lifts the level, so marks can only disappear. Lowering it breaks shorter highs and marks more often, down to the previous bar's high at 1.
- band
- Extra margin the close must clear the level by, as a fraction of it. Above zero it removes marks. Below zero the threshold falls under the prior high, so non-breakouts get marked; at -1 every bar is marked.
Pitfalls
- Nothing confirms the break: no volume, trend or second bar is required, so breakouts inside a flat range mark as readily as those in a trend.
- The signal stays true on every bar that holds above the level, so a breakout that holds for several bars is several true bars; count onsets, not bars.
- The lows input is wired in but never used, so the rule reads only highs and close even though the catalog lists lows.