True when the chart shows Kagi lines, which turn only when price reverses by a set amount.
A Kagi line runs in one direction until price reverses by the reversal amount, then steps sideways and turns. Its thickness switches between thin and thick as it passes the previous turning points, and time plays no part in it.
A script can read each segment's direction from close against close[1] and tint the pane by it.
Type
simple bool
Example
//@version=6
indicator("chart.is_kagi: direction tint", overlay = true)
bgcolor(chart.is_kagi ? (close > close[1] ? color.new(color.green, 85) : color.new(color.red, 85)) : na)
plot(close)See also
Runs on Sidechair