TradingView
zzzcrypto123
10 Sep 2020 pukul 13.11

Supertrend Screener LABEL 

ChainLink / BitcoinBinance

Deskripsi

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.

Catatan Rilis

.
Komentar
Nfaizan
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 ??
zzzcrypto123
@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, Thanks for the reply , can you share a sample version of emojis ?
zzzcrypto123
@Nfaizan, something like

up_label := up01[1] ? up_label + '🟩 ' + t1 + '🟩 \n' : up_label

dn_label := dn01[1] ? dn_label + '🟥' + t1 + '🟥 \n' : dn_label
Nfaizan
@zzzcrypto123, Thank you So much sir
vivkaushik
Getting following error
Add to Chart operation failed, reason: Script could not be translated from: ["White", "Black", "Red", "Green"
zzzcrypto123
@vivkaushik, works for me, u likely didnt copy paste the whole thing
Kamald12
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'
zzzcrypto123
@Kamald12, its warning not error, however just change this line from
t1 = input(title="Ticker1", title=input.symbol, defval="BINANCE:BTCUSDT" )

to

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

and it should be fixed
Th3mA5tEr0n
thanks!!!great job!
Lebih lanjut