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...
This is a strange experimental strategy WIP that I decided to upload an early version to share some of what I am working on. Just one script of a few.
It combines Chande Momentum with RMI and some weird ones I am experimenting with - Triple Hull MA RSI, Double Exponential + Volume Weighted RSI, Triple Exponential RSI. And to top it off, a final oscillator that...
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...
For long time I thought that if it's possible to make a script that has own memory and criterias in Pine. it would learn and find patterns as images according to given criterias. after we have arrays of strings, lines, labels I tried and made this experimental script. The script works only for Long positions.
Now lets look at how it...
Volatility compression/expansion indicator calculated from the ratio of the area of the candles to the area of a rectangle encompassing the candles over n bars.
Generally during a squeeze or compression the ratio between the candles and the rectangular area increases, ie the candles occupy a larger portion of the rectangle, and vice versa during a...