Mike Busschau
Mike Busschau

Reputation: 1

combining two indicator alerts into one alert when both conditions are met

I am busy trying to write up my own script for trading view, using two indicators, both have built-in alerts.

How does one write a code to combine two indicator ALERTS into one?

ie. so that only one alert will signal when both indicators alert conditions are met.

Upvotes: 0

Views: 1221

Answers (1)

PineCoders-LucF
PineCoders-LucF

Reputation: 8799

Use and to create a compound condition on the two separate conditions. Once you have your compound condition, use it to trigger your alertcondition().

Upvotes: 1

Related Questions