zzzcrypto123

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.
Phát hành các Ghi chú: .
Mã nguồn mở

Với tinh thần của TradingView, tác giả đã xuất bản tập lệnh theo mã nguồn mở, vì thế trader có thể dễ dàng hiểu và tùy chỉnh được. Bạn có thể sử dụng miễn phí, hoặc tùy chỉnh lại mã đã được cấp phép bởi Quy tắc Chung. Bạn có thể sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Bình luận

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 ??
+3 Phản hồi
@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 🟩 🟥 🟨
Phản hồi
Nfaizan zzzcrypto123
@zzzcrypto123, Thanks for the reply , can you share a sample version of emojis ?
+1 Phản hồi
@Nfaizan, something like

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

dn_label := dn01 ? dn_label + '🟥' + t1 + '🟥 \n' : dn_label
Phản hồi
Nfaizan zzzcrypto123
@zzzcrypto123, Thank you So much sir
+1 Phản hồi
Getting following error
Add to Chart operation failed, reason: Script could not be translated from: ["White", "Black", "Red", "Green"
+1 Phản hồi
zzzcrypto123 vivkaushik
@vivkaushik, works for me, u likely didnt copy paste the whole thing
Phản hồi
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 Phản hồi
@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
+1 Phản hồi
thanks!!!great job!
+1 Phản hồi