X-Ray Flow Bands
X-Ray Flow Bands is an indicator drawn over the price chart.
renko, heikin ashi, x-ray
indicator "X-Ray Flow Bands"bars: xray(20)input band_length = 30center = hma(close, band_length)width = stdev(close, band_length) * 2up_band = center + widthdown_band = center - widthchannel upper: up_band, lower: down_band, fill: linear_gradient(start: green.fade(80), end: red.fade(80))plot center, color: white, width: 2mark triangle_up, at: below, when: crosses_above(close, down_band), color: green, size: tinymark triangle_down, at: above, when: crosses_below(close, up_band), color: red, size: tinySample data. Not a result. The real AlgoBarsX engine ran this exact script on made-up bars, and this replays what it drew and did. It shows no profit or loss, and it says nothing about how the script would do in a real market.
Replay of this script on 150 sample bars: 1 line drawn.
X-Ray Flow Bands is an indicator drawn over the price chart.
You can change one input: band_length (default 30).
It calculates center as the HMA of the close over band_length bars, width as 2 × the standard deviation of the close over band_length bars, up_band as center plus width and down_band as center minus width.
On the chart, it draws a channel, plots center, marks triangle up below the bar when the close crosses above down_band and marks triangle down above the bar when the close crosses below up_band.