I get " Uncaught Exception: IndexError: invalid index to scalar variable.". What's wrong?

This often happens if you use an indicator without sequential=True, leading to it just returning one value, while the operations you are doing expect an array.

single_value = 1
# This will raise the error, because index only works with an array.
Last updated: 3 years ago