Library "Ichimoku" Ichimoku Kinko Hyo library calc(conversion, base, lead, displacement1, displacement2) : Calculate the Ichimoku Kinko Hyo values Parameters: conversion : Conversion line' periods base : Base line's periods lead : 2nd Leading line's periods displacement1 : Leading line's offset displacement2 : Lagging line's...
Library "Punchline_Lib" roundSmart(float) Truncates decimal points of a float value based on the amount of digits before the decimal point Parameters: float : _value any number Returns: float tostring_smart(float) converts a float to a string, intelligently cutting off decimal points Parameters: float : _value any number Returns: string
Library "eHarmonicpatterns" Library provides an alternative method to scan harmonic patterns. This is helpful in reducing iterations scan_xab(bcdRatio, err_min, err_max, patternArray) Checks if bcd ratio is in range of any harmonic pattern Parameters: bcdRatio : AB/XA ratio err_min : minimum error threshold err_max : maximum error...
Library "Divergence" Calculates a divergence between 2 series bullish(_src, _low, depth) Calculates bullish divergence Parameters: _src : Main series _low : Comparison series (`low` is used if no argument is supplied) depth : Fractal Depth (`2` is used if no argument is supplied) Returns: 2 boolean values for regular and hidden...
Library "CRCIndicators" price_from_to() price_change_from_to() roi() roi_from_to()
Library "TheDivergentLibrary" The Divergent Library is only useful when combined with the Pro version of The Divergent - Advanced divergence indicator . This is because the Basic (free) version of The Divergent does not expose the "Divergence Signal" value. Usage instructions: 1. Create a new chart 2. Add The Divergent (Pro) indicator to your...
Library "Library_RICH" TODO: add library description here sum(x) TODO: add function description here Parameters: x : TODO: add parameter x description here Returns: TODO: add what function returns checkBuyReversal() : ckeck if there are buy reversal conditions (divergences) in rsi insure that the bar count since the last pivot low is within the...
Library "ConverterTF" I have found a bug Regarding the timeframe display, on the chart I have found that the display is numeric, for example 4Hr timeframe instead of '4H', but it turns out to be '240', which I want it to be displayed in abbreviated form. And in all other timeframes it's the same. So this library was created to solve those problems. It converts...
Library "lib_Indicators_v2_DTU" This library functions returns included Moving averages, indicators with factorization, functions candles, function heikinashi and more. Created it to feed as backend of my indicator/strategy "Indicators & Combinations Framework Advanced v2 " that will be released ASAP. This is replacement of my previous indicator...
Library "TypeMovingAverages" This library function returns a moving average. ma_fast ma_slow MA_selector() Example // This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org // © hapharmonic //@version=5 indicator("Test MATYPE", overlay=true) import hapharmonic/TypeMovingAverages/1 as MAType xprd1 =...
Quite recently TradingView added the possibility to create and use Libraries in PineScript. With this feature PineScript became higher quality of coding language overnight. Libraries enable splitting your code into multiple files, providing easier access to code reusability. I was working on a script which included 3000 lines of code, which was recompiling 1:30...
This library is used to convert Text type numbers are numbers. Library "StringtoNumber" str1 = '12340' , vv = numstrToNum(str1) numstrToNum() Example // This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org // © hapharmonic //@version=5 indicator("My Script") import hapharmonic/StringtoNumber/1 as CV TF =...
Library "SessionsInBoxesLib" Provides functions calculating the all-time high/low of values. get_positions() draw()
Library "FunctionZigZagMultipleMethods" ZigZag Multiple Methods. method(idx) Helper methods enumeration. Parameters: idx : int, index of method, range 0 to 4. Returns: string function(method, value_x, value_y) Multiple method ZigZag. Parameters: method : string, default='(MANUAL) Percent price move over X * Y', method for zigzag. ...
Library "MHCustomSpotTradingLibrary" HMA(float, float) Parameters: float : _src price data float : _length Period Returns: Hull Moving Average EHMA(float, float) Parameters: float : _src price data float : _length Period Returns: EHMA Moving Average THMA(float, float) Parameters: float : _src price data ...
Library "harmonicpatterns" harmonicpatterns: methods required for calculation of harmonic patterns. These are customised to be used in my scripts. But, also simple enough for others to make use of :) isGartleyPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isGartleyPattern: Checks for harmonic pattern Gartley Parameters: xabRatio :...
Library "ma_function" TODO: This library is a package of various MAs. ma_function(name, source, length) This function provides the MA specified in the argument. Parameters: name : MA's name source : Source value length : Look back periods Returns: Ma value