The digital exponential filter, in finance known as Exponential Moving Average (EMA) , can be used as a technical indicator for chart analysis to visualize uptrends and downtrends in the market. Unlike the classic simple moving average, the EMA requires only two values for its calculation: the last calculated exponential average price and the current price....
Library "VandelayIndicatorLib" Art Vandelay's Indicator library STC_VIL(EEEEEE, BBBB, BBBBB) Schaff Trend Cycle Calculations Parameters: EEEEEE (int) : = Slengt, BBBB = FALenght, BBBBB = SLOLenght BBBB (simple int) BBBBB (simple int) Returns: Long : mAAAAA > mAAAAA - Short : mAAAAA < mAAAAA stc(source, fast, slow, cycle, d1, d2)...
Library "Complex" This library includes user-defined complex type, and functions to perform basic arithmetic operations on complex numbers. real(radius, angle) Calculates the real part of a complex number based on its polar coordinates. Parameters: radius (float) angle (float) imag(radius, angle) Calculates the imaginary part of a...
Indicators: Exponential Moving Averages (EMAs): Faster to respond to recent price changes compared to simple moving averages. RSI: Measures the magnitude of recent price changes to evaluate overbought or oversold conditions. Signal Generation: Buy Call Signal: Generated when the short EMA crosses above the long EMA and the RSI is not overbought (below 70). Buy...
Library "Binary" This library includes functions to convert between decimal and binary numeral formats, and logical and arithmetic operations on binary numbers. method toBin(value) Converts the provided boolean value into binary integers (0 or 1). Namespace types: series bool, simple bool, input bool, const bool Parameters: value (bool) :...
Library "ChartUtils" Library for chart utilities, including managing tables initTable(rows, cols, bgcolor) Initializes a table with specific dimensions and color Parameters: rows (int) : (int) Number of rows in the table cols (int) : (int) Number of columns in the table bgcolor (color) : (color) Background color of the table Returns:...
Library "TradingUtils" Utility library for common trading functions calcVariation(price, threshold) Calculates variation of a price based on a threshold Parameters: price (float) : (float) The price to be varied threshold (float) : (float) The threshold for the variation Returns: (float) The varied price sendAlert(action, symbol, orderType,...
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...
Just a simple Bitcoin halving countdown Set up for the 2028 halving with the block height set at 1050000 Block height can be setup in the script settings for future halving We don't have real time on-chain data on TradingView, so the script will update only once a day with a lag of one day (GLASSNODE data) until we get live data. If you have any...
Simple script to add standard Japanese candles in a new pane for use when using a non-standard chart (Ex: Heikin Ashi) that doesn't use true OHLC values in it's calculation so that you can still monitor true values and activity without having to take up the screen real estate that using a layout containing a whole new chart would require. This also makes...
Library "TRIG" degreesToRadians(degrees) Parameters: degrees (float) radiansToDegrees(radians) Parameters: radians (float) rt_get_angleAlphaFromLine(x1, y1, x2, y2, inDegrees) Parameters: x1 (int) y1 (float) x2 (int) y2 (float) inDegrees (bool) rt_get_angleBetaFromLine(x1, y1, x2, y2)...
Library "ALGEBRA" line_fromXy(x1, y1, x2, y2) Parameters: x1 (int) y1 (float) x2 (int) y2 (float) line_getPrice(x, slope, yInt) Parameters: x (int) slope (float) yInt (float) line_length(x1, y1, x2, y2) Parameters: x1 (int) y1 (float) x2 (int) y2 (float) distance(x1, y1, x2, y2)...
The Indicator calculates the total number of the death and golden crosses in the total chart which can help the moving average user to compare the number of signals generated by the moving average pair in the given timeframe. If Indicator is not plotting anything then right click on the indicator's scale and click on "Auto(data fits the screen)" option. Please...
Library "ImrLibrary" TODO: add library description here STG(Length) TODO: add function description here Parameters: Length (int) Returns: TODO: add what function returns ISI(Length) Parameters: Length (simple int)
Library "stats" stats factorial(x) factorial Parameters: x (int) standardize(x, length, lengthSmooth) standardize @description Moving Standardization of a time series. Parameters: x (float) length (int) lengthSmooth (int) dnorm(x, mean, sd) dnorm @description Approximation for Normal Density...
Overview The indicator prints different colors on the candles for pre-determined amplitudes in relation to the simple moving average over the average true range. Calculations The indicated value of the simple moving average in relation to the average true range is being used to restrict the color of the candle signal to its pre-determined amplitude. How It...
Library "EC_2025_Q4_EN" output2025() Returns the list of events during the period. Returns: array: (week1,week2, ... week_n) week_n= ;;; ... Where: is expressed as date + characteristics: YYYY,MM,DD,hh,mm,ss,x,y,z x impact in numbers y event name in numbers z currency in numbers name2025() Returns the list of event names during the...
Library "EC_2025_Q3_EN" output2025() Returns the list of events during the period. Returns: array: (week1,week2, ... week_n) week_n= ;;; ... Where: is expressed as date + characteristics: YYYY,MM,DD,hh,mm,ss,x,y,z x impact in numbers y event name in numbers z currency in numbers name2025() Returns the list of event names during the...