Library "FunctionNNPerceptron" Perceptron Function for Neural networks. function(inputs, weights, bias, activation_function, alpha, scale) generalized perceptron node for Neural Networks. Parameters: inputs : float array, the inputs of the perceptron. weights : float array, the weights for inputs. bias : float, default=1.0, the default bias...
Library "MLActivationFunctions" Activation functions for Neural networks. binary_step(value) Basic threshold output classifier to activate/deactivate neuron. Parameters: value : float, value to process. Returns: float linear(value) Input is the same as output. Parameters: value : float, value to process. Returns: float sigmoid(value) ...
Library "MLLossFunctions" Methods for Loss functions. mse(expects, predicts) Mean Squared Error (MSE) " MSE = 1/N * sum ((y - y')^2) ". Parameters: expects : float array, expected values. predicts : float array, prediction values. Returns: float binary_cross_entropy(expects, predicts) Binary Cross-Entropy Loss (log). Parameters: ...
Library "Debug_Window_Library" Provides a framework for logging debug information to a window on the chart. consoleWrite(txt, maxLines) Adds a line of text to the debug window. The text is rolled off the bottom of the window as it fills up. Parameters: txt : - this is the text to be appended to the window maxLines : - this is the size of the...
Library "Points" Provides functions for simplifying operations with collections of x+y coordinates. Where x is typically a bar index or time (millisecond) value. new(size) Creates two arrays. One for X (int ) and another for Y (float ). Parameters: size : The initial size of the arrays. size(xA, yA) Checks the size of the arrays and if they're...
Library "eHarmonicpatterns" Library provides an alternative method to scan harmonic patterns. This is helpful in reducing iterations scan_xab(bcdRatio, err_min, err_max, patternArray) Checks if bcd ratio is in range of any harmonic pattern Parameters: bcdRatio : AB/XA ratio err_min : minimum error threshold err_max : maximum error...
Library "OteHmacSha256" Library to use HMAC SHA-256 by OgahTerkenal hmac_sha256(string) HMAC SHA-256 Parameters: string : msg String to be hashed Returns: Return a hashed string in hex format and an array of 8 32 bits integer Library to use HMAC SHA-256 for authenticating alert message going out from TradingView. It has limitation on allowed...
Library "StocksDeveloper_AutoTraderWeb" AutoTrader Web trading API functions implementation for Trading View. preparePlaceOrderJson(account, symbol, group, variety) Prepare a place order json Parameters: account : Pseudo or group account number symbol : AutoTrader Web's stock/derivative symbol group : Set it to true to use group account...
Library "WoodwindVault" Woodwind Vault provides reusable functions to support Thange Woodwind Playbook execution. getHighestHighAndLowestLow(period) determines the highest-high and lowest-low for the specified time interval. Parameters: period : int, the time interval for finding the highest-high and lowest-low. Returns: float, the highest-high and...
Library "ThangeVault" Thange Vault is a collection of utility functions required by the Thange Woodwind Playbook. debug(msg) Print debug information Parameters: msg : message to be logged on console Returns: nothing tickFormat() Create a string template to restrict stop-loss, take-profit level precision to ticks. Returns: A string format template
A simple hashmap implementation for pinescript. It gets your string array and transforms it into a hashmap. Before using it you need to initialize your array with the size you need for your specific case since the size is not dynamic. To use it, first you need to import it the following way: > import marspumpkin/hashmaps/1 Then, initialize your array with the...
PineScript Object Notation A workaround not having objects in pinescript. This is a Json-look-alike interpreter. Format: "attr=value:attr1=value1:attr2=value2". You can add new attributes, get the value in those attributes, set new values to existing attributes and check if an attribute exists.
Library "Divergence" Calculates a divergence between 2 series bullish(_src, _low, depth) Calculates bullish divergence Parameters: _src : Main series _low : Comparison series (`low` is used if no argument is supplied) depth : Fractal Depth (`2` is used if no argument is supplied) Returns: 2 boolean values for regular and hidden...
Library "CRCIndicators" price_from_to() price_change_from_to() roi() roi_from_to()
Library "TheDivergentLibrary" The Divergent Library is only useful when combined with the Pro version of The Divergent - Advanced divergence indicator . This is because the Basic (free) version of The Divergent does not expose the "Divergence Signal" value. Usage instructions: 1. Create a new chart 2. Add The Divergent (Pro) indicator to your...
This Library is aimed to mitigate the limitation of Pinescript having only one structured data type which is only arrays. It lacks data types like Dictionaries(in Python) or Object (in JS) that are standard for other languages. Tuples do exist, but it hardly solves any problem. Working only with Arrays could be overwhelming if your codebase is large. I looked for...
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...