OPEN-SOURCE SCRIPT
Stryk HTF Reversal Box

# Stryk HTF Reversal Box — TradingView publication description
*(Paste the section below into the description box when you publish. It is written to avoid performance or outcome claims. Keep it as-is; do not add win rates, returns, or "profitable" language.)*
---
## Stryk HTF Reversal Box
**Overview**
Stryk HTF Reversal Box is a market-analysis tool that carries a higher-timeframe reaction zone onto your entry chart. It draws a High/Low box from recent closed higher-timeframe bars, but only when a higher-timeframe bar closed at a conviction extreme of its ATR band with above-average volume — the kind of location where a reaction, or a strong push through it, tends to begin. The box then moves through a clear, colour-coded lifecycle so you can read its state at a glance, and an optional panel measures the behaviour of the boxes on your current chart.
**The idea**
Levels drawn purely from price often lack context: why should this high matter more than that one? This tool adds two pieces of information a bare level does not carry — where a higher-timeframe bar closed within its own volatility band, and whether it did so on meaningful volume. A close pinned to the top of the band on strong volume is a stretched, high-participation event; a shelf built there is a more considered level than an arbitrary swing high. The script turns that reasoning into a defined, repeatable object.
**How it works**
- **Band position.** On the selected higher timeframe, an EMA-of-close band of ±(width × ATR) is constructed. The last closed higher-timeframe bar's close is located inside that band on a 0-to-1 scale (0 = band low, 1 = band high).
- **Qualification.** A close in the top of the band (at or above the Top threshold) on above-average volume marks a stretched high and draws a red "expect-down" box. A close in the bottom (at or below the Bottom threshold) on above-average volume draws a green "expect-up" box.
- **The box.** It spans the High/Low of the last N closed higher-timeframe bars and re-rolls on each higher-timeframe close until a bar qualifies.
- **Breakout.** On your entry chart, a candle that closes beyond a box edge with volume above the chart average locks the box and projects a target a chosen multiple of ATR beyond the edge. The box then takes the colour of the actual break direction, so a push through the extreme flips its colour to the continuation side.
- **Retest shelves.** 25 / 50 / 75% levels inside the box mark common pullback references. If price closes through the opposite edge, the box holds position and re-projects a target in the new direction.
- **Consolidation.** If the target is not reached within the timeout while price remains inside the box, the box turns blue and removes its target, waiting for a fresh break rather than assuming direction.
**State colours (line style shows the state)**
- Grey dotted — forming, waiting for a qualifying higher-timeframe bar
- Red / green dotted — armed, expecting a reaction down / up
- Solid — a volume-backed break has set a target
- Blue dotted — consolidating inside the box after the timeout
**The panel**
The optional corner panel is a self-measuring summary of the boxes on your current chart and timeframe only: how many reached their target, how many entered consolidation, the resulting rate shown with its sample size (n), and the average number of bars taken to reach target. It describes what has already happened on this chart. It is a study aid, not a projection, and it recalculates when you change settings.
**How to use it**
1. Choose the higher timeframe you take context from and load the tool on the entry timeframe you actually trade.
2. Watch for an armed (red or green) box forming a reaction zone.
3. A box turning solid marks a volume-backed break with a projected target; the 25 / 50 / 75% shelves are retest references inside the zone.
4. Use the panel to understand how these boxes have behaved on your instrument and timeframe before relying on them.
Every threshold, length, colour, width, and label is adjustable in the settings, and each input carries an in-app tooltip describing exactly what it does.
**Notes on repainting**
Higher-timeframe data is read from confirmed, closed bars using a one-bar offset with lookahead disabled, and all state changes are evaluated on the bar close. The live projection to the right of price is cosmetic; the box edges, breakouts, targets, and states are fixed once determined on a closed bar.
**Disclaimer**
This script is a technical-analysis and study tool. It does not place orders, does not provide financial advice, and makes no claim about future results. Markets involve risk; use your own judgement and risk management.
*(Paste the section below into the description box when you publish. It is written to avoid performance or outcome claims. Keep it as-is; do not add win rates, returns, or "profitable" language.)*
---
## Stryk HTF Reversal Box
**Overview**
Stryk HTF Reversal Box is a market-analysis tool that carries a higher-timeframe reaction zone onto your entry chart. It draws a High/Low box from recent closed higher-timeframe bars, but only when a higher-timeframe bar closed at a conviction extreme of its ATR band with above-average volume — the kind of location where a reaction, or a strong push through it, tends to begin. The box then moves through a clear, colour-coded lifecycle so you can read its state at a glance, and an optional panel measures the behaviour of the boxes on your current chart.
**The idea**
Levels drawn purely from price often lack context: why should this high matter more than that one? This tool adds two pieces of information a bare level does not carry — where a higher-timeframe bar closed within its own volatility band, and whether it did so on meaningful volume. A close pinned to the top of the band on strong volume is a stretched, high-participation event; a shelf built there is a more considered level than an arbitrary swing high. The script turns that reasoning into a defined, repeatable object.
**How it works**
- **Band position.** On the selected higher timeframe, an EMA-of-close band of ±(width × ATR) is constructed. The last closed higher-timeframe bar's close is located inside that band on a 0-to-1 scale (0 = band low, 1 = band high).
- **Qualification.** A close in the top of the band (at or above the Top threshold) on above-average volume marks a stretched high and draws a red "expect-down" box. A close in the bottom (at or below the Bottom threshold) on above-average volume draws a green "expect-up" box.
- **The box.** It spans the High/Low of the last N closed higher-timeframe bars and re-rolls on each higher-timeframe close until a bar qualifies.
- **Breakout.** On your entry chart, a candle that closes beyond a box edge with volume above the chart average locks the box and projects a target a chosen multiple of ATR beyond the edge. The box then takes the colour of the actual break direction, so a push through the extreme flips its colour to the continuation side.
- **Retest shelves.** 25 / 50 / 75% levels inside the box mark common pullback references. If price closes through the opposite edge, the box holds position and re-projects a target in the new direction.
- **Consolidation.** If the target is not reached within the timeout while price remains inside the box, the box turns blue and removes its target, waiting for a fresh break rather than assuming direction.
**State colours (line style shows the state)**
- Grey dotted — forming, waiting for a qualifying higher-timeframe bar
- Red / green dotted — armed, expecting a reaction down / up
- Solid — a volume-backed break has set a target
- Blue dotted — consolidating inside the box after the timeout
**The panel**
The optional corner panel is a self-measuring summary of the boxes on your current chart and timeframe only: how many reached their target, how many entered consolidation, the resulting rate shown with its sample size (n), and the average number of bars taken to reach target. It describes what has already happened on this chart. It is a study aid, not a projection, and it recalculates when you change settings.
**How to use it**
1. Choose the higher timeframe you take context from and load the tool on the entry timeframe you actually trade.
2. Watch for an armed (red or green) box forming a reaction zone.
3. A box turning solid marks a volume-backed break with a projected target; the 25 / 50 / 75% shelves are retest references inside the zone.
4. Use the panel to understand how these boxes have behaved on your instrument and timeframe before relying on them.
Every threshold, length, colour, width, and label is adjustable in the settings, and each input carries an in-app tooltip describing exactly what it does.
**Notes on repainting**
Higher-timeframe data is read from confirmed, closed bars using a one-bar offset with lookahead disabled, and all state changes are evaluated on the bar close. The live projection to the right of price is cosmetic; the box edges, breakouts, targets, and states are fixed once determined on a closed bar.
**Disclaimer**
This script is a technical-analysis and study tool. It does not place orders, does not provide financial advice, and makes no claim about future results. Markets involve risk; use your own judgement and risk management.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.