Keltner Channel Bands Great indicator for mean reversion strategies. Alerts you can set: Crossover EMA Crossunder EMA Crossover upper band Crossunder upper band Crossover lower band Crossunder lower band Have fun!
This script tells you the percentage of time an instrument's closing value is above and below a level of your choosing. The background color visually indicates periods where the instrument closed at or above the level (red) and below it (blue). For "stationary-ish" processes, you can get a loose feel for the mean, high, and low values. The historical information...
The augmented Dickey-Fuller test (ADF) is a statistical test for the tendency of a price series sample to mean revert . The current price of a mean-reverting series may tell us something about the next move (as opposed, for example, to a geometric Brownian motion). Thus, the ADF test allows us to spot market inefficiencies and potentially exploit this...
When you think of the question "take the mean of this dataset", you'd normally think of using the arithmetic mean because usually the norm is equal to 1; however, there are an infinite number of other types of means depending on the function norm (p). Pythagoras' is credited for the main types of means: his harmonic mean, his geometric mean, and his arithmetic...
This Indicator shows the Absolute Rate of Change in correlation to its Moving Average. Values over 3 (gray dotted line) can savely be considered as a breakout; values over 4.5 got a high mean-reverting chance (red dotted line). This Indicator can be used in all timeframes, however, i recommend to use it <30m, when you want search for meaningful Mean-Reverting...
Inspired by the Brownian Motion ("BM") model that could be applied to conducting Monte Carlo Simulations, this indicator plots out the Drift factor contributing to BM. Interpretation : If the Drift value is positive, then prices are possibly moving in an uptrend. Vice versa for negative drifts.
Alpha Trading - Deviation Log Pro Here at Alpha Trading we love our indicators built on returns. In our view, the only way to play divergences in Trading is divergences between Returns based oscillators and Price. The Alpha Trading Deviation Log Pro displays a mean of log returns, with returns and price both weighted using our proprietary root mean square (RMS)...
Absolute Mean Entropy with Alpha Squared Entropy Price Percentile Entropy The history of the word ―entropy can be traced back to 1865 when the German physicist Rudolf Clausius tried to give a new name to irreversible heat loss, what he previously called ―equivalent-value. The word ―entropy was chosen because in Greek, “en+tropein” means “content...
Some functions to handle Arithmetic Geometric Mean.
Purple means the concavity is down blue means concavity is up which is good. Yellow means increasing, Red means decreasing. Sup = Green Res = Red
Shows the coefficient of variation defined as standard deviation over mean (for the specified window).
My first try to implement Full Hurst Exponent. The Hurst exponent is used as a measure of long-term memory of time series. It relates to the autocorrelations of the time series and the rate at which these decrease as the lag between pairs of values increases The Hurst exponent is referred to as the "index of dependence" or "index of long-range dependence". It...
This is a simplified version of the Hurst Exponent indicator. In the meantime, I'm working on the full version. It's computationally intensive, so it's a challenge to squeeze it to PineScript limits. It will require some time to optimize it, so I decided to publish a simplified version for now. The Hurst exponent is used as a measure of long-term memory of time...
My HL2MA is a 'proprietary' formula based on the idea that I never again want to see a jagged average line. I released a version of this a long time ago, but I wanted to update it to how I have it on my charts in other platforms. Here are some notes about this moving average script: The default input value is 5, and I suggest the range of use 4-6 with the...
What? This indicator contains a bunch of tools based on volume metrics. Content The indicator includes: Bar coloring that shows whether each move is supported by volume or not Chess symbols that show when there is significant volume during a break-out or break-down Triangle shapes based on the deviation of price compared to a volume weighted moving...
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...
© fareidzulkifli Disclaimer: I always felt Pinescript is a very fast to type language with excellent visualization capabilities, so I've been using it as code-testing platform prior to actual coding in other platform. Having said that, these study scripts was built only to test/visualize an idea to see its viability and if it can be used to optimize existing...