i have a problem with following statement in relation to Keltner Channel:
[middleband, higherband, lowerband] = ta.kc(close, 10, 2, true)
Hi,
you see the blue arrow near the long green candle in the middle of the chart Dow Jones 1h.
Its from 25 Nov 2024 14:30.
I dont know to print Data Window.
I see following values:
Upper in the KC section is 44584
but my variable higherband is 44632
This values should be equal.
Here is my script-Statement:
[middleband, higherband, lowerband] = ta.kc(close,10,2,true)
I found this Syntax in Pinescript Language Reference Manual.
By the way this looks different in the kc-Section of DataWindow.There are 2 more Parameters and the sequence is different.
Thank you
Bernd
1
for debug, use plotchar
plotchar(high > higherband)
your code looks fine
2