Question about Math Operators

Hi!

I have a scan that includes:

AND
[3 days ago Daily Close > 29 days ago Daily Close]

and, it works well.

But, when I changed to:

AND
[3 days ago Daily Close > ((29 days ago Daily Close) * 1.05)]

I get a syntax error. Why?

Thank you!

Dr. T

Comments

  • markd
    markd mod
    edited October 2018
    You don't need the parens, but if you want them, use brackets [ ] instead of parens ( ).

    Parens are reserved for functions, like sma(5, close) or MACD Line(12,26,9). so use brackets to group operations.