MAGAZ LUIZA ON NM, PETROBRAS PN N2, VIAVAREJO ON NM, BANCO INTER PN N2, VALE ON EDJ NM, ITAUSA PN ED N1
Petróleo Brent, Petróleo bruto, Ouro, Prata, Gás natural, Bitcoin
Títulos Americano de dez anos, Título Português de dez anos, Juros de Título Britânico de dez anos, Alemanha 10A, Japão Rendimento 10A, Títulos Europeus
Using the new 'pinescript' array support to build an High/Low tunnel meter. Using the Array to save only X HIGHEST HIGHS and Y LOWEST LOWS. By the X and Y i build a tunnel - X is the top line (highs) and Y bottom line (lows) Green - Up Trending Red - Down Trending Yellow - Reversal / drawback might occur.
Over the years, many FIR filters have been proposed by the Pine community, with the standard way of computing them being `for` loops. The arrival of arrays allows for a new, more efficient way to compute them. This script provides a template showing how you can compute FIR filters using Pine arrays. FIR Filters FIR stands for "Finite Impulse Response", and...
A simple example showing how to create a gradient in a array.
The new feature of arrays allows for a multitude of new possibilities within Pinescript. This script implements a bubble sort function with most probable efficiency of О(n^2) with a best-case being O(n). This sort does not require large amounts of memory to process and has advantages when sorting small lists of data. The main advantages: Bubble sort is an...
Yet another "Low - High" indicator using the new Pine Script Arrays. The indicator uses the latests Lows and Highs to plot a trend line and reversal/slowdown. More detailed explanation inside the script. Enjoy! Green - Up Trending Red - Down Trending White - Slow Down/Reversal might occur. Made for educational purposes of how to use Arrays, yet can be...
Ever wish you didn't have to rapidly flip between 6 different intervals 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 Consolidated Interval Display uses the new Array structure and security to display...
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...
Yet another Array indicator, simple, but efficient which i call ADO. The indicator acts as a COUNTER of when CLOSE closes above OPEN and vice versa based on specified look back period in settings. If we have more Closes above Opens, obviously the indicator will be above ZERO and GREEN, otherwise RED. Optional to smooth it by EMA (true by default). Like if you...
The z-score is a way of counting the number of standard deviations between a given data value and the mean of the data set. Z-score = (x̄ - μ) / (σ / √ n) x̄ = sample mean (using the array.avg function = array(a,close ), where i = 1 to 21) μ = population mean ( = avg(close, n)) σ = standard deviation of the population ( = stdev(close,n)) n = number of 'close'...
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...
Using the new Pine Script array built-ins to join string elements together for label text. The array is sliced to remove extraneous elements.
A low cost function to down sample a array. specially useful for pattern recognition algorithms.
Calcuating SMA on an Array In this script i show you how to calculate SMA on an array. Several values are plotted just for illustration. Steps to follow: - make sure you have an array with values (source array) - create a blank array (pref. with the same size) - call the function array_sma This function fills the empty array with the SMA values of the source array.
The following script is an application of the Z-Score (previous script). Z-Scores can be used in place of standard deviation (sigma) in 'Bollinger Bands'. The average of the sample (x-bar) over 21 days (N) 21 average trading days per month, fixed value The average of the population (mu) over 63 days (n) 63 days per quarter, default is set to 63 Z-Score...
Description: A Function that returns the flat index of a N dimensions array. Inputs: _indices: Array containing dimension indices.¹ _limits: Array containing dimension size.¹ Note: ¹: _indices and _limits size must match. indices must be within dimension size. Outputs: _offset: the flat 1D index. Resources: ...
The script shows a workaround for map in pine-script via drawings. There are few restrictions with them: 1. The size of the map cannot be more that amount of allowed drawings (about 40 by now) 2. Because the map shares the space of drawings throughout the whole script, using drawings with the map must be careful, with handly creating and removing of each drawing,...
The script shows a workaround for arrays in pine-script via drawings. There are few restrictions with them: 1. The length of the array cannot be more that amount of allowed drawings (about 40 by now) 2. Because the "array" shares the space of drawings throughout the whole script, using drawings with the "array" must be careful, with handly creating and removing of...
EXPERIMENTAL: method to create a pseudo array