Here is my interpretation of the "Best Time To Buy" Bitcoin over its lifetime using a logarithmic regression trendline. The upper and lower lines are 10% deviations from the centre line. I calculated the trendline in excel and then coded my results into pine script.
I'm building quite a lot of pretty complicated indicators/strategies in Pine Script. Quite often they don't work from the 1 try so I have to debug them heavily. In Pine Script there are no fancy debuggers so you have to be creative. You can plot values on your screens, check them in the data window, etc. If you want to display some textual information, you can...
Calculates 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.
The main concept for creating this was to completely remove the whipsaw nature of VWAP by introducing lag. References: www.investopedia.com www.investopedia.com www.investopedia.com
Portfolio Metrics **New** 'returns' 'log returns' 'geometric returns' portfolio alpha portfolio beta portfolio,market correlation portfolio standard deviation portfolio variance mean portfolio returns maximum drawdown maximum gain
This code is a slightly modified version of Tradingviews' built-in "linear regression" script which can be correctly plotted on logarithmic charts.
This indicator is almost identical to "Bollinger Bands %BB" except its calculations are performed in logspace and it adds an optional EMA line (after LazyBear's idea).
A study of moving averages that utilizes different tricks I've learned to optimize them. Included is Bollinger Bands, Guppy (GMMA) and Super Guppy. The method used to make it MtF should be more precise and smoother than regular MtF methods that use the security function. For intraday timeframes, each number represents each hour, with 24 equal to 1 day. For daily,...
This indicator uses identical calculation to Ichimoku indicator except performed in log-space. This is helpful for long-term and highly volatile charts.
The Natural Market Slope was created by Jim Sloman and this is one of his many Ocean Indicators which I'm publishing thanks to receiving source materials from @altcoinz and @tmac87. I did completely rewrite the formula for this indicator but I commented out the original calculation so you can compare or just for study purposes. I like this version better because...
Experimental: Uses the Box-Cox Transformer with a deflection on the inversion to create log bands. to be used in log scaled charts.
This indicator is identical to regular MACD indicator except it is calculated in log space, which is useful for looking at long-term trends.
Same indicator as CCI except calculated in log-space. Expected to do better on high-volatility charts, and in some cases (illustrated with ETC-BTC) may provide earlier sell signal.
This indicator has two features that make it better than standard SMMA for cryptocurrencies: - starts from the very first candle - calculations are performed in log-space which means less sensitivity to extreme volatility common in crypto world
Just like regular momentum indicator except calculated in log space and with a horizontal line centered at zero for easier analysis
This is the same script as the built-in Ultimate Oscillator except it is calculated in log-space, which may help with some very high-volatility charts (the differences will be usually be very small though).
A simple script to visualize price extension. Useful to gauge tops/oversold areas. Most useful when used on weekly tf.