TradingView
QuantNomad
Sep 12, 2019 8:03 PM

QuantNomad - Simple Custom Screener in PineScript 

Bitcoin / U.S. dollarBitstamp

Description

Quite 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.

Release Notes

cleaning the code
Comments
NBusiness
Simple but useful. Good stuff, thank you for sharing!
kiero
Excuse me, what does the screener show? That a pair has done waht?
ibaris
@kiero, "I created an example script to show how you can create a simple custom screener in Pine Script on your own.". It is not that hard to read!
Tr0sT
Thx for the idea. I wrote more complex screener based on your script. tradingview.com/script/SWbjKVaT-Custom-Screener/
thiagofnsouza
@Tr0sT, post the code pls
Tr0sT
@thiagofnsouza, what do you mean? my script is already open sourced
patel.sagarinn
sir i hava a strategy of which could get you more deep in this to make me this kind of indicator for me and might also could help you also
so can you help me in regarding to make this screener in pine script
rpalsaxena
Can we create a screener directly from the securities that are in the watchlist?
QuantNomad
More