A simple screener that scan thru multiple pairs for a setup.
The screener have as example an EMA 50 cross, so you have to change it with your indicator/strategy.
You can use a maximum of 40 security() function, right now there are 20, so you can have a total of 40 pairs.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


nice script
+1 Reply
Amazing script! If I wanted to use another EMA in a higher timeframe, how could I do it? Example, in 5m close is greater than ema50 and in 30m close is greater than ema50. Do you think it is possible to put together a script like this?
Zekis mincho1010
@mincho1010, add this and stay on 5m chart

study("My Script", overlay = true) 

ema50 = ema(close, 50) 

ema50_30m = security(syminfo.tickerid, "30", ema50) 
close_30m = security(syminfo.tickerid, "30", close) 

condition = close > ema50 and close_30m > ema50_30m 

plot(ema50_30m, color = color.yellow)
+1 Reply
@Zekis, Thanks man!! Is it possible to add an alarm to your script to sound when the conditions are met in an asset?
Zekis mincho1010
alercondition(condition, "Close above EMA", "Close above EMA")
but this will trigger the alert every candle when the close is above ema, you need instead a crossover condition, which you have to figure it out how can be done :)
+1 Reply
@Zekis, Thanks!!!
@Zekis, I couldn't get the alarm to go off. I tried many things. What would be great is that every time a new asset goes long / short the alarm sounds warning that this new asset has entered a trend. I mean, if a new asset is added to the screener list an alarm warns
How would you get alerts sent for when one of the pairs goes short and vice versa
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out