study(title="Chaikin Oscillator", shorttitle="Chaikin Osc", format=format.volume, resolution="")
short = input(3, minval=1, title="Fast Length")
long = input(10, minval=1, title="Slow Length")
upColor = input(#F5DF6A, "Color Up")
dnColor = input(#FF8080, "Color Down")
f_normGradientColor(_series, _crossesZero, _colorNormLen, _dnColor, _upColor) =>
_dnValue = _crossesZero?-100:0
_mult = 0.0
_lowest = lowest(_colorNormLen)
_highest = highest(_colorNormLen)
_diff1 = close - _lowest
_diff2 = _highest - _lowest
if _diff2 > 0
_mult := _diff1 / _diff2 * 100
color.from_gradient(sign(_series) * _mult, _dnValue, 100, _dnColor, _upColor)
osc = ema(accdist, short) - ema(accdist, long)
col = f_normGradientColor(osc, true, int(avg(short, long)), dnColor, upColor)
plot(osc, title="Chaikin Oscillator", color=col)
hline(0, title="Zero", color=#606060, linestyle=hline.style_dashed)
matrikste nasıl formülüze edebilirim. renk değişiminde mum üzerinde al sat işaretini nasıl göstermem gerek.