I'm working on an indicator and I'm experiencing the following problem:
The code that works (i.e. it appears on the chart) is:
A = Math.Sign(Close[[B]0[/B]] - Open[[B]0[/B]])
A = Math.Sign(Close[[B]1[/B]] - Open[[B]1[/B]])
I can't see why Math.Sign should fail to work just because the previous bar is being tested.
Any advice on how to solve this problem will be much appreciated.
Comment