Updated
QuantNomad - Simple Custom Screener in PineScript

More exclusive indicators from QuantNomad
Subscribe to UT Bot Suite for $9.99/month to get exclusive indicators by this author. You pay right on TradingView and can use them on your charts straight away.
Explore UT Bot SuiteQuite often I need to run screeners with the custom condition, but unfortunately, in TradingView it's impossible.
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())
and
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.
And remember:
Past performance does not guarantee future results.
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())
and
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.
And remember:
Past performance does not guarantee future results.
Release Notes
cleaning the codeQuant Developer | Pine Script v6 | Python & R
12+ yrs in Systematic Trading & Derivatives
🚀 Pro Indicators: qntly.com/pro
📚 Docs: qntly.com/docs
🎁 Free Trial: qntly.com/trial
💼 Quant Advisory: qntly.com/hire
12+ yrs in Systematic Trading & Derivatives
🚀 Pro Indicators: qntly.com/pro
📚 Docs: qntly.com/docs
🎁 Free Trial: qntly.com/trial
💼 Quant Advisory: qntly.com/hire
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Quant Developer | Pine Script v6 | Python & R
12+ yrs in Systematic Trading & Derivatives
🚀 Pro Indicators: qntly.com/pro
📚 Docs: qntly.com/docs
🎁 Free Trial: qntly.com/trial
💼 Quant Advisory: qntly.com/hire
12+ yrs in Systematic Trading & Derivatives
🚀 Pro Indicators: qntly.com/pro
📚 Docs: qntly.com/docs
🎁 Free Trial: qntly.com/trial
💼 Quant Advisory: qntly.com/hire
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.