Please Help with Rules

Post Reply
AndyG
Posts: 4
Joined: Thu Dec 22, 2022 3:46 am

Please Help with Rules

Post 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.
Attachments
2022-12-21 20_53_01-Window.png
2022-12-21 20_53_01-Window.png (3.77 KiB) Viewed 2340 times
signal-2022-12-21-170738_002.png
signal-2022-12-21-170738_002.png (95.36 KiB) Viewed 2342 times
NakedMarkets
Posts: 248
Joined: Tue Feb 22, 2022 11:06 am

Re: Please Help with Rules

Post 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
Post Reply