Library "SessionInBoxesPro" get_time_by_bar(bar_count) Parameters: bar_count get_positions_func(sessiontime_, duration_) Parameters: sessiontime_ duration_ get_period(_session, _start, _lookback) Parameters: _session _start _lookback is_start(_session) Parameters: _session is_end(_session)...
Library "TurntLibrary" Collection of functions created for simplification/easy referencing. Includes variations of moving averages, length value oscillators, and a few other simple functions based upon HH/LL values. ma(source, length, type) Apply a moving average to a float value Parameters: source : Value to be used length : Number of bars to...
█ OVERVIEW This is a simplest example of user-defined types (UDT) or objects , which simplify as alternative to hello world. █ CREDITS Tradingview █ USAGE These are the types used during initializations, commonly variables. export type Settings int bar float price string phrase ... Example of library function to print out label. ...
Library "Signal_transcoder_library" This is my 2nd iteration for sending Signals via Plots. (first one was the 8bit Version) Now a cleaner approach (thanks for the hints @lonesometheblue) _16bit_encode() Input a 16 bool Array Outputs a Float for transmitting via Plot _16bit_decode() Input a Float from plot via input-mapping Outputs a Array of 16...
Library "EconomicCalendar" 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 the...
Library "external_input_utils" Collection of external input utilities for conversion and other hacky functions str_to_src(value) str_to_src - Convert the string value to the coresponding source series. It can be used to limit the "input.source" choices provided to the end user. The most interesting part is that it can be used to overcome the "one...
Library "MovingAveragesLibrary" This is a library allowing one to select between many different Moving Average formulas to smooth out any float variable. You can use this library to apply a Moving Average function to any series of data as long as your source is a float. The default application would be for applying Moving Averages onto your chart. However,...
A Magical little helper friend for Candle Math. When composing scripts, it is often necessary to manipulate the math around the OHLC. At times, you want a scalar (absolute) value others you want a vector (+/-). Sometimes you want the open - close and sometimes you want just the positive number of the body size. You might want it in ticks or you might want it in...
Library "honestpersonallibrary" thestratnumber() this will return the number 1,2 or 3 using the logic from Rob Smiths #thestrat which uses these type of bars for setups getBodySize() Gets the current candle's body size (in POINTS, divide by 10 to get pips) Returns: The current candle's body size in POINTS getTopWickSize() Gets the current candle's...
Library "ReduceSecurityCalls" This library allows you to reduce the number of request.security calls to 1 per symbol per timeframe. Script provides example how to use it with request.security and possible optimisation applied to htf data call. This data can be used to calculate everything you need and more than that (for example you can calculate 4 emas with...
Library "Cayoshi_Library" fungtion show win loss and Netprofit Show Library สำหรับเรียกใช้ 1.Win_Loss_Show() การแสดง แพ้ ชนะ 2.NetProfit_Show() การแสดงผล Backtest 3.Count_Bar_Back_Test() กำหนดระยะเวลา หรือ แท่งบาร์ในการ Backtest
Library "EncoderDecoder" Simple example how to encode some values into float number and then decode it back to original values f_calctype() Encode parameter Returns: encoded value f_calctype() Decode parameter Returns: decoded value f_srctype() Encode parameter Returns: encoded value f_srctype() Decode parameter Returns:...
Library "into" convert literals by type, Same-types left in for bulk reasons. TODO: Expand Types b(string) Convert string to bool. Parameters: string : val A string value. Returns: Bool. b(bool) Pass Bool/bool Parameters: bool : Returns: Bool. b(float) Convert Float (True if exists and not 0) Parameters: float : val A...
A library that exposes a method to translate strings to numbers. Adapted from MichelT 's String to Number indicator.
Library "Helpers" ma(source, length, type) Generates moving average based on the given parameters Parameters: source : - series length : - length of the moving average type : - type of moving average (SMA, WMA, VWMA, RMA, HMA, LSMA, MAEMA, TMA) default: EMA @ returns - moving average series nearby(a, b, atr_period, atr_deviation)...
Library "LibBacktestingDayRange" TODO: add library description here import Nut_Satit/CalulateWinLoss/version as backtest rangdate(startDate, finishDate) TODO: add function description here Parameters: startDate : TODO: add parameter startDate description here finishDate : TODO: add parameter finishDate description...
Library "catchChecks" Type Check for Function Builders to allow Single item to be passed in, and determine what to do with the item, ie: need an x value? function that allows label, line, box, float, or even a string.. check item type? string ? 'str.tonumber(_item)' can be in the same switch as a 'line.get_price(_item, bar_index)' both outputting float or for...