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 "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...
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 "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...
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 "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 "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...
Library "TimeFormattingLibrary" Time formatting functions: formating functions to make timestrings more human readable friendly (for both fixed time and time-elapsed). Also functions for last and first instance in month of day of week input. Also a function for identifying bank holiday Mondays. timeFormatFxn(showDayOfWeek, showDayOfMonth, showMonth,...
Library "MarketHolidays" The MarketHolidays library compiles market holidays (including historical special market closures) into arrays, which can then be utilized in TradingView indicators and strategies to account for non-trading days. The datasets were split into different libraries to overcome compiling limitations, streamline the process of removing...
Library "holidays_2020to2025" This dataset is part of my "MarketHolidays" library. The datasets were split into different libraries to overcome compiling limitations, streamline the process of removing specific time frames if not needed, and to enhance code execution speed. The timestamps are generated using a custom Python script that employs the...
Library "holidays_2015to2020" This dataset is part of my "MarketHolidays" library. The datasets were split into different libraries to overcome compiling limitations, streamline the process of removing specific time frames if not needed, and to enhance code execution speed. The timestamps are generated using a custom Python script that employs the...
Library "holidays_2010to2015" This dataset is part of my "MarketHolidays" library. The datasets were split into different libraries to overcome compiling limitations, streamline the process of removing specific time frames if not needed, and to enhance code execution speed. The timestamps are generated using a custom Python script that employs the...