This library is designed to aid traders and developers in calculating risk metrics efficiently across different asset types like equities, futures, and forex. It includes comprehensive functions that calculate the number of units or contracts to trade, the value at risk, and the total value of the position based on provided entry prices, stop levels, and risk...
Library "WebhookMessageDev" The webhook message library provides several functions for building JSON payloads method buildWebhookJson(msg) Builds the final JSON payload from a webhookMessage type. Namespace types: webhookMessage Parameters: msg (webhookMessage) : (webhookMessage) A prepared webhookMessage. Returns: A JSON Payload. method...
Library "MyLibrary" This library contains various trading strategies and utility functions for Pine Script. simple_moving_average(src, length) simple_moving_average @description Calculates the Simple Moving Average (SMA) of a given series. Parameters: src (float) : (series float) The input series (e.g., close prices). length (int) : (int) The...
Library "WebhookMessageLibrary" The webhook message library provides several functions for building JSON payloads method buildWebhookJson(msg, constants) Builds the final JSON payload from a webhookMessage type. Namespace types: webhookMessage Parameters: msg (webhookMessage) : (webhookMessage) A prepared webhookMessage. constants (CONSTANTS)...
Library "AminioLibrary" : this is my personal library that is being used in different indicators and strategies calculateMA(source, len, maType) This fuction returns a moving average value based on the type Parameters: source (float) : Is the time series source to calculate average from len (simple int) : The length of the moving average, this...
Library "Adaptive Profit And Loss" Provide Take profit and Stop loss values depending on source. TakeProfitPriceTypes() Provides supported Take profit sources Returns: Supported Take profit sources StopLossPriceTypes() Provides supported Take profit sources Returns: Supported Take profit sources Price(type) Get price value by selected price...
Library "multi_conditions_matrices" : facilitate including multiple AND / OR conditions to a script such as two entry / exit inputs groups. method addConditions(conditions, conditionPair) Helper to append conditions to a matrix condition array Namespace types: matrix Parameters: conditions (matrix) conditionPair (array) : array A condition...
Library "lib_risk_management" a lib to help with dynamic position sizing position_size(risk, account_balance, entry_price, sl_price) calculate the position size required to meet the account size based risk given when the stop loss is triggered Parameters: risk (float) : percentage of account balance to risk (1-100) account_balance (float) :...
Library "simpletrade" Library with Simple Trade types and tracking mechanism method evaluate(this) Evaluate current trade and update status Namespace types: SimpleTrade Parameters: this (SimpleTrade) : SimpleTrade object that need to be evaluated Returns: current SimpleTrade object method erase(this) Erase SimpleTrade drawings Namespace...
Library "Holiday" - Full Control over Holidays and Daylight Savings Time (DLS) The Holiday Library is an essential tool for traders and analysts who engage in backtesting and live trading . This comprehensive library enables the incorporation of crucial calendar elements - specifically Daylight Savings Time (DLS) adjustments and public holidays - into...
Strategy Statistics This library will add a table with statistics from your strategy. With this library, you won't have to switch to your strategy tester tab to view your results and positions. Usage: You can choose whether to set the table by input fields by adding the below code to your strategy or replace the parameters with the ones you would like to use...
Library "two_ma_logic" The core logic for the two moving average strategy that is used as an example for the internal logic of the "Template Trailing Strategy" and the "Two MA Signal Indicator" ma(source, maType, length) ma - Calculate the moving average of the given source for the given length and type of the average Parameters: source (float) : -...
Library "TradeTrackerv2" This library can be used to track (hypothetical) trades on the chart. Enter the Open, SL, and TP prices (or TP in R to have it calculated) and then call Trade.TrackTrade(barIndex). Keep track of your trades in an array and then simply call TradeTracker.UpdateAllTrades(close) to update all trades based on the current close price. How...
Library "Trade" A Trade Tracking Library Monitor conditions with less code by using Arrays. When your conditions are met in chronologically, a signal is returned and the scanning starts again. Create trades automatically with Stop Loss, Take Profit and Entry. The trades will automatically track based on the market movement and update when the targets are...
Library "TradingToolsLibrary" Easily create advanced entries, exits, filters and qualifiers to simulate strategies. Supports DCA (Dollar Cost Averaging) Lines, Stop Losses, Take Profits (with trailing or without) & ATR. method deepCopy(this) This creates a deep copy instead of a shallow copy of an entry_position. This does NOT deep copy the...
Library "gFancyMA" printLbl(y, x, c, m, b, s) Parameters: y (float) x (int) c (color) m (string) b (bool) s (string)
Library "lib_statemachine" simple state machine that allows tracking a state an manipulating it with conditions method step(this, before, after, condition) will step the state of the state machine from one to the next in case of condition Namespace types: StateMachine Parameters: this (StateMachine) : (StateMachine) the state machine to use ...
Library "CNTLibrary" Custom Functions To Help Code In Pinescript V5 Coded By Christian Nataliano First Coded In 10/06/2023 Last Edited In 22/06/2023 Huge Shout Out To © ZenAndTheArtOfTrading and his ZenLibrary V5, Some Of The Custom Functions Were Heavily Inspired By Matt's Work & His Pine Script Mastery Course Another Shout Out To The TradingView's Team...