I created an example script to show how you can create a simple custom screener in Pine Script on your own.
It's not very good, it requires some manual adjustments, it can be improved in some ways, but I think it might work for some tasks.
What do you think? Do you have a better way to implement custom screeners in TradingView?
To run your own conditions you need to implement them in:
customFunc() function and for every ticker you want to include in your search add 2 lines like these with newly defined variable:
s1 = security('BTCUSD', '1', customFunc())
scr_label := s1 ? scr_label + 'BTCUSD\n' : scr_label
I'm not sure that it will work well for more than a few dozen tickers.
But I hope it will be helpful for you.
If you want to hear more from me you can join my Telegram channel: https://t.me/quantnomad
If you want to learn how to code in pine script join my Youtube channel: https://www.youtube.com/quantnomad
If you like my scripts and you want to support me you can donate me some BTC: 3PyTBcq8tabc1hrwvhgUjBfd67SU3i6Hpa
Past performance does not guarantee future results.
I've tried out the script but I've observed that you'll get different results depending on what ticker you're viewing the screener from. I might be wrong. E.g. viewing the screener from BTCUSD gives a different result when compared to viewing the same screener from say ETHBTC.
The condition used is your simple example i.e.
customFunc() => close > open
Permit me to join this line of thought and approach. I'll try and find the answer and solution to this observed problem. Will update here.
Nice job man.