LineGetPriceOnLogScaleLibrary "LineGetPriceOnLogScale"
This library provides a way to calculate the y-coordinate of a line on a specified bar when the chart scale is Log.
The built-in `line.get_price()` function only works with linear scale and gives incorrect results when the chart is in Log scale.
The library only works with `bar_index` values and `xloc.bar_index`-based lines, `time`-based lines will cause errors to appear.
coordGetPriceLog(x1, y1, x2, y2, xi) Calculates the y-coordinate on the specified bar on the logarithmic scale.
Only coordinates based on bar index are applicable, bar time will throw an error.
Parameters:
x1 : First X coordinate of a line, index of the bar where the line starts.
y1 : First Y coordinate of a line, price on the price scale.
x2 : Second X coordinate of a line, index of the bar where the line ends.
y2 : Second Y coordinate of a line, price on the price scale.
xi : Index of the bar for which the price should be calculated.
Returns: Price of the line on the bar specified in `xi`, on the logarithmic scale.
lineGetPriceLog(_line, xi) Calculates the y-coordinate on the specified bar for the logarithmic scale. Takes a line.
Only lines drawn based on `xloc.bar_index` are applicable, `xloc.bar_time` will throw and error.
Parameters:
_line : The line for which the price is calculated.
xi : Index of the bar for which the bar should calculate the price.
Returns: Price of the line on the bar specified in `xi`, on the logarithmic scale.
LOGARITHMIC
log-log Regression From ArraysCalculates a log-log regression from arrays. Due to line limits, for sets greater than the limit, only every nth value is plotted in order to cover the entire set.
Auto Phivots S/R [DM]Greetings colleagues
Today I share the classic pivot points indicator
Added options:
Standard levels
Fibonacci levels "up to 261'8"
Logarithmic scale option
//Pivot Points Standard
//Pivot Points Standard — is a technical indicator that is used to determine the levels
//at which price may face support or resistance. The Pivot Points indicator consists of
//a pivot point (PP) level and several support (S) and resistance (R) levels.
//
//Calculation
//PP, resistance and support values are calculated in different ways, depending on
//the type of the indicator, specified by the Type field in indicator inputs. To
//calculate PP and support/resistance levels, the values OPENcurr, OPENprev, HIGHprev,
//LOWprev, CLOSEprev are used, which are the values of the current open and previous
//open, high, low and close, respectively, on the indicator resolution. The indicator
//resolution is set by the input of the Pivots Timeframe. If the Pivots Timeframe is set
//to AUTO (the default value), then the increased resolution is determined by the
//following algorithm:
//
//for intraday resolutions up to and including 15 min, DAY (1D) is used
//for intraday resolutions more than 15 min, WEEK (1W) is used
//for daily resolutions MONTH is used (1M)
//for weekly and monthly resolutions, 12-MONTH (12M) is used
Bitcoin Logarithmic Fractal Growth Model By ARUDDThis model, which I'm calling the Logarithmic Fractal Growth Mode (L.F.G) , uses Bitcoin's mathematical monetary policy to evaluate the future possible price valuation.
It takes into account fractal (and logarithmic) growth as well as how those who hold bitcoins might react to certain events such as changes in supply and demand. It also shows that it is mathematically logical that someday it must become stable.
The information gained from knowing this helps people make more informed decisions when buying bitcoin and thinking of its future possibilities.
The model can serve as some type of general guideline for determining how much bitcoins should be worth in the future if it follows a certain path from its current price.
Modeling Bitcoin's money supply mathematically, and knowing that there is a finite number of them, makes this whole process much more rational than just thinking about the possibilities in pure subjective terms.
Before going any further I want to say that no one can know with absolute certainty what will happen to bitcoins price in the future, but using mathematics gives us an idea of where things are headed.
The results presented here are based on very reasonable assumptions for how bitcoin might continue to grow (and then level out) once there are over 21 million bitcoins in existence.
The model shows that bitcoin's price can never go down to zero (thus creating the "death spiral" phenomenon), and as such, bitcoin has an extremely high probability of becoming stable as it approaches infinity.
Conversely, this model also shows that at some point there is a high probability that bitcoin will not continue to grow exponentially forever.
Credit goes to Quantadelic for the awesome original script.
ARUDD
Log Scale Linear RegressionThis indicator is basically the standard linear regression but adjusted to be suitable for log scale.
You can use 2 different standard deviation values, choose the data source and lookback length.
The colors are chosen directly on the main menu.
Enjoy!
Fiveral: Repulsion/Golden Radio HackAnother in a series of experimental indicators using logarithmic scale visualisation.
This one extends into some work on I've been doing on 'the cube', but Pine isn't liking multiple log lines even when the equations are included for each plotted variable, meaning, no variables used in the definition of a variable, as is done here. As a result, accuracy of this indicator can't be guaranteed between scales, or during use.
Have at it, and enjoy!
Repulsion: Price & Volume 1Repulsion: Price & Volume 1
www.quantamagazine.org
Proof of concept using the above link and comparisons of price and volume, and one of a series stemming from the so-called Repulsion Engine, now also open sourced, and other indicators from the workbench.
Traffic lights are not accurate.
Like it if you use it, drop a line if you update it -- or if you have comments about how to improve it.
Log MACDThis is just a MACD indicator using the log of the closing price rather than the normal closing price. Useful for exponentially growing stocks and cryptocurrency.
Logarithmic Regression (Weekly)This script is a combination of different logarithmic regression fits on weekly BTC data. It is meant to be used only on the weekly timeframe and on the BLX chart for bitcoin. The "fair value" line is still subjective, as it is only a regression and does not take into account other metrics.
Linear Regression (Log Scale)This code is a slightly modified version of Tradingviews' built-in "linear regression" script which can be correctly plotted on logarithmic charts.
Logarithmic regressionLogarithmic regression (or known as Tseng's tunnels), is used to model data where growth or decay accelerates rapidly at first and then slows over time.
This model is for the long term series data (such as 10 years time span).
The user can consider entering the market when the price below 25% or 5% confidence and consider take profit when the price goes above 75% or 95% confidence line.
Technical issues
*The user have to pan over the chart from the beginning to the end of the study range (such as 10 years of bars) so the pine script could generate those regression lines on the chart.
*If on the chart the number of bar is less than the lookback period, it won't generate any lines as well
My BTC log curveLogarithmic regression of the USD price of Bitcoin , calculated according to the equation:
y=A*exp(beta*x^lambda + c) + m*x + b
where x is the number of days since the genesis block. All parameters are editable in the script options.
Bitcoin Logarithmic Curves OscillatorThis a companion indicator for the Bitcoin Logarithmic Growth Curves indicator.
This is an oscillator version of the above. When the indicator is at / near 1 then Bitcoin price is at / near the upper range of its long-term logarithmic growth trend. When at / near 0 then price is at / near the lower range of that trend.
This indicator only works with the BLX Brave New Coin Index (ticker:BLX) and only on 1 day, 3 day, or 1 week timeframes.
AlAlawi ~ Volume Confidence BreakoutThis is a Volume statistical mean and Lognormal deviation
This indicator shows X amount of Volume bars Lognormal Mean and Standard Deviation, then applies your confidence level.
Just hit like to keep getting free indicators!
Bitcoin Fibonacci Log RegressionThe "Zero Line" is the calculated logarithmic regression of Bitcoin over the last decade.
The rainbow above the Zero Line are the Fibonacci multiples from 0 --> 1 of the log regression (0.236, 0.382, etc.)
The rainbow below the Zero Line is identical, except that the multiples are negative (-0.236, -0.382, etc.)
For the first time ever, Bitcoin broke through the Zero Line (the natural regression) when it dumped on March 12-13. It looked at though the regression was invalidated when, in fact, it simply made an unprecedented move to a lower Fibonacci multiple.
Enjoy.
Logarithmic Moving AverageLogarithmically weighted moving average.
Here is how weight is distributed in LMA and RMA (exponential moving average)
As you know, logarithm of 1 is 0... This means the last bar in specified period will be ignored, and the log curve above applies to LMA of 9 bars.
So one bar should be added to the length when calculating the weight.
Result is faster than simple moving average, but a bit slower than linearly weighted moving average.
Bitcoin Logarithmic Growth Curves & ZonesI found this awesome script from @quantadelic and edited it to be a bit more legible for regular use, including coloured zones and removing the intercept / slope values as variables, to leave space for the fib levels in the indicator display. I hope you all like it.
Dumb Indicator 21 - Function's Candlestick Bar's StyleThe idea is help traders to see the patterns and levels from a different point o view.
This script create candlestick using the opening, high, low and close price as source on your favorite function.
It's very simple to use:
Select a function in the drop box list, the number of bars length, check or uncheck the boxes to treat source as logarithm, smooth, and if you want to plot the SMA from the results.
To make a deeper analysis, you can select to plot the candles in Stochastic or in Percent Rank way.
The Stochastic and Percent Rank plot will show how far the price is close to highest or lowest value of the source from the last "Stochastic Length" number of bars.
Some functions with different names can plot the same results.
This indicator works on every kind of market, but you will need to find the best function and length to use.
Please, if you find anything good with this, share to everyone.
log 3EMAlogarithmic exponential moving average
plots 3 lines instead of 1
default is 50,100,200
use standard scale instead of log, for this to work properly.
BTC tip jar: 1Mv1s7nLaTsRoLai5WXEGg8doisXuiPUXy
ETH tip jar: 0x6113DDD23D0D5aCad3d1f8640A8A571E9Cb86cB8
LTC tip jar: LYvyoqTSWxa22TQw3E7818xy4AfYNi6xcm
BCH tip jar: 1GC7oZ7MhLkamKCDdZFnUfV21SKWq84VdY