ALL Ticker ID informationAn 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 это дает дальнейшую обработку скрипта без ошибок.
Examples
CC - Array-meta Consolidated Interval Display (ACID)This script extends my other two Array examples (which I've also provided to you open source):
The Ticker-centric 5m,15m,45m,1h,4h,1d resolution labels using arrays:
And the more Macro VIX,GLD,TLT,QQQ,SPY,IWM 1d resolution labels using arrays:
This script aims to show how to use min/max/avg with Arrays easily. My next example after this will be exploring the usage of variance versus covariance ratios over different periodic interval resolutions. Currently, this is using the following intervals: 5m,15m,45m,1h,4h,1d. It takes these intervals, calculates the values at those resolutions and puts the absolute min and max from the 5 minute to the 1 day resolutions.
It's more of an example of the power that arrays can hold, as all this truly is right now is a min/max bound calculator. The real gem lies in the avg calculators for multiple resoltuions tied into a single label with readable data. Check out the code and let me know what you think. If you need more examples, the other two scripts I mentioned before are also open source.
Using this on intervals of less than 1D sometimes times out, the way I wrote it is memory intensive, may not work for non-pro users.
Thanks!
NONE OF THIS IS FOREWARD LOOKING STATEMENTS, THIS IS NOT A PREDECTIVE ANALYSIS TOOL. THIS IS A RESEARCH ATTEMPT AT A NOVEL INDICATOR. I am not responsible for outcomes using it.
Please use and give criticisms freely. I am experimenting with combining resolutions and comparing covariance values at different levels right now, so let me know your thoughts! The last indicator will likely not be open source, but may be depending on how complex I get.
CC - Macro Consolidated Interval Display (MCID)Ever wish you didn't have to rapidly flip between 6 different tickers to get the full picture?
Yeah, me too. Do you also wish that you kind of understood how the shift / unshift function works for arrays?
Yeah, I did too. Both of those birds are taken care of with one stone!
The Macro Consolidated Interval Display uses the new Array structure and security to display data for VIX, GLD, TLT, QQQ, SPY and IWM (at a 1D interval) SIMUTANEOUSLY! Regardless of which ticker you're looking at you can get the full picture of macro futures data without flipping around to get it.
This is my first script trying to use arrays. It basically shows the following a 1d interval:
ATR14, RSI7, RSI14, SMA50, SMA200 and VWAP for VIX.
ATR14, RSI7, RSI14, SMA50, SMA200 and VWAP for GLD.
ATR14, RSI7, RSI14, SMA50, SMA200 and VWAP for TLT.
ATR14, RSI7, RSI14, SMA50, SMA200 and VWAP for QQQ.
ATR14, RSI7, RSI14, SMA50, SMA200 and VWAP for SPY.
ATR14, RSI7, RSI14, SMA50, SMA200 and VWAP for IWM
To make it more or less busy, I've allowed you to toggle off any of the levels you wish. I've also chosen to leave this as open source, as it's nothing too experimental, and I hope that it can gain some traction as an Array example that the public can use! If you don't like the different values that are shown, use this source code example as a spring-board to put values that you do care about onto the labels.
If this code has helped you at all please drop me a like or some constructive criticism if you do not think it's worth a like.
Good luck and happy trading friends. This should be compatible with my CID as well:
If this gets traction, I will post something similar for a dynamic combination of tickers and intervals that you can set yourself.
Earnings, Splits, DividendsExample of requesting Earnings, Splits, Dividends using pine-script.
That way is inner representation of data in TradingView, so it can be changed any time. It's just an example of requesting of the data.
Description of the series.
Earnings:
time: report date (unix time stamp)
open: estimate value
low: reported value
close: actual value
high: fiscal period (unix time stamp)
Splits:
time: split date (unix time stamp)
close: split denominator
open: split numerator
Dividends:
time: ex-dividend date (unix time stamp)
close: amount