OPEN-SOURCE SCRIPT
업데이트됨 Adaptive Rolling Z-Score Channel

█ ABOUT
Most channel indicators draw their upper and lower lines a static distance from a moving average and leave them there. Bollinger Bands are the familiar example: the bands sit a fixed number of standard deviations from the average, and that number stays the same whether the market is crawling or running.
The Rolling Z-Score Channel decides that distance from the market's own recent behavior instead. It tracks how far price has actually been straying from its average over recent history, then places the bands where the more extreme of those moves have been landing. When conditions get choppier, the bands widen on their own. When things settle, they draw back in.
The practical effect is a channel where reaching the outer band means roughly the same thing across different market conditions and different instruments: price has stretched unusually far compared to how it has been moving lately. It plots directly on the price chart, so the levels can be read against candles, structure, and your other tools without switching panes.
█ HOW IT WORKS
The indicator measures how far price sits from its rolling mean, expressed in standard deviations — a z-score.
In Adaptive mode, the band levels come from the recent distribution of that z-score making it adjust to changes in market conditions more quickly. The indicator looks at where price has actually been reaching over multiple shorter lookbacks and places the upper and lower bands of those ranges. The two sides of the rolling mean are calculated independently, so the channel can be asymmetric when price has been extending further in one direction than the other. A minimum width floor prevents the bands from collapsing onto the mean during quiet periods.
Fixed Z-Score mode is also available if you prefer conventional static bands at a multiplier you set yourself.
The z-score and the band levels can each be smoothed, with a choice of filters. Smoothing reduces bar-to-bar jitter in the levels at the cost of some responsiveness.
█ READING THE INDICATOR
• Basis line — the rolling mean, and the reference point the channel is built around. Optional gradient coloring shifts with the current deviation.
• Outer bands — the adaptive extremes. Price reaching a band means deviation is large relative to its own recent range.
• Inner bands — an intermediate reference, plotted at a user-set fraction of the outer distance.
• Fills and glow — the shaded zones separate the upper and lower halves of the channel. When price closes outside a band, the area between price and that band fills to mark the excursion.
• Re-entry markers — triangles printed when price closes back inside the channel after having closed outside it.
Alerts are included for band breaks, re-entries, and basis crosses.
█ SUGGESTED USE
The channel is a context tool. It describes where price sits within its recent statistical range, which is useful for entries, gauging extended and possible reversal ranges, and setting reference levels.
A few things worth understanding before using it:
The channel widens quickly when a range breaks out into a trend, since both the deviation measure and the percentile levels expand at the same time. This is intended behavior for a distribution-following band, but it means the tool is least informative during the transition from range to trend.
Defaults are set for intraday futures charts. The rolling window and percentile settings are the main levers if you are adapting it to a different instrument or timeframe. Thoroughly test out various settings for your specific chart.
Most channel indicators draw their upper and lower lines a static distance from a moving average and leave them there. Bollinger Bands are the familiar example: the bands sit a fixed number of standard deviations from the average, and that number stays the same whether the market is crawling or running.
The Rolling Z-Score Channel decides that distance from the market's own recent behavior instead. It tracks how far price has actually been straying from its average over recent history, then places the bands where the more extreme of those moves have been landing. When conditions get choppier, the bands widen on their own. When things settle, they draw back in.
The practical effect is a channel where reaching the outer band means roughly the same thing across different market conditions and different instruments: price has stretched unusually far compared to how it has been moving lately. It plots directly on the price chart, so the levels can be read against candles, structure, and your other tools without switching panes.
█ HOW IT WORKS
The indicator measures how far price sits from its rolling mean, expressed in standard deviations — a z-score.
In Adaptive mode, the band levels come from the recent distribution of that z-score making it adjust to changes in market conditions more quickly. The indicator looks at where price has actually been reaching over multiple shorter lookbacks and places the upper and lower bands of those ranges. The two sides of the rolling mean are calculated independently, so the channel can be asymmetric when price has been extending further in one direction than the other. A minimum width floor prevents the bands from collapsing onto the mean during quiet periods.
Fixed Z-Score mode is also available if you prefer conventional static bands at a multiplier you set yourself.
The z-score and the band levels can each be smoothed, with a choice of filters. Smoothing reduces bar-to-bar jitter in the levels at the cost of some responsiveness.
█ READING THE INDICATOR
• Basis line — the rolling mean, and the reference point the channel is built around. Optional gradient coloring shifts with the current deviation.
• Outer bands — the adaptive extremes. Price reaching a band means deviation is large relative to its own recent range.
• Inner bands — an intermediate reference, plotted at a user-set fraction of the outer distance.
• Fills and glow — the shaded zones separate the upper and lower halves of the channel. When price closes outside a band, the area between price and that band fills to mark the excursion.
• Re-entry markers — triangles printed when price closes back inside the channel after having closed outside it.
Alerts are included for band breaks, re-entries, and basis crosses.
█ SUGGESTED USE
The channel is a context tool. It describes where price sits within its recent statistical range, which is useful for entries, gauging extended and possible reversal ranges, and setting reference levels.
A few things worth understanding before using it:
The channel widens quickly when a range breaks out into a trend, since both the deviation measure and the percentile levels expand at the same time. This is intended behavior for a distribution-following band, but it means the tool is least informative during the transition from range to trend.
Defaults are set for intraday futures charts. The rolling window and percentile settings are the main levers if you are adapting it to a different instrument or timeframe. Thoroughly test out various settings for your specific chart.
릴리즈 노트
Slight change.오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
discord.gg/REapC6SGtz
b3artrades@gmail.com
b3artrades@gmail.com
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
discord.gg/REapC6SGtz
b3artrades@gmail.com
b3artrades@gmail.com
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.