Custom Screener with Alerts V2 [QuantNomad]

TradingView just recently announced the alert() function that allows you to create dynamic alerts from both strategies and studies.
So I decided to update custom screener I published before. It was based on alerts from orders in strategies, that was the only way to create dynamic alerts in PineScript at that point.
With the alert() function code become cleaner and more readable.

It works for up to 40 symbols at the same time.
You can create an alert from it easily by selecting screener name from the list and then selecting "Any alert() function call".
No additional configuration is required, message and alert on close I set up in the code.

I created as an example a screener that tracks both overbought ( RSI > 70) and oversold stocks ( RSI < 30).
To create your own screener you have to change only screenerFunc().
By design it should output 2 values:
  • cond - True/False Boolean variable. Should this instrument be displayed in the screener?
  • value - Additional numeric value you can display in your screener. I display RSI level for selected stocks for example.

Link to the old screener:

Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as good as in historical backtesting.
This post and the script don’t provide any financial advice.
Open-source Skript

Ganz im Sinne von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es verstehen und überprüfen können. Ein Hoch auf den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln. Sie können das Skript den Favoriten hinzufügen, um es auf dem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?
PineScript Programming: https://qntly.com/pinepro
TradingView Essential: https://qntly.com/tve

Access to Pro Indic.: https://qntly.com/proind

YouTube: https://qntly.com/youtube
Discord: https://qntly.com/discord
Telegram: https://qntly.com/tel


500 Coins
kakola PineCoders
@PineCoders, Would there be any advantage in replacing the repainting security() with the PineCoder's f_security() function here?
@kakola, no because the alert it self does not repaint -> freq = alert.freq_once_per_bar_close
and because // This will keep screener only for the last bar label.delete(lab_l)
+1 Antworten

When I am trying to use this script, it's giving an error while creating an alert on pop up and then not saving it.
Error is "Alert Saving failed. Please, try again."

Tried it number of times, but nothing works.

Appreciate if you can guide me.

+3 Antworten
QuantNomad DeepMPans
@DeepMPans, Change the name for it, with all symbols in params it is too long
+1 Antworten
Can the stocks be divided into two parts as over bought and over sold as a label? How can it be coded? I want to modify it with sell or buy for an indicator.
QuantNomad onestar3363
@onestar3363, Here I published a version with few different indicators:
onestar3363 QuantNomad
@QuantNomad, Thank you very much. I used it to modify my indicator.
Hi brother good job can u plz find a way to place the alerts for many scripts at a time to my broker chartlink.com does that it's one minute delay thouh
Startseite Aktien-Screener Forex-Screener Krypto-Screener Wirtschaftskalender Über Chartmerkmale Preise Einen Freund empfehlen Hausregeln Hilfe Center Webseite & Brokerlösungen Widgets Charting Lösungen Lightweight Charting Library Blog & News Twitter
Profil Profileinstellungen Konto und Abrechnung Angeworbene Freunde Coins Meine Support Tickets Hilfe Center Private Nachrichten Chat Abmelden