QuantNomad

Custom Screener with Alerts [QuantNomad]

Some time ago I published an example of simple custom screener in PineScript:


The only thing this screener did is created a dynamic label with screener output.
Recently TradingView announced alerts from the strategy with the possibility to add custom messages to alerts.
So using it I was able to create a bit more advanced screener which sends results as alert messages. With tools like Alertatron, you can easily redirect them to Telegram if you want.

It works for 40 symbols (limitation of the number of security calls).
To create your own screener you need to change only screenerFunc. The logic of this function is very simple, it outputs value you want to display in screener and condition based on which your screener should filter your stocks.

To create alerts for this screener create an alert from strategy and use {{strategy.order.alert_message}} as alert message.

Do you know now how to make this screener better? Let me know.


Disclaimer
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.
Von Favorisierten Skripten entfernen Zu Favorisierten Skripten hinzufügen
Courses:
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

Kommentare

Hi QuantNomad,
Sir i want to know, how can i add a condition instead of RSI > 70,
the Condition which i want to add is blow:

Buy signal alert when "Moving average 21 crossover 28 Moving average". (in daily time frame)
sell signal alert when " crossunder (close,28 Moving average) ". (in daily time frame)
+11 Antworten
pitlordinvesting mohammadamjad48
@mohammadamjad48, code is simple my friend
+1 Antworten
misterstealyourgirl pitlordinvesting
@pitlordinvesting, that's not particularly helpful
Antworten
According to this script, can you explain for it?

scr_label := c01 ? scr_label + s01 + ' ' + tostring(roundn(v01, 3)) + '\n' : scr_label

because i just found a way to insert more selection of stock.i am going to modify your scipt due to too many local scope.
+4 Antworten
IF YOU GUYS DON'T KNOW!! This guy has a pinesctrip programming course and wowee is it freaking good, I've bought and paid for other courses on Pine Script and learned some stuff but still felt like I had not clue what was going on, QuantNomad's course is freaking lightyears better than the others, his stuff is just much much much much more comprehensive.

The only improvement he could make is to spend more time on analysing strategy results on the course. I don't think everyone knows what the look for and his experience and expertise would really help.
Antworten
Useful indicator, seems like there are issues using this on lower time frames, but works brilliantly for me on 3 day charts
Antworten
Thanks for this script .. what is the time of this variant "timeframe.period"?
Antworten
WHoa this is pretty awesome. I'm going to try and use this on my script to see if It works with my custom conditions
Antworten
Hi QuantNomad,
Thanks for your nice work.
Instead of using "RSI" condition i want to change to Super Trend/ATR uptrend signal. In below is the script

Up=hl2-(3*atr(22))
Dn=hl2+(3*atr(22))
TUp=close>TUp? max(Up,TUp) : Up

Trend = close< TUp? -1: nz(Trend,1)

Tsl1 = Trend==1? TUp: TDown
Tsl2 = Trend==1? TDown: TUp

linecolor = Trend == 1 ? green : red

plot(Tsl1, color = linecolor , transp = 15 , style = line , linewidth = 2,title = "SuperTrend ATR")

Please help .... Thanks
Antworten
QuantNomad TilekLekti
@TilekLekti, I don't have time you write code for you. Idea is that you have to wrap this code into a function.
Antworten
Startseite Aktien-Screener Forex-Screener Krypto-Screener Wirtschaftskalender So funktioniert es! 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 Veröffentlichte Ideen Followers Ich folge Private Nachrichten Chat Abmelden