This is a developer friendly solution to the current PineScript limitation of not being able to easily configure presets for multiple timeframes. If you're developing multi-timeframe strategies then you've no doubt done battle with built-in `input` function which only allows for a single default value. You've probably come up with all kinds of fancy workarounds,...
Library "TimeLockedMA" Library & function(s) which generates a moving average that stays locked to users desired time preference. TODO - Add functionality for more moving average types. IE: smooth, weighted etc... Example: time_locked_ma(close, length=1, timeframe='days', type='ema') Will generate a 1 day exponential moving average that will stay consistent...
Library "smf" f_strLeft(string, int) Function returning the leftmost `_n` characters in `_str`. Parameters: string : _str: source string. int : _n : number of leftmost characters to return. f_strRight(string, int) Function returning the rightmost `_n` characters in `_str`. Parameters: string : _str: source string. int : _n :...
Greetings colleagues. Here I share a tool that uses the color gradient provided by PineCoders and lucf. This tool was made for the reason that whenever we start with an idea for a script, we end up consuming a lot of time in selecting suitable colors. An RSI was taken as a reference for the signal You have multiple switches for axes, fill, background and...
Fresh off the press, we have a new breed of indicators: Bitcoin's Hash Rate & Price. As many of you have read, roughly 80% of BTC's price movements can be correlated to its changes in hash rate volume. I decided to make a stochastic indicator that utilizes this principle to track divergence of the price from the hash rate. Let's break this down... In red is the...
I found MichelT 's work thanks to LucF . One of its cool concepts that touched me was his error's function. Whenever something unexpected takes place, it returns an error's message right on the chart, one nobody can't say they can't see lol. I told him it would be cool if we could get specific messages related to specific cases, he said "there is a task for such...
This script prints a trade number <1000 on the chart. It requires at least 3 bars between successive entries.