Crypto Market Cap, BTC/USD, ETH/USD, USDT/USD, XRP/USD, Bitcoin
Apple, Advanced Micro Devices Inc, Amazon Com Inc, TESLA INC, NETFLIX INC, Facebook Inc
S&P 500, Nasdaq 100, Dow 30, Russell 2000, U.S. Dollar Index, Bitcoin Index
US 10Y, Euro Bund, Germany 10Y, Japan 10Y Yield, UK 10Y, India 10Y
Method to do a custom switch that can handle int/float/bool/string type conditions using arrays.
Common String Functions Library by RagingRocketBull 2021 Version 1.0 Pinescript now has strong support for arrays with many powerful functions, but still lacks built-in string functions. Luckily you can easily process and manipulate strings using arrays. This script provides a library of common string functions for everyday use, such as: indexOf, substr, replace,...
www.tradingview.com Following the last example from the link above, I added a function return to plot the calculated RSI value for each ticker. For this, I added the expression of the rsi bult-in function in the security call, to send as a return to the plot function. Ps. I purposely inverted the...
Description: A function that returns a polynomial regression and deviation information for a data set. Inputs: _X: Array containing x data points. _Y: Array containing y data points. Outputs: _predictions: Array with adjusted _Y values. _max_dev: Max deviation from the mean. _min_dev: Min deviation from the mean. ...
In this study, I present a method to expose NaN values to development environment. This exposure allows NaN values to be used by methods in scripts. I also show how to use values, even NaN values, as anchors from...
Description: A Function that returns a linear regression channel using (X,Y) vector points. Inputs: _X: Array containing x data points.¹ _Y: Array containing y data points.¹ Note: ¹: _X and _Y size must match. Outputs: _predictions: Array with adjusted _Y values at _X. _max_dev: Max deviation from the mean. _min_dev:...
20 step red/green gradient function The color gradient function allow colorize any source in 5% steps. Define the source, minimum and maximum value (constant or , for example, bb (or any other channel)).
EXPERIMENTAL: Using keltner channels with automatic multiplier finding, offsets and show_last cutoffs to generate a forecast area. video showing why its named keltner worms :p.. streamable.com
Function - Number of digits before and after the decimal point Detect the number of digits in integers and floats, before the decimal and after it. It also works for negative numbers. There are some rounding issues, but the currently maximum supported number can have safely up to 3 digits after the decimal point.
Hi BIG PLAYERS Each of us makes mistakes and exceptions confirm the rule. However, if you disregard the rules of trading, you lose your money - without any ifs and buts! I have therefore created a reminder label for myself, which trading approaches I always want to stick to. These rules serve me as a guideline when I should trade. Through the permanent...
Description: A Function that returns cluster centers for given data (X,Y) vector points. Inputs: _X: Array containing x data points.¹ _Y: Array containing y data points.¹ _number_of_clusters: number of clusters. Note: ¹: _X and _Y size must match. Outputs: _centers_x: Array containing x data points. _centers_y: Array...
EXPERIMENTAL: this is very experimental and INCOMPLETE, use at your own discretion. thanks glaz for the help :)
Nth-Occurrence Custom barssince() Function by Cryptorhythms Description The vanilla barssince() function in pine only finds the number of bars since the most recent occurrence of the condition. This version allows you to specify an Nth occurrence back to check the bars since! Its also a nice little one liner. I really hope you enjoy it and if you're...
Oftentimes a single look at the candlestick configuration happens to be enough to understand what is going on. The chandlestick function is an experiment in smart labelling that produces candles for various time frames, not only for the fixed 1m, 3m , 5m, 15m, etc. ones, and helps in decision-making when eye-balling the chart. This function generates up to 12 last...
I have not found this function anywhere on Tradingview but it can be very useful in setting orders in a strategy and non-integer boundaries for certain indicator designs. Its a bit underwhelming, but in other languages you can call a mod() function and the output will be the remainder of the integer. If you want to set an order at a specific tick value,...