简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM