An example and overview of the syminfo and tickerid functions to be able to access different tools. Here is an example of accessing the Bitfinex exchange (and requesting "instrument name") when another exchange is open (BINANCE:BTCUSDT) There is a difference in name between BINANCE:BTCUSDT and BITFINEX:BTCUSD exchanges
Try swapping // T = "BITFINEX:"+str.tostring(syminfo.basecurrency)+"USDT" //T = "BITFINEX:"+str.tostring(syminfo.basecurrency)+"USD" The script will show that this instrument does not exist "Error in the value of the instrument. There is no such currency!" Implemented Resolve error handling with the ignore_invalid_symbol=true parameter, this gives further processing of the script without errors. ---------------------------------------------------------- Пример и обзор функций syminfo и tickerid для возможности доступа к разным инструментам. Здесь реализован пример доступа к бирже Bitfinex(и запрос "названия инструмента"), когда открыта другая биржа (BINANCE:BTCUSDT) Существует разница в названии между биржами BINANCE:BTCUSDT и BITFINEX:BTCUSD
Попробуйте поменять // местами T = "BITFINEX:"+str.tostring(syminfo.basecurrency)+"USDT" //T = "BITFINEX:"+str.tostring(syminfo.basecurrency)+"USD" Скрипт выдаст, что данного инструмента нет "Ошибка в значении инструмента. Такой валюты нет!" Реализована Обработка ошибки Resolve error с помощью параметра ignore_invalid_symbol=true это дает дальнейшую обработку скрипта без ошибок.
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menerbitkannya sebagai sumber terbuka, sehingga para trader dapat memahami dan memverifikasinya. Hormat untuk penulisnya! Anda dapat menggunakannya secara gratis, namun penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk digunakan pada chart
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.