The Time Zone Corrector library provides a utility function designed to adjust time based on the user's current time zone. This library supports a wide range of time zones across the Americas, Europe, Asia, and Oceania, making it highly versatile for traders around the world. It simulates a switch-case structure using ternary operators to output the appropriate...
Library "Session" Helper functions for trading sessions. TradingView doesn't provide correct data when calling some of the convenience methods like session.ismarket when you are looking at futures charts. This library corrects those mistakes by providing functions with the same names as the TradingView default properties. that reference a custom defined set of...
Library "EconomicCalendar2024" This library is a data provider for important Dates and Times from the Economic Calendar. events() Returns the list of dates supported by this library as a string array. Returns: array : Names of events supported by this library fomcMeetings() Gets the FOMC Meeting Dates. The FOMC meets eight times a year to determine...
Description: Boolean and alert functions that check if the latest user-selected symbol 'sym' has started printing. Alerts trigger by bar close. Usage: Mainly for 24/7 crypto exchanges. If an exchange you have alerts on goes offline, the alerts will not trigger. The offline alert is an alert to alert you of that. It's best to create the alerts while on...
Library "lib_session_gaps" simple lib to calculate the gaps between sessions time_gap() calculates the time gap between this and previous session (in case of irregular end of previous session, considering extended sessions) Returns: the time gap between this and previous session in ms (time - time_close ) bar_gap() calculates the bars missing...
Library "SessionBox" This library provides functions to manage and visualize session boxes and labels on chart. A session box is a visual representation of a trading session with properties like time, name, color and the ability to track the high and low price within that session. SessionBox SessionBox: stores session data and provides methods to manage...
Library "time_library" This library provides utilities for working with time intervals in milliseconds, seconds, minutes, hours, days, and weeks. It includes functions to handle conditions based on time rather than bars. ms(TIME) ms - Converts a time period in string format to milliseconds. Parameters: TIME (string) : (series ) - The time period...
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)...
Library "FunctionTimeFrequency" Functions to encode time in a normalized space (-0.5, 0.5) that corresponds to the position of the current time in the referrence frequency of time. The purpose of normalizing the time value in this manner is to provide a consistent and easily comparable representation of normalized time that can be used for various calculations...
🔵 Introduction "The Forex Trading Sessions" highlight the active periods across different markets where significant trading volume and influence on the forex market are evident. The primary trading sessions globally include the "Asian Session," "London Session," and "New York Session." A "Kill Zone" refers to a segment within a session characterized by high...
Library "chrono_utils" Collection of objects and common functions that are related to datetime windows session days and time ranges. The main purpose of this library is to handle time-related functionality and make it easy to reason about a future bar checking if it will be part of a predefined session and/or inside a datetime window. All existing...
A library that provides utilities for working with trading sessions and time-based conditions. Functions include session checks, date range checks, day-of-week matching, and session high/low calculations for daily, weekly, monthly, and yearly timeframes. This library streamlines time-related calculations and enhances time-based strategies and indicators. Library ...
Library "utils" Provides a set of utility functions for use in strategies or indicators. colorGreen(opacity) Parameters: opacity (int) colorRed(opacity) Parameters: opacity (int) colorTeal(opacity) Parameters: opacity (int) colorBlue(opacity) Parameters: opacity (int) colorOrange(opacity) Parameters: opacity...
Library "Functions" is_date_equal(date1, date2, time_zone) Parameters: date1 (int) date2 (int) time_zone (string) is_date_equal(date1, date2_str, time_zone) Parameters: date1 (int) date2_str (string) time_zone (string) is_date_between(date_, start_year, start_month, end_year, end_month, time_zone_)...
Library "Holiday" - Full Control over Holidays and Daylight Savings Time (DLS) The Holiday Library is an essential tool for traders and analysts who engage in backtesting and live trading . This comprehensive library enables the incorporation of crucial calendar elements - specifically Daylight Savings Time (DLS) adjustments and public holidays - into...
This Forecasting library has a couple of Novel and traditional approaches to forecasting stock prices. Traditionally, it provides a basic ARIMA forecaster using simple autoregression, as well as a linear regression and quadratic regression channel forecaster. Novel approaches to forecasting include: 1) A Moving Average based Forecaster (modelled after ARIMA), it...
Library "chrono_utils" Collection of objects and common functions that are related to datetime windows session days and time ranges. The main purpose of this library is to handle time-related functionality and make it easy to reason about a future bar and see if it is part of a predefined user session and/or inside a datetime window. All existing...
Library "HighRiskTradingTime" Utilities for time range labeling openTime() timeMinInDay(t, timezone) Convert given time to minutes of day Parameters: t (int) : Time timezone (string) : Timezone of the input h:m @return Minutes of day All exported functions args should be typified timeMinInDayManual(h, m) Convert given hour and minute to...