Hello! This little script tells you everything TradingView lets you access in a ticker's syminfo in Pine Script: - description - type: crypto, economic, forex, fund, futures, index, spread, stock - tickerid, such as AMEX:BLOK - prefix, such as AMEX - Ticker, such as BLOK - root: for derivatives such as futures contracts - currency, such as USD - base currency:...
█ OVERVIEW Here I present to the community at large a collection of code comment blocks that I think will be useful, especially for larger script projects bordering on 2,000 lines or above of code. █ PLANNED FUTURE UPDATES Work with the community to expand this template to be even more useful with the inclusion of useful global colour sets,...
An utility function to parse session inputs. Extracts hours, minutes and weekdays (if defined) and returns a tuple as the result. _parseSession(sessionString) => (hourStart, minuteStart, hourEnd, minuteEnd, weekdaysArray) Examples presented on the chart.
function to get sorted indices from a array using bubble sort.
This is a simple utility which counts the number of bars and time elapsed after starting the script. This can be used in time or bars based conditions to modify script behavior. This particular script does the following: Starts timer when script is added to chart Timer is green when starting and continues to be in green if the right Auth key is used in...
When designing filters it can be interesting to have information about their characteristics, which can be obtained from the set of filter coefficients (weights). The following script analyzes the impulse response of a filter in order to return the following information: Lag Smoothness via the Herfindahl index Percentage Overshoot Percentage Of Positive...
Some functions to handle Arithmetic Geometric Mean.
Introduction Bands and trailing stops are important indicators in technical analysis, while we could think that both are different they can be in fact closely related, at least in the way they are made. Bands and trailing stops can be made from a simple central tendency estimator, like a moving average, and from a volatility estimator like standard deviation,...
experimental: a basic method to evaluate stock dividend periodicity. known issues: * it does not adapt well to changes in periodicity, if there is a big enough change on the dividend period plan.
Basic utility script to keep track of key dates & expiries.
HISTORY AND CREDITS ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– Recreating the Labels functionality of ThinkorSwim. The most important labels for momentum trading. I have been using these over the years and am considering this my star indicator. I have included various methodologies from reading many trading books....
Functions to handle Box-Cox Transform from sample data.
a function for relative weighted average using arrays
Function to calculate a forecast using a linear regression approach, this is the same function used on excel and other data sheet programs. reference: - support.microsoft.com - stackoverflow.com
Function to create a array from a sample taken from a series (ex:. close, hlc3...).
Based on Sort pseudo-array v2 by apozdnyakov - fixed issue where if the same number is repeated in the list it gets skipped - replaced hardcoded 10000 and -10000 values with na in case those values are in the list - added sort_all to demonstrate how to sort a list if the length is fixed
This simple script checks for data gaps in an intra-day TradingView chart. I have found that BitMEX 1-minute data is coming in rather holey lately, so I wrote this just to see how prevalent the problem is. It should work on any intra-day timeframe, not just 1-minute. V1: initial release.