Library "kNN" Collection of experimental kNN functions. This is a work in progress, an improvement upon my original kNN script: The script can be recreated with this library. Unlike the original script, that used multiple arrays, this has been reworked with the new Pine Script matrix features. To make a kNN prediction, the following data should be supplied...
Library "columns" Error Tolerant Matrix Setter/Getter Operations. Easy ways to add/remove items into start and end of Columns as well as arrays to grow and shrink matrix. if mismatched sizes occur the typified NA value will be there to prevent catastrophic crashing. Rows and Columns are split into 2 libraries due to limitations on number of exports as well ...
Library "rows" Error Tolerant Matrix Setter/Getter Operations. Easy ways to add/remove items into start and end of rows as well as arrays to grow and shrink matrix. if mismatched sizes occur the typified NA value will be there to prevent catastrophic crashing. columns and rows are split into 2 libraries due to limitations on number of exports as well as...
Library "RS_TD_Library_2" TradingView Library for showing option prices on the chart Here is a simple way to draw options to an underlying asset on the chart. At the top right there is a table with the summary of the corresponding premiums. A tooltip shows the corresponding buy/sell prices for each option. showTable(sumShortPut, sumLongPut, sumShortCall,...
Library "Fibo_levels" Calculate Fibo levels from any 2 levels. Your need know only 2 price of 2 levels for calculate any level of Fibo: function 'fibo_lvl', or calculate array of price Fibo levels : function 'fibo_lvls' fibo_lvl(fibo_lvl1, price1, fibo_lvl2, price2, calc_level) Parameters: fibo_lvl1 : First of any level of fibo from 0 to 1 (example...
Library "condition" True/False Condition tools and toggles for booleans and utility. suggested use is checking if a calculation is required, or can be skipped speeding up script calculations in realtime and historical scenarios. isonlywihtout(_first_cond, _second_cond) output is true only if first true and second false Parameters: _first_cond :...
Library "LibIndicadoresUteis" Collection of useful indicators. This collection does not do any type of plotting on the graph, as the methods implemented can and should be used to get the return of mathematical formulas, in a way that speeds up the development of new scripts. The current version contains methods for stochastic return, slow stochastic, IFR,...
Library "base16" Base16 Syntax Theme Collection. dark/light Pairs placed into 2 matched groups. included is tool for assembling your own themes, as well as all themes String names to create your own Input menus / add to your own theme matrix, and theme selectors addToMatrix(_mtx, _title, _choices, _theme) To create a theme matrix with string index, use...
Library "Bpa" TODO: library of Brooks Price Action concepts isBreakoutBar(atr, high, low, close, open, tail, size) TODO: check if the bar is a breakout based on the specified conditions Parameters: atr : TODO: atr value high : TODO: high price low : TODO: low price close : TODO: close price open : TODO: open price tail :...
Library "LibraryCOT" This library provides tools to help Pine programmers fetch Commitment of Traders (COT) data for futures. rootToCFTCCode(root) Accepts a futures root and returns the relevant CFTC code. Parameters: root : Root prefix of the future's symbol, e.g. "ZC" for "ZC1!"" or "ZCU2021". Returns: The part of a COT ticker corresponding to...
Library "NumberOfVisibleBars" This library calculates the number of visible bars on the user screen NumberOfVisibleBars(No) Calculates the number of visible bars on the user screen Parameters: No : paramters needed Returns: The numbers of visible bars on the user screen (int)
Library "into" convert literals by type, Same-types left in for bulk reasons. TODO: Expand Types b(string) Convert string to bool. Parameters: string : val A string value. Returns: Bool. b(bool) Pass Bool/bool Parameters: bool : Returns: Bool. b(float) Convert Float (True if exists and not 0) Parameters: float : val A...
Library "font" Unicode Characters Replacement function for strings. uni(_str, _number) Unicode Font Substitutee Parameters: _str : Input Strinbg _number : Font by Int input uni(_str, _number) Unicode Font Substitutee Parameters: _str : Input Strinbg _number : Font by Name input
Library "TradingWolfLibary" getMA(int, string) Gets a Moving Average based on type Parameters: int : length The MA period string : maType The type of MA Returns: A moving average with the given parameters minStop(float, simple, float, string) Calculates and returns Minimum stop loss Parameters: float : entry price (Close if...
Library "intersect" Find Line Intersection X/Y coordinates. Simple to use, will find intersection if it exists on the segments if the line segments do not cross on segment, an 'na' value will be returned if you plot new items with the output coords, they still plot. avoid this by setting a na(x) condition before plotting new items get(l1, l2, (...
Library "Time_Filter" Time filters for trading strategies. f_isInWeekDay(_timeZone, _byWeekDay, _byMon, _byTue, _byWed, _byThu, _byFri, _bySat, _bySun) f_isInWeekDay - Filter by week day or by time delimited session. Parameters: _timeZone : - Time zone to use when filter allowed trading by days of the week. _byWeekDay : - Filter allowed trading...
A library that exposes a method to translate strings to numbers. Adapted from MichelT 's String to Number indicator.