Multi-Timeframe 200 EMA, "15" "30" "60" "240" "720" "D"
Library "Thuvien_publish" Thư viện build Strategy entry_volume_func(risk, entry, sl) Hàm tính khối lượng vào lệnh Parameters: risk (float) entry (float) sl (float) Returns: entry_volume: trả về khối lượng cần vào tp_sl_func(sl, entry, rr) Tính TP/SL theo RR cho trước Parameters: sl (float) entry (float) rr...
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...
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...
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...
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. All you need is to plot any two moving average then change the source of the indicator to get the total number of crosses. If Indicator is...
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...