As I understand, Open[0],High[0],Low[0] and Close[0] should result in values for the current bar.
However Open[0] etc seems to result in values of the previous bar rather than current bar. On the other hand Open[-1], High[-1] seems to result into values from the current bar.
Please check out the attached strategy which prints out these values into the output window. I have also attached a jpeg file showing the results mentioned above.
I need to output results of the current bar and if I use [-1] in my strategy I start getting exception errors. Attached BuySellStrategy (placed on any chart) and Exception.jpg for the output window highlights this problem.
Appreciate your help.
Thanks
Comment