Library "RiskTools" Provides functions for calculating risk metrics pctDrop(start, result) Calculates what is the percentage drop from a reference price Parameters: start (float) : Starting price before the drop occurred result (float) : Resulting price to which the percentage drop occurred Returns: Percentage drop from "start" to "result" ...
Library "RSNPSD" EMA5(source, EMAlength, Smoothlength) Parameters: source (float) EMAlength (simple int) Smoothlength (simple int) SLOPE(source, slopeDistance) Parameters: source (float) slopeDistance (simple int) print(txt) Parameters: txt (string)
Library "libHTF" libHTF: use HTF values without request.security() This library enables to use HTF candles without request.security(). Basic data structure Using to access values in the same manner as series variable. The last member of HTF array is always latest current TF's data. If new bar in HTF(same as last bar closes), new member is pushed to HTF...
Library "Trade" A Trade Tracking Library Monitor conditions with less code by using Arrays. When your conditions are met in chronologically, a signal is returned and the scanning starts again. Create trades automatically with Stop Loss, Take Profit and Entry. The trades will automatically track based on the market movement and update when the targets are...
Library "imlib" Description The library allows you to display images in your scripts utilising the objects. You can change the image size and screen aspect ratio (the ratio of width to height which you can change if the image is too wide / tall). The library has "example()" function which you can use to see how it works. It also has a handy "logo()" function...
Library "multidata" A library for multi-dimensional data arrays. Full documentation: faiyaz7283.github.io This library is designed to enhance data storage capabilities in Pine Script, enabling users to work with two separate data structures: data2d (key -> main-value | alternate-value) and data3d (primary key -> data key-> main-value | alternate-value)....
This Extended Moving Average Library is a sophisticated and comprehensive tool for traders seeking to expand their arsenal of moving averages for more nuanced and detailed technical analysis. The library contains various types of moving averages, each with two versions - one that accepts a simple constant length parameter and another that accepts a series or...
Library "ta_m" This library is a Pine Script™ programmer’s tool containing calcs for my oscillators and some helper functions. upDnIntrabarVolumesByPolarity() Determines if the volume for an intrabar is up or down. Returns: ( ) A tuple of two values, one of which contains the bar's volume. `upVol` is the positive volume of up bars. `dnVol` is the...
Library "merge_pinbar" Published by @dandrideng Modified by @RpNm1337 merge_pinbar: merge bars and check whether the bar is a pinbar merge_pinbar(period, max_bars) merge_pinbar: merge bars and check whether the bar is a pinbar Parameters: period (simple int) max_bars (simple int) Returns: array:
Library "A_Taders_Edge_LIBRARY" RCI(_rciLength, _close, _interval, _outerMostRangeOfOscillator) - You will see me using this a lot. DEFINITELY my favorite oscillator to utilize for SO many different things from timing entries/exits to determining trends. Parameters: _rciLength (int) _close (float) _interval (int) ...
Library "CandlestickPatterns" This library provides a wide range of candlestick patterns, and available for user to call each pattern individually. It's a comprehensive and common tool designed for traders seeking to raise their technical analysis, and it may help users identify key turning of price action in financial instruments. Credit to public technical...
Library "LibrarySupertrend" selective_ma(condition, source, length) Parameters: condition (bool) source (float) length (int) trendUp(source) Parameters: source (float) smoothrng(source, sampling_period, range_mult) Parameters: source (float) sampling_period (simple int) range_mult (float) ...
Library "TradingToolsLibrary" Easily create advanced entries, exits, filters and qualifiers to simulate strategies. Supports DCA (Dollar Cost Averaging) Lines, Stop Losses, Take Profits (with trailing or without) & ATR. method deepCopy(this) This creates a deep copy instead of a shallow copy of an entry_position. This does NOT deep copy the...
Library "JapaneseCandlestickPatterns" Japanese Candlestick Patterns is a library of functions that enables the detection of popular Japanese candlestick patterns such as Doji, Hammer, and Engulfing, among others. The library provides a simple yet powerful way to analyze financial markets and make informed trading decisions. Japanese Candlestick Patterns library...
Library "gFancyMA" printLbl(y, x, c, m, b, s) Parameters: y (float) x (int) c (color) m (string) b (bool) s (string)
Library "debug" Show Array or Matrix Elements In Table Use anytime you want to see the elements in an array or a matrix displayed. Effective debugger, particularly for strategies and complex logic structures. Look in code to find instructions. Reach out if you need assistance. Functionality includes: Viewing the contents of an array or matrix on screen....
What Is the Average True Range (ATR)? The average true range (ATR) is a technical analysis indicator, introduced by market technician J. Welles Wilder Jr. in his book New Concepts in Technical Trading Systems, that measures market volatility by decomposing the entire range of an asset price for that period. Each instrument per unit of time passes its...
Library "CandlesGroup_Types" CandlesGroup Type allows you to efficiently store and access properties of all the candles in your chart. You can easily manipulate large datasets, work with multiple timeframes, or analyze multiple symbols simultaneously. By encapsulating the properties of each candle within a CandlesGroup object, you gain a convenient and...