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.
Please Help with Rules
Please Help with Rules
- Attachments
-
- 2022-12-21 20_53_01-Window.png (3.77 KiB) Viewed 3055 times
-
- signal-2022-12-21-170738_002.png (95.36 KiB) Viewed 3057 times
-
- Posts: 251
- Joined: Tue Feb 22, 2022 11:06 am
Re: Please Help with Rules
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
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