█ OVERVIEW This library is a Pine Script™ programmer’s tool containing a variety of time related functions to calculate or measure time, or format time into string variables. █ CONCEPTS `formattedTime()`, `formattedDate()` and `formattedDay()` Pine Script™, like many other programming languages, uses timestamps in UNIX format, expressed as the...
Library "BitcoinHalving" Displays where Bitcoin's halvings have been getDates() List of Bitcoin halving dates Returns: array with timestamp dates isHalvingDay() Checks if the current day is a halving day Returns: bool
Library "Timed_exit_alert_for_webhook" TODO: add library description here fun(x) TODO: add function description here Parameters: x : TODO: add parameter x description here Returns: TODO: add what function returns for exiting FCM like Tradovate and AMP using API and python MT5 and Webhooks the writer take no responsibility for trades made using...
Library "TPLibPriceConversions_Public" toTicks() formatTicks()
Library "TPCTime_Public" Helpers for calculating time getTimeOffset(interval, amount) Returns the length in ms for the given amount of the given interval. Parameters: interval : Interval to calculate, for example "D" or "60". amount : Number of intervals for which to calculate the time range in ms. Returns: The number of ms in the amount of the...
Library "DateLibrary" TODO: add library description here window() BearishPeriod() fun()
Library "HighTimeframeTiming" @description Library for sampling high timeframe (HTF) historical data at an arbitrary number of HTF bars back, using a single security() call. The data is fixed and does not alter over the course of the HTF bar. It also behaves consistently on historical and elapsed realtime bars. ‼ LIMITATIONS: This library function depends on...
Library "timeUtils" Utils for time series tradingDaysTillEndOfMonth() Calculates how many full trading days left until the end of the current month. (It doesn't take into account market holidays) Returns: int series of the remaining trading days until the end of the month. insideRange()
Library "bytime" TODO: to do something at the specified time. ////Return =>> ht = hour , mt = minute , st = second ,Dt = Day, Mt = month, Yt = year , dateTime = full time format.///////////// Note : Remember to always add import when you call our library and change Gtime() to Timeset.Gtime() is used to access internal data. import hapharmonic/bytime/1 as...
Library "FunctionWeekofmonth" Week of Month function. weekofmonth(utime) Week of month for provided unix time. Parameters: utime : int, unix timestamp. Returns: int
Library "TimeLockedMA" Library & function(s) which generates a moving average that stays locked to users desired time preference. TODO - Add functionality for more moving average types. IE: smooth, weighted etc... Example: time_locked_ma(close, length=1, timeframe='days', type='ema') Will generate a 1 day exponential moving average that will stay consistent...
Library "SetSessionTimes" Function to automatically set session times for symbols and eventually timezone. Useful mainly for futures contracts, to differentiate between pit and overnight sessions, and for 24 hours symbols if you want to "create" sessions for them This library only returns correct session times to the calling script and does nothing by itself...
Library "options_expiration_and_strike_price_calculator" TODO: add library description here fun() this is a library to help calculate options strike price and expiration that you can add to a script i use it mainly for symbol calulation to place orders to buy options on TD ameritrade so it will be set up to order options on TD ameritrade using json order...
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 "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 "Time" Utilities for measuring time. bar() Gets the number of milliseconds per bar.
Library "SessionInfo" Utility functions for session specific information like the bar index of the session. inSession(spec) Returns true if the current bar is in the session specification. Parameters: spec : session.regular (default), session.extended or other time spec. Returns: True if the current is in session; otherwise false. ...
Library "ZenLibrary" A collection of custom tools & utility functions commonly used with my scripts. getDecimals() Calculates how many decimals are on the quote price of the current market Returns: The current decimal places on the market quote price truncate(float, float) Truncates (cuts) excess decimal places Parameters: float : _number The...