I am trying to code an indicator based on CCI. I use the command as follow:
a) CCI(50)[0] - Because I want to use CCI 50 and current bar to made a calculation.
I wonder if this is correct.
b) CCI(50)[1] - Because I need the bar before to made other calculation. But somehow I got an out put of "0" when I start to plot the chart.
Question = = Can I use the [1] to represent the parameters of CCI of the pervious bar???
I hope somehow could give a some clue. Thanks
shek
Comment