OPEN-SOURCE SCRIPT
업데이트됨 Split ATR

Split ATR cuts every bar at two ATR envelopes — one around the open, one around the close — and draws the result as stacked candles. Hue is the bar’s volume change; lightness is whether each slice closed up or down; chroma is how surprising that slice is relative to those envelopes.
A sibling of Split VWAP. Same overdraw, same volume-hue coloring. The cut is different. Chroma is the new channel.
The cut
ATR is read from a lower timeframe so one chart bar contains several sub-bars. Auto is one-fifth of the chart: 1 minute on a 5-minute chart, 3 minutes on a 15-minute chart. The ATR length is a chart-bar window, scaled onto that subseries, so 14 on a 5-minute chart is 70 one-minute bars — the same span of time as ATR(14) on the chart.
Two values come off that series:
Open ATR — ATR on the first sub-bar of this chart bar
Close ATR — ATR on the last sub-bar of this chart bar
Those make two intervals, then the four endpoints are sorted in price order:
Open ± Open ATR
Close ± Close ATR
The four prices make five bands. A cut past the bar clamps onto the near extreme and collapses the empty band. A bar with no ATR yet is drawn whole and colored as the unsurprising core.
On the bar still forming, the first and last sub-bar start as the same bar, so open ATR equals close ATR until a second sub-bar appears. Open ATR then freezes; close ATR keeps updating.
What the slices mean
Each band is a slice of the bar. Membership of the slice midpoint decides how surprising it is:
In both envelopes — consensus core. Within typical reach of where the bar began and where it ended. Surprise 0.
Open only — departed. The bar left this zone behind. Surprise 0.5.
Close only — arrived. The bar moved into this zone. Surprise 0.5.
In neither, between them — the gap. Only exists when the two intervals are disjoint. Surprise 1.
In neither, outside both — excursion. Wick territory neither envelope accounts for. Surprise 1.
Color
Hue is the whole bar’s volume change. Red when volume fell, green when it held, blue when it rose. Every slice of the bar shares that hue. A symbol with no volume (an index) still splits; hue sits on the unchanged-volume green, and surprise and price lightness still color the slices.
Chroma is ATR surprise. The core is washed toward gray (Unsurprising chroma, default 0.25). Gap and excursion keep the full chroma. Departed and arrived sit halfway.
Lightness is closed-up / closed-down: each slice against the previous bar’s same-index close. An up close is the anchor color; a down (or unchanged) close is the same hue a step darker.
Up bodies are hollow. Wick and border stay opaque so the overdraw still hides the dash under a hollow middle.
The script draws in front of the chart’s own bars and covers them, so you do not need to hide the symbol by hand. Open ATR and Close ATR are what the status line and Data Window report.
Settings
Lower timeframe — Auto (1/5 of chart), or Custom. Must be shorter than the chart.
ATR length — chart-bar window (default 14). Scaled onto the lower timeframe.
ATR multiplier — scales both ATR values before the cuts are placed.
Unsurprising chroma — how much color the consensus core keeps.
Price down darkening — how much darker a down slice is than an up slice.
Volume-hue anchors — falling / unchanged / rising volume.
Built around a 5-minute chart with Auto (or Custom 1). Color conversions use the OKLCh library.
A sibling of Split VWAP. Same overdraw, same volume-hue coloring. The cut is different. Chroma is the new channel.
The cut
ATR is read from a lower timeframe so one chart bar contains several sub-bars. Auto is one-fifth of the chart: 1 minute on a 5-minute chart, 3 minutes on a 15-minute chart. The ATR length is a chart-bar window, scaled onto that subseries, so 14 on a 5-minute chart is 70 one-minute bars — the same span of time as ATR(14) on the chart.
Two values come off that series:
Open ATR — ATR on the first sub-bar of this chart bar
Close ATR — ATR on the last sub-bar of this chart bar
Those make two intervals, then the four endpoints are sorted in price order:
Open ± Open ATR
Close ± Close ATR
The four prices make five bands. A cut past the bar clamps onto the near extreme and collapses the empty band. A bar with no ATR yet is drawn whole and colored as the unsurprising core.
On the bar still forming, the first and last sub-bar start as the same bar, so open ATR equals close ATR until a second sub-bar appears. Open ATR then freezes; close ATR keeps updating.
What the slices mean
Each band is a slice of the bar. Membership of the slice midpoint decides how surprising it is:
In both envelopes — consensus core. Within typical reach of where the bar began and where it ended. Surprise 0.
Open only — departed. The bar left this zone behind. Surprise 0.5.
Close only — arrived. The bar moved into this zone. Surprise 0.5.
In neither, between them — the gap. Only exists when the two intervals are disjoint. Surprise 1.
In neither, outside both — excursion. Wick territory neither envelope accounts for. Surprise 1.
Color
Hue is the whole bar’s volume change. Red when volume fell, green when it held, blue when it rose. Every slice of the bar shares that hue. A symbol with no volume (an index) still splits; hue sits on the unchanged-volume green, and surprise and price lightness still color the slices.
Chroma is ATR surprise. The core is washed toward gray (Unsurprising chroma, default 0.25). Gap and excursion keep the full chroma. Departed and arrived sit halfway.
Lightness is closed-up / closed-down: each slice against the previous bar’s same-index close. An up close is the anchor color; a down (or unchanged) close is the same hue a step darker.
Up bodies are hollow. Wick and border stay opaque so the overdraw still hides the dash under a hollow middle.
The script draws in front of the chart’s own bars and covers them, so you do not need to hide the symbol by hand. Open ATR and Close ATR are what the status line and Data Window report.
Settings
Lower timeframe — Auto (1/5 of chart), or Custom. Must be shorter than the chart.
ATR length — chart-bar window (default 14). Scaled onto the lower timeframe.
ATR multiplier — scales both ATR values before the cuts are placed.
Unsurprising chroma — how much color the consensus core keeps.
Price down darkening — how much darker a down slice is than an up slice.
Volume-hue anchors — falling / unchanged / rising volume.
Built around a 5-minute chart with Auto (or Custom 1). Color conversions use the OKLCh library.
릴리즈 노트
Updated defaults; ATR alignment between timeframes.릴리즈 노트
Simplified coloring오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Open-source chart instruments for futures traders. No signals.
alodis.io
alodis.io
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Open-source chart instruments for futures traders. No signals.
alodis.io
alodis.io
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.