Custom Screener

I was inspired by this idea:   40 tickets or less. But to make a separate screener for every 40 stocks sucks, so I wrote a program that generates script that allows you to switch stock sets.

Current script is generated for the Moscow stock exchange.

You can contact me if you need screener for your exchange or big set of stocks.
Phát hành các Ghi chú: A lot of people were asking how to add alerts to this screener, so I updated it.
Unfortunately, you can't attach a list of triggered tickers to the alerts message, but you can generate codes to understand later using another script (which decrypts them) which tickers have been triggered.
I'm not going to put an open source decrypt script, but I can do screener&decrypt script for your list of tickers (even 300+ tickers) for 40$ (and another pine script tasks as well).
Phát hành các Ghi chú: Big update!

Now you can enter the tickers in the script settings (12 available, but you can add more, up to 40). There are separate signals for long and short (modify LongSignalFunc() and ShortSignalFunc() for your indicators). Screener displays the triggered signals in its own panel, so you no longer need a separate script to decrypt the alerts.

Phát hành các Ghi chú: Uncomment lines with strategy (1 line on the top and 4 on the bottom) and while creating the alert insert {{strategy.order.alert_message}} in the alert creation window in message field to receive triggered ticker's list in the alert messages.
Phát hành các Ghi chú: There is also a new alert in study, that combines long and short signal - for free TV users.
Gỡ bỏ khỏi Script Ưa thích Thêm vào Script Ưa thích

Bình luận

So what does this screener show? That a stock has done what?
+14 Phản hồi
Tr0sT kiero
@kiero, whatever you want. You can implement your own customFunc() and choose stocks with your own conditions.
+4 Phản hồi
kiero Tr0sT
I see, thank you. I need to know coding then.
Phản hồi
@Tr0sT, this is awesome! I was just thinking of something like that and viola, you did it! Thank you so much...

This screener displays the ticker symbols that fulfil the custom condition on the last bar of the Index chart correct?

Few questions here...

1. I noticed a repetition with set of 5 or 6 ticker symbols. So to recreate for a new exchange and tickers (in a watchlist), I just need to replace the tickers appropriately correct?

2. Since MOEX is named, does this only appear when MOEX chart is observed?

3. What’s the GAZP at the end for?

4. Does this code look at end of day or real time qualification of the custom function?
Phản hồi
Tr0sT Auguraltrader
@Auguraltrader, yes, but custom condition is not just for the last bar - you can use any complex condition - basically any custom indicators can be used in stock filtering.
1. Yes. You need to replace tickers and exchange's name. For example, i have separate watchers for binance bnb pairs, usdt pairs, moex futures...
2. No, script will have same behavior on every chart.
3. In order to work correctly with 7 sets number of tickers needs to be multiple of 7. But number of MOEX stocks is less, so i used ticker GAZP as a plug to fill voids.
4. Real time, as any other indicator. But if you will use it as an alerts provider it can be customized.
Phản hồi
@TrOsT The code works well. I added an alert to it. However, the alert only works on the particular ticker in which the alert was set. In other words, if you set the alert when ENPL chart was on your screen, that is the only ticker in which the alert will be active. Any idea how to get a workaround so the alert works for all the tickers and not just the one?
+6 Phản hồi
Tr0sT j_rock
@j_rock, that's strange. the alerts work no matter which ticker the script is on.
Phản hồi
j_rock Tr0sT
@Tr0sT, have you added any specific alerts to this? I added my own parameter, of the slope of a moving average changing from negative to positive. When activating the alert through the chart, it will only work for one specific ticker. I am hoping I can get that to work.
Phản hồi
Tr0sT j_rock
@j_rock, just updated the source code - check it out. I use this version to get alerts and it works no matter which ticker the alert was set
Phản hồi
j_rock Tr0sT
@Tr0sT, Thanks man. I will check it out. I appreciate the work you have put in.
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