🔵 Introduction Harmonic patterns blend geometric shapes with Fibonacci numbers, making these numbers fundamental to understanding the patterns. One person who has done a lot of research on harmonic patterns is Scott Carney.Scott Carney's research on harmonic patterns in technical analysis focuses on precise price structures based on Fibonacci ratios to identify...
🔵 Introduction One of the challenges of script users is matching the colors used in indicators or strategies. By default, colors are chosen to display based on either the dark theme or the light theme. In scripts with a large number of colors used, changing all colors to better display in dark mode or light mode can be a difficult and tedious process. This...
█ OVERVIEW This library is a tool for Pine programmers that provides functions for calculating risk-adjusted performance metrics on periodic price returns. The calculations used by this library's functions closely mirror those the Broker Emulator uses to calculate strategy performance metrics (e.g., Sharpe and Sortino ratios) without depending on...
Library "Cinnamon_BearIndicatorsMALibrary" This is a personal Library of the NON built-in PineScript Moving Average function used to code indicators ma_dema(source, length) Double Exponential Moving Average (DEMA) Parameters: source (simple float) length (simple int) Returns: A double level of smoothing helps to follow price movements more...
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 "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 "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...
Library "MyLibrary" This library contains various trading strategies and utility functions for Pine Script. simple_moving_average(src, length) simple_moving_average @description Calculates the Simple Moving Average (SMA) of a given series. Parameters: src (float) : (series float) The input series (e.g., close prices). length (int) : (int) The...
Library "MyTVBOT" TODO: add library description here buy_message(password, amount, order_name) Make a buy Message for TradingHook. Parameters: password (string) : (string) password that you set in .env file. amount (float) : (float) amount. If not set, your strategy qty will be sent. order_name (string) : (string) order_name. The...
Library "Objects" A collection of frequently used objects functions in my scripts. method getType(this) Identifies an object's type. Namespace types: series int, simple int, input int, const int Parameters: this (int) : Object to inspect. Returns: A string representation of the type. method getType(this) Namespace types: series float,...
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 "Autofibo" fibonacci(up, down, calculate, log, color1, color2, plot) Creates an array with fibbonaci levels and plots lines. Parameters: up (float) down (float) calculate (bool) log (bool) color1 (color) color2 (color) plot (bool) Returns: --> var float tupple. fibonacciExtension(up, down,...
Signal Generation Library = "signalLib_yashgode9" This library, named "signalLib_yashgode9", is designed to generate buy and sell signals based on the price action of a financial instrument. It utilizes various technical indicators and parameters to determine the market direction and provide actionable signals for traders. Key Features:- 1.Trend Direction...
Library "VolumeSpreadAnalysis" A library for Volume Spread Analysis (VSA). spread(_barIndex) Calculates the spread of a bar. Parameters: _barIndex (int) : (int) The index of the bar. Returns: (float) The spread of the bar. volume(_barIndex) Retrieves the volume of a bar. Parameters: _barIndex (int) : (int) The index of the...
Library "MyLibrary001" Library for calculating the number of bars in the last X trading days BarsInLastXDays(numTradingDays) BarsInLastXDays @description Calculates the number of bars in the last X trading days Parameters: numTradingDays (int) : int Number of trading days to consider Returns: tuple(float, float) A tuple with the number of bars and...
Library "CandleAnalysis" A collection of frequently used candle analysis functions in my scripts. isBullish(barsBack) Checks if a specific bar is bullish. Parameters: barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar). Returns: True if the bar is bullish, otherwise returns false. isBearish(barsBack) Checks...
Library "MarketAnalysis" A collection of frequently used market analysis functions in my scripts. bullFibRet(priceLow, priceHigh, fibLevel) Calculates a bullish fibonacci retracement value. Parameters: priceLow (float) : (float) The lowest price point. priceHigh (float) : (float) The highest price point. fibLevel (float) : (float) The...