Library "TimeFilter" provides utilities for dates and times inSession(session, timezone, period) Parameters: session (simple string) timezone (simple string) period (simple string) Returns: bool inSession Whether the current time is within the defined time session inDateRange(startDate, endDate)...
Garbage Collection and Utilities is a library that offers a set of functions designed for efficient management of various types of arrays. This library provides garbage collection utilities to remove and delete excess elements, and also includes utilities for checking the size of arrays. It's particularly useful for developers who want to manage labels, lines,...
Library "Utils" A collection of convenience and helper functions for indicator and library authors on TradingView formatNumber(num) My version of format number that doesn't have so many decimal places... Parameters: num (float) : (float) the number to be formatted Returns: (string) The formatted number getDateString(timestamp) Convenience...
Library "CommonTypesMapUtil" Common type Container library, for central usage across other reference libraries. ArrayBool Fields: v (bool ) ArrayBox Fields: v (box ) ArrayPoint Fields: v (chart.point ) ArrayColor Fields: v (color ) ArrayFloat Fields: v (float ) ArrayInt Fields: v (int ) ...
This library provides a JavaScript-style debug console to Pine Coders. It supports the most commonly used utilities from the WHATWG Console Standard including the following: • console.log • console.debug • console.info • console.warn • console.error • console.assert • console.count • console.countReset • console.group • console.groupEnd •...
Library "FrizLabz_Time_Utility_Methods" Some time to index and index to time helper methods made them for another library thought I would try to make them as methods UTC_helper(utc) UTC helper function this adds the + to the positive utc times, add "UTC" to the string and can be used in the timezone arg of for format_time() Parameters: utc :...
Library "Utilities" My utility functions library. toPips(_v) Convert price to pips. Parameters: _v : Price Returns: Pips toPrice(_p) Convert pips to price. Parameters: _p Returns: Price price_range(_a, _b) The difference will be returned. Parameters: _a _b : @return Price as positive number get_day(_n, _lang)...
Library "HendrixLIBRARY" getVolumeData() getLTF(customTimeframe, ltf) Parameters: customTimeframe ltf sumArray(a) Parameters: a arrs2vals(upVolumeArray, downVolumeArray, volArr) Parameters: upVolumeArray downVolumeArray volArr getVolumesFromUpDownArrays(upVolumeArray, downVolumeArray) Parameters: ...
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 "Utilities" General utilities print_series(s, skip_na, position, show_index, from_index, to_index) Print series values Parameters: s : Series (string) skip_na : Flag to skip na values (optional bool, dft = false) position : Position to print the Table (optional string, dft = position.bottom_center) show_index : Flag to show...
Library "calc" Library for math functions. will expand over time. split(_sumTotal, _divideBy, _forceMinimum, _haltOnError) Split a large number into integer sized chunks Parameters: _sumTotal : (int) Total numbert of items _divideBy : (int) Groups to make _forceMinimum : (bool) force minimum number 1/group _haltOnError : (bool) force...
Library "external_input_utils" 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...
Library "arsenal" This library is a collection of weapons that will help us win the war against the market. isNewbar(res, timezone) Checks if the res is in new bar at the current timeframe Parameters: res : - resolution of the bar to check if new timezone : - timezone of the resolution Returns: ch: - 1=true, 0=false
Library "DiscordWebhookFunction" discordMarkdown(_str, _italic, _bold, _code, _strike, _under) Convert string to markdown formatting User can combine any function at the same time. Parameters: _str : String input _italic : Italic _bold : Bold _code : Code markdown _strike : Strikethrough _under : Underline Returns: string...