Supertrend Screener LABEL

This screens for Supertrend reversal's in 10 different securities. The main logic for the screener is taken from "Simple Custom Screener in Pinescript" by QuantNomad with his permission. If the label color is not visible due to the text in it being white colored, then choose a different color from settings. Also added a simple supertrend to it.

Terminology explanation:
Confirmed Reversal: Supertrend reversal that happened in the last bar and cannot be repainted.
Potential Reversal: Supertrend reversal that might happen in the current bar but can also not happen depending upon the timeframe closing price.
Uptrend/Downtrend : Shows all the tickers that are either currently in uptrend or downtrend.
Release Notes: .
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?


Amazing Work , is it possible in screener under uptrend text turns green and in downtrend the color shows red ? in potential upside reversal it turns yellow and potential downside it turns orange ? and confirm reversal upsdie aqua and confirmed downtrend black ??
+2 Reply
@Nfaizan, thanks, i dont think so most likely you will need to create multiple labels if want to change color for text. also that will create problems with overlapping labels so will have to position it in such a way such that the texts dont overlap. a simpler solution would be to just add emojis inside the text something like 🟩 🟥 🟨
Nfaizan zzzcrypto123
@zzzcrypto123, Thanks for the reply , can you share a sample version of emojis ?
+1 Reply
@Nfaizan, something like

up_label := up01 ? up_label + '🟩 ' + t1 + '🟩 \n' : up_label

dn_label := dn01 ? dn_label + '🟥' + t1 + '🟥 \n' : dn_label
Nfaizan zzzcrypto123
@zzzcrypto123, Thank you So much sir
+1 Reply
Getting following error
Add to Chart operation failed, reason: Script could not be translated from: ["White", "Black", "Red", "Green"
+1 Reply
zzzcrypto123 vivkaushik
@vivkaushik, works for me, u likely didnt copy paste the whole thing
I have getting error of below
ine 10: Using argument with the same name 'title'
line 11: Using argument with the same name 'title'
line 12: Using argument with the same name 'title'
line 13: Using argument with the same name 'title'
line 4: Using argument with the same name 'title'
line 5: Using argument with the same name 'title'
line 6: Using argument with the same name 'title'
line 7: Using argument with the same name 'title'
line 8: Using argument with the same name 'title'
line 9: Using argument with the same name 'title'
+1 Reply
@Kamald12, its warning not error, however just change this line from
t1 = input(title="Ticker1", title=input.symbol, defval="BINANCE:BTCUSDT" )


t1 = input(title="Ticker1", type=input.symbol, defval="BINANCE:BTCUSDT" )

and it should be fixed
thanks!!!great job!
+1 Reply
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