Cannot call 'request.security' with argument 'symbol'='symbol'. An argument of 'series…
- User
Cannot call 'request.security' with argument 'symbol'='symbol'. An argument of 'series string' type was used but a 'simple string' is expected.
- Assistant
The error message indicates that the function request.security is expecting a simple string argument, but it received a series string argument instead. To resolve this issue, you need to ensure that the argument you pass to request.security is a simple string, not a series string. You may need to convert the series string to a simple string before calling the function.
- User
- Assistant
The script you provided is attempting to display a table with the names of symbols that meet a certain condition (closing price below a 400-period low). However, there seems to be a misunderstanding in the usage of the
request.securityfunction and theinput.symbolfunction in Pine Script.The
input.symbolfunction is used to take a symbol as a user input, not to retrieve data for a specific symbol. To retrieve the closing prices of the symbols in yoursym_list, you need to modify the script to loop through each symbol in the list and use to fetch the data. - User
40 تا جفت ارز با نوسان بالای بینگ ایکس
- Assistant
برای بازیابی اطلاعات قیمت بینگ ایکس برای 40 جفت ارز با نوسان بالا، میتوانید از تابع
request.securityاستفاده کنید. ابتدا باید نمادهای مورد نظر را در لیستی ذخیره کرده و سپس برای هر یک از آنها، قیمتهای بسته را بازیابی کنید و شرط نوسان بالا را بررسی کنید.این قسمتی از کدی که اطلاعات قیمت بسته را برای 40 جفت ارز از بورس بینگ ایکس بازیابی میکند، به صورت زیر خواهد بود:
pinescript