How to create script to detect condition for multiple symbols

How to create script to detect condition for multiple symbols? I believe that trading view code (pine script) only allow for detection of conditions ocurring in the symbol on the screen, can someone confirm it?

You could create a screener indicator with maximum 40 symbols.

@douglas you can also create alerts from the indicator on the symbols you are interested in. Every time the condition is met, you are notified via an alert.

Regards.