The "Iterator" library is designed to provide a flexible way to work with sequences of values. This library offers a set of functions to create and manage iterators for various data types, including integers, floats, and more. Whether you need to generate an array of values with specific increments or iterate over elements in reverse order, this library has you...
This is a simple indicator that gives the maximum range of any bar on the chart in ticks. I found it useful when sizing arrays and it might also be valuable when working out risk parameters.
🔵 Introduction One of the challenges of script users is matching the colors used in indicators or strategies. By default, colors are chosen to display based on either the dark theme or the light theme. In scripts with a large number of colors used, changing all colors to better display in dark mode or light mode can be a difficult and tedious process. This...
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,...
This indicator mirrors TradingView's bar replay feature to a certain extent, offering traders a streamlined way to analyze past market movements. It's a practical tool for strategy testing, pattern recognition, and refining trading approaches. While it may have some limitations, it offers a practical solution for strategy testing and refining trading approaches...
Range Percentage is a simple indicator utility to clearly display and dynamically alert on where a chosen series falls between two bounds, either series themselves or constant values. To set up, select between series or value for upper and lower bounds. Only the chosen options will be used by the indicator, though you may enter the non-selected option. Configure...
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 ) ...
The MTF Fair Value Gap (FVG) indicator provides multi-timeframe options to observe lower or higher gaps in different timeframes within your current one. This can enhance the confluence in your trading decisions. 🔶 USAGE An FVG is formed when a candle has an 'empty' body, leaving a gap. These areas are often filled before the market continues to trend in its...
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 •...
The script shows an example implementation of dictionary-like data type which can store key:value pairs (Python style). Both keys and values can have any of the following type: • string • integer • float • boolean • color You can add items of different types to the same dictionary (e.g. key = 12 and value = "value" stored in the same dictionary with key = "key"...
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 :...
Quickly draw a 10-level grid on your chart with our open-source tool. Our grid tool offers a unique solution to traders looking to maximize their profits in volatile market conditions. With its advanced features, you can create customized grids based on your preferred start price and line distance, allowing you to easily execute trades and capitalize on price...
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: ...
Pair-Trading is a recognized and widely used trading method, this indicator is a tool that allows via several display interfaces (2 at the moment) to see relative performance ratios of two assets. The inputs are pretty simple to understand but here is the list of them : - Ticker #1 : The first Asset's ticker // numerator of the ratio - Ticker #2 : The...
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 :...