This scripts shows a tool which enables switching between settings without opening the settings
In this case you can switch between a RSI of 3 different tickers, 3 different higher timeframes, and 4 different lengths.
How does it work?
The position of a 'time line' is compared with the position of a box.
Changing the position of the line changes the...
This is an experimental work to show 10 moving averages in 3D by using linefill.new() feature of the Pine language.
You can set moving average type as Simple (SMA) or Exponential (EMA)
You can set "Starting Length" and set the "Step" to calculate other lengths. For example; if "Starting Length" is 10 and "step" is 5 then the lengths are 10, 15, 20,...
this is a work in progress (WIP) and prone to have some errors, so use at your own risk...
let me know if you find any issues..
Method for a generalized Neural Network.
network(x) Generalized Neural Network Method.
x : TODO: add parameter x description here
Returns: TODO: add what function returns
Methods for decomposing price into common grid/matrix patterns.
series_to_array(source, length) Helper for converting series to array.
source : float, data series.
length : int, size.
Returns: float array.
smooth_data_2d(data, rate) Smooth data sample into 2d points.
In regular scenario divergence calculation follows these procedure
Pivots on price are considered as primary source
They are compared with pivots on oscillators
Trend bias of price is used
This is an experimental version where
Pivots on oscillators are considered as primary source
They are compared with pivots on price
This is an experimental study aimed to find historical patterns of current trend movement.
▶ Derive zigzag pivots based on Length and Source
▶ Based on the Loopback Pivot settings devise a pattern string based on predetermined language which correlates all the pivots within the given range.
▶ Preserve pattern in an array along with bar index
This is not an indicator, just for fun and testing out the new table functions.
Requires bar replay to calculate (quickly) one generation to the next.
A random pregen seed and a few other known seeds picked at random. The limited grid dimensions affect the outcome for some.
Oops - I pasted this into my public published chart, so here it goes again.
Here's my first shot at learning PineScript. I have adapted Kıvanç Özbilgiç's Turtle Trade PineScript :
I've also added an 83-year semi-log detrended SP500 index, which is explained at :