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.
Phát hành các Ghi chú: Updated the code for daily timeframe.
Gỡ bỏ khỏi Script Ưa thích Thêm vào Script Ưa thích
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

Bình luận

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)
+16 Phản hồi
pitlordinvesting mohammadamjad48
@mohammadamjad48, code is simple my friend
+4 Phản hồi
misterstealyourgirl pitlordinvesting
@pitlordinvesting, that's not particularly helpful
+2 Phản hồi
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.
+9 Phản hồi
Hi, i received only alerts from the symbol on the chart, from the other 39 symbols nothing! Whats going wrong? Thanks
+2 Phản hồi
Hi! Thanks for this great script. Really saves me a lot of time. I only have one problem. The strategy does not send alerts on the daily timeframe. It works on lower time frames like 1H. Do you have an idea how this could be solved?
+1 Phản hồi
@CMToni, Don't see how that can be possible since the script includes "timeframe.period" which sets the time period based on the main chart...?
Phản hồi
@CMToni, I updated the code for daily timeframe, check now
Phản hồi
hi, QuantNomad,

Will it possible to use loop for switching the stock set?
Example. i have 4 set of share (each 40) . System will 1st run the the Set1 then next to another new Set. and it will give 4 time alert messanges
Phản hồi
QuantNomad sharekid4896
@sharekid4896, Nope, the limit is 40 security calls, there is no way around it.
Phản hồi
Trang chủ Bộ lọc cổ phiếu Bộ lọc Forex Bộ lọc Tiền điện tử Lịch kinh tế Cách thức hoạt động Tính năng Biểu đồ Trả phí Giới thiệu bạn Quy tắc Áp dụng Trung tâm Trợ giúp Giải pháp cho Website & Nhà môi giới Widget Giải pháp biểu đồ Thư viện Biểu đồ Lightweight Blog & Tin tức Twitter
Hồ sơ Tùy chỉnh Hồ sơ Tài khoản và Thanh toán Giới thiệu bạn Xu Ticket Hỗ trợ của tôi Trung tâm Trợ giúp Các ý tưởng đã đăng Người theo dõi Đang theo dõi Tin nhắn riêng Trò chuyện Đăng xuất