Page 1 of 1

Please Help with Rules

Posted: Thu Dec 22, 2022 3:51 am
by AndyG
Can someone tell me what I am doing wrong in this rule?
The last argument in this string I am wanting to add a condition on bar 0 to limit top wick size.

Re: Please Help with Rules

Posted: Mon Jan 16, 2023 5:30 pm
by NakedMarkets
The rule you are trying to create generates an error because the operator AND (&&) can not be applied next to a double statement, as described on the error message.

If we look at your rule, we can see that the all the purple rules are well located because they are boolean rules (only true or false will be returned).
However, your blue rules (value rule, returning a number) are not all properly located.
Indeed, your "Percent Top" rule returns a number (the percent top location relating to the percent) but is included between 2 AND operators (&&). So, you have to add a value to compare it.
The other blue rules are well located and defined because they compare their values with other blue rules (close vs. open and size of body vs. size of body).

We hope this helps