DK435
Pine Script Scholar
Pine Script Scholar
Posts: 1
Joined: December 27th, 2021

Multiple Symbols Alerts in One Script

Hi - I am looking to add multiple stock tickers in one script once a condition is met.

For example, is it possible to show an alert when RSI is overbought and add multiple tickers (i.e. AAPL, MSFT, FB, etc) into one script. Or is the only way to do this is to individually set up an alert for each stock?

Thanks!

processingclouds
Pine Script Master
Pine Script Master
Posts: 115
Joined: January 30th, 2022

Re: Multiple Symbols Alerts in One Script

You can use request.security to get multiple symbols to same chart and than implement underlying alert conditions based on them.
This way you can have checks for multiple symbols and throw alerts from one script.

Just to note that plotting them will need some kind of scaling to show properly.

Return to “Request Scripts”