Requests too many securities at PineScript

三世轮回 提交于 2021-01-29 20:10:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!