I believe there is a bug in "How many bars ago" option of this building block.
See the below example:

To Code :

I believe the intended logic is
See the below example:
To Code :
I believe the intended logic is
CODE:
if (index - 1 >= 0 && indicator1[index - 1] < indicator2[index - 1])
Rename
No, it's as designed. It's intended to allow you to do things like compare the Closing Price to the Closing Price 1 bar ago.
If you want to push the whole comparison back 1 bar, use the Qualifier N Bars Ago.
If you want to push the whole comparison back 1 bar, use the Qualifier N Bars Ago.
Your Response
Post
Edit Post
Login is required