问题
I am trying to make this script by adding all Binance pairs which are over 250 pairs but I am getting this message: "Script requests too many securities: 48. The limit is 40"
is there any idea to add all Binance pairs? I found this solution but I didn't know how to use it on my code this the solution link: https://kodify.net/tradingview/errors/request-too-many-securities/ and here is my sample code :
//@version=4
study("Custom Screener", overlay = false)
customFunc() => close > open
s1 = security('BTCUSD', '1', customFunc())
scr_label = 'Screener: \n##########\n'
scr_label := s1 ? scr_label + 'BTCUSD\n' : scr_label
lab_l = label.new(
bar_index, 0, scr_label,
color=color.gray,
textcolor=color.black,
style = label.style_labeldown,
yloc = yloc.price)
label.delete(lab_l[1])
plot(0, transp = 100)
来源:https://stackoverflow.com/questions/65798192/requests-too-many-securities-at-pinescript