This is a library allowing one to select between many different Moving Average formulas to smooth out any float variable.
You can use this library to apply a Moving Average function to any series of data as long as your source is a float.
The default application would be for applying Moving Averages onto your chart. However,...
Collection of external input utilities for conversion and other hacky functions
str_to_src(value) str_to_src - Convert the string value to the coresponding source series. It can be used to limit the "input.source" choices provided to the end user.
The most interesting part is that it can be used to overcome the "one...
This library was intended to Get price of given time.input
Credits to TradingView for CAGR Custom Range.
: Get OHLC price of given time.input
: : Time (t) must be using time.input
Returns: : OHLC
: Get HLC price of given time.input
: : Time (t) must...
This is my 2nd iteration for sending Signals via Plots. (first one was the 8bit Version)
Now a cleaner approach (thanks for the hints @lonesometheblue)
Input a 16 bool Array
Outputs a Float for transmitting via Plot
Input a Float from plot via input-mapping
Outputs a Array of 16...
Provides functions for converting input strings 'open','high','low','close','hl2','hlc3','ohlc4','hlcc4' to corresponding source values.
Converts string to source float value
src : String to use (`close` is used if no argument is supplied).
Returns: Returns the float value of the string
ma(source, length, type)
Generates moving average based on the given parameters
source : - series
length : - length of the moving average
type : - type of moving average (SMA, WMA, VWMA, RMA, HMA, LSMA, MAEMA, TMA) default: EMA
@ returns - moving average series
nearby(a, b, atr_period, atr_deviation)...
A handful collection of regular functions, Custom Tools & Utility Functions could be used in regular Scripts. hope these functions can be understood by a non programmer like me too.
G_TextValOfNumber(ValueToConvert, RequiredDecimalPlaces, BeginingChar, EndChar) Function to return the String Value of Number with decimal precision...
Type Check for Function Builders to allow Single item to be
passed in, and determine what to do with the item, ie: need an x value?
function that allows label, line, box, float, or even a string..
check item type? string ? 'str.tonumber(_item)' can be in the same
switch as a 'line.get_price(_item, bar_index)' both outputting float
Side / Boundary Based All Types Swapper
- three automagical types for Arrays, Matrixes, and Variables
-- no signal : Long/ Short position autoswap
-- true / false : Boolean based side choice
-- Src / Thresh : if source is above or below the threshold
- two operating modes for variables, Holding mode only for arrays/matrixes
-- with two ...
A Magical little helper friend for Candle Math.
When composing scripts, it is often necessary to manipulate the math around the OHLC. At times, you want a scalar (absolute) value others you want a vector (+/-). Sometimes you want the open - close and sometimes you want just the positive number of the body size. You might want it in ticks or you might want it in...
thestratnumber() this will return the number 1,2 or 3 using the logic from Rob Smiths #thestrat which uses these type of bars for setups
getBodySize() Gets the current candle's body size (in POINTS, divide by 10 to get pips)
Returns: The current candle's body size in POINTS
getTopWickSize() Gets the current candle's...
Functions to support my timing signals system
import_start_time(harmonic) get the start time for each harmonic signal
harmonic : is an integer identifying the harmonic
Returns: the starting timestamp of the harmonic data
import_signal(index, harmonic) access point for pre-processed data...
Unicode Characters Replacement function for strings.
replaceFont(_str, _fontType) Unicode Character Replace Function
_str : String input
_fontType : Font Type Selector
Returns: Replaced Char String with any custom font type choosed