Library "LibraryTimeframeHelper" Helper functions to work with timeframes: to get the next higher TF, and to make the string pretty for use in labels. Perhaps I'll add more later. f_getHigherTF(_TF) f_getHigherTF(): Converts the input timeframe into the next one up in the list of commonly used timeframes. NOTE: You can NOT use a TF from this function as...
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)
█ OVERVIEW This library is a Pine programmer’s tool containing functions to help those who use the request.security_lower_tf() function. Its `ltf()` function helps translate user inputs into a lower timeframe string usable with request.security_lower_tf() . Another function, `ltfStats()`, accumulates statistics on processed chart bars and intrabars. █...
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 "Last_Available_Bar_Info" getLastBarTimeStamp() getAvailableBars() This simple library is built with an aim of getting the last available bar information for the chart. This returns a constant value that doesn't change on bar change. For backtesting with accurate results on non standard charts, it will be helpful. (Especially if you are using...
Library "TimeframeToMinutes" The timeframeToMinutes() function returns the number of minutes in an arbitrary timeframe string. timeframeToMinutes() Returns the number of minutes in the supplied timeframe string, which is arbitrary, i.e. it doesn't have to be the timeframe of the current chart but can be taken from an input. The sole advantage over the short...