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...
Library "srcCalc" Provides functions for converting input strings 'open','high','low','close','hl2','hlc3','ohlc4','hlcc4' to corresponding source values. get_src(src) Converts string to source float value Parameters: src : String to use (`close` is used if no argument is supplied). Returns: Returns the float value of the string
Library "json" Convert JSON strings to tradingview ▦ FEATURES ▦ █ Json to array █ Get json key names █ Get json key values █ Size of json get_json_keys_names(raw_json) Returns string array with all key names Parameters: raw_json : (string) Raw JSON string Returns: (string array) Array with all...
Library "TimeframeToMinutes" The timeframeToMinutes() function returns the number of minutes in an arbitrary timeframe string. timeframeToMinutes() Returns the number of minutes in the supplied timeframe string, which is arbitrary, i.e. it doesn't have to be the timeframe of the current chart but can be taken from an input. The sole advantage over the short...
apply to symbols expressed/valued in Chinese Yuan to automatically divide the symbol by FX:USDCNH. For example, I like to apply OKCOIN:BTCCNY to my main BTCUSD chart to compare, but I'd like to have the value for BTCCNY converted to USD for each tick---whether USDCNY was 6.30 or 6.80. This is a very narrow use script designed to be applied on top of of symbols...