Login Page - Create Account

Support Board


Date/Time: Tue, 04 Mar 2025 22:28:09 +0000



Post From: coding help, combining conditions

[2022-01-01 19:32:21]
User259724 - Posts: 43
I am trying to combine 2 conditions.
The first is volume greater than 100, and volume greater than twice the previous bar volume.
I am using on a colour bar alert "= and (v>100, v>v[-1]*2)" which colours the correct bars on the chart.
The second is close in the top 80% of the range.
I am using on a colour bar alert "=and (c>((0.8*(h-l)+l)))" which colours the correct bars on the chart.

Trying to combine the 2 conditions I am using "=and ((v>100, v>v[-1]*2), (c>((0.8*(h-l)+l))))" which does not work. I have tried different bracket orders, movements, etc

Can someone please show me what is not correct.

Thanks in advance for any replies.