Library "console" Simple debug console to print messages from your strategy code. USAGE : Make sure your strategy overlay is false Import the library : import keio/console/1 as console init(lines, panes) Initialise function. USAGE : var log = console.init() Parameters: lines : Optional. Number of lines to display panes :...
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.
Library "LoggerLib" This is a logging library for Pinescript. It is aimed to help developers testing and debugging scripts with a simple to use logger function. Pinescript lacks a native logging implementation. This library would be helpful to mitigate this insufficiency. This library uses table to print outputs into its view. It is simple, customizable and...
Library "lib_Indicators_v2_DTU" This library functions returns included Moving averages, indicators with factorization, functions candles, function heikinashi and more. Created it to feed as backend of my indicator/strategy "Indicators & Combinations Framework Advanced v2 " that will be released ASAP. This is replacement of my previous indicator...
Experimental: Uses the Box-Cox Transformer with a deflection on the inversion to create log bands. to be used in log scaled charts.
Library "FunctionBoxCoxTransform" Methods to compute the Box-Cox Transformer. regular(sample, lambda) Regular transform. Parameters: sample : float array, sample data values. lambda : float, scaling factor. Returns: float array. inverse(sample, lambda) Regular transform. Parameters: sample : float array, sample data values. ...
Library "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,...
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 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...
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...
A simple script to visualize price extension. Useful to gauge tops/oversold areas. Most useful when used on weekly tf.
This code is a slightly modified version of Tradingviews' built-in "linear regression" script which can be correctly plotted on logarithmic charts.
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
The 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...
A comfortable Volume Indicator with the following features: Darker colors indicate positive changes Light colors indicate negative changes There are separate colors for changes above a configurable threshold The threshold can look at percentages changes in either volume (directly) or the volume at log scale. The graph itself is always displayed in...
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
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,...