Login Page - Create Account

Support Board


Date/Time: Wed, 08 May 2024 18:12:51 +0000



Post From: Two or more simoltanous alerts for the same Study

[2021-01-08 12:24:21]
bradh - Posts: 854
This is incorrect syntax:

=AND(CROSSOVER(SG2, C)(SG3, C)(SG1, C))

Try this:

=AND(CROSSOVER(SG2, C), CROSSOVER(SG3, C), CROSSOVER(SG1, C))

However, this is unlikely to occur, as all 3 Subgraphs would have to cross over the close on the same bar, which for Bollinger Bands would not make sense. I think you want any one of them to trigger the alert:

=OR(CROSSOVER(SG2, C), CROSSOVER(SG3, C), CROSSOVER(SG1, C))

Note this would be the same as adding 3 alerts, one for each subgraph, but is more efficient.


For CCI:
=AND(SG3 > 100, SG3< -100)

SG3 cannot be Greater than 100 and less than -100 at the same time, which is what the AND function requires to be true. Again, you need the OR function:

=OR(SG3 > 100, SG3< -100)