StockLeave Signal Bar

The indicator identifies potential trade entries by highlighting expansion and reversal bars. These are defined by individual bar characteristics and refined by contextual factors such as price position relative to structural boundaries. The purpose is to locate bars that could indicate potential market initiation.
Expansion Bars
The expansion captures bars that breakout from a period of reduced volatility. These often initiate directional movement and are recognized using a two-part definition:
Main Conditions
- Range Expansion The current bar’s range must exceed the average range. This ensures the move is comparatively large and stands out from recent behavior.
- Range Compression The bars before the expansion must be below a threshold of the average range. This confirms a low-volatility lead-up, strengthening the likelihood that the expansion has significance.
This script applies additional filters. A local breakout ensures price breaks the previous bar’s high or low. A strong close confirms directional intent by requiring the close near the bar’s extreme. Mean proximity checks that expansion starts near the mean price using a dynamic buffer relative to bar size. A directional filter blocks signals during extended directional runs. Consecutive suppression prevents multiple expansions to show in succession.
Reversal Bars
Reversal setups aim to identify potential turning points after price has reached a zone of imbalance or extension. These bars typically exhibit long tails and occur near structural boundaries such as the outer Keltner bands. Their design favors short-term price rejection and potential reversal.
- Tail Dominance The wick must be at least twice the body and make up a significant portion of the bar’s total range, signaling strong rejection rather than indecision.
- Close Location The close should be near the opposite end of the wick, near the low for bearish signals and near the high for bullish, confirming pressure in the reversal direction.
This script applies additional filters. Local extreme ensures the bar marks a local turning point to confirm reversals occur after extension, not within structure. Boundary proximity requires the bar to appear near the outer envelope, aligning bearish signals with the upper band and bullish with the lower, indicating price has reached an area of likely imbalance.
This section also incorporate snapback reversals, designed to capture failed extensions beyond structural boundaries. Unlike single-bar rejections, snapbacks use a two-bar sequence: a strong impulse bar that closes outside the envelope, followed by a reversal bar that closes back inside.
Alert Configuration
The Signal Bars indicator includes an alert function with two built-in conditions to help reduce screen time and focus attention when predefined conditions are met.
- Expansion: Alerts when a bar meets all conditions for a valid expansion.
- Reversal: Alerts when a bar meets the criteria for a pin bar or snapback reversal.
These are built into the indicator with the alertcondition() function and can be turned on whenever the indicator is applied to a chart. Each alert includes a default message that uses dynamic placeholders; {{ticker}} for the symbol and {{interval}} for the timeframe.
- Create a new alert and select the condition “StockLeave Signal Bars.”
- Then select from the two options: Expansion and Reversal.
- For expansions, select “once per bar” to capture developing momentum.
- For reversals, use “once per bar close” to confirm rejection setups.
Apply alerts across multiple timeframes to improve coverage. Lower timeframes are better suited for fast-moving markets, while higher timeframes work well in slower or more selective environments. This process only needs to be done once. The created alerts can then be toggled on or off from the Alerts panel as preferred, without requiring reconfiguration.
Applied Discretion
The indicator functions on fixed logic, but interpretation always takes precedence. Consider price action, structure, volatility, and broader market context. Most signals will not lead to trades; while many may appear in a session, only a select few will align with context and warrant execution based on discretion.
Skrip jemputan sahaja
Hanya pengguna yang diberikan kebenaran oleh penulis mempunyai akses kepada skrip ini dan ini selalunya memerlukan pembayaran. Anda boleh menambahkan skrip kepada kegemaran anda tetapi anda hanya boleh menggunakannya selepas meminta kebenaran dan mendapatkannya daripada penulis — ketarhui lebih lanjut di sini. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi StockLeave secara terus.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Amaran: sila baca panduan kami untuk skrip jemputan sahaja sebelum memohon akses.
stockleave.com/
Penafian
Skrip jemputan sahaja
Hanya pengguna yang diberikan kebenaran oleh penulis mempunyai akses kepada skrip ini dan ini selalunya memerlukan pembayaran. Anda boleh menambahkan skrip kepada kegemaran anda tetapi anda hanya boleh menggunakannya selepas meminta kebenaran dan mendapatkannya daripada penulis — ketarhui lebih lanjut di sini. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi StockLeave secara terus.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Amaran: sila baca panduan kami untuk skrip jemputan sahaja sebelum memohon akses.
stockleave.com/