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 "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 "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...
Library "RiskManagement" This library keeps your money in check, and is used for testing and later on webhook-applications too. It has four volatility functions and two of them can be used to calculate a Stop-Loss, like Average True Range. It also can calculate Position Size, and the Risk Reward Ratio. But those calculations don't take leverage into account. ...
Library "LYGLibrary" A collection of custom tools & utility functions commonly used with my scripts getDecimals() Calculates how many decimals are on the quote price of the current market Returns: The current decimal places on the market quote price truncate(number, decimalPlaces) Truncates (cuts) excess decimal places Parameters: number...
The "Mizar_Library" is a powerful tool designed for Pine Script™ programmer’s, providing a collection of general functions that facilitate the usage of Mizar’s DCA (Dollar-Cost-Averaging) bot system. To begin using the Mizar Library, you first need to import it into your indicator script. Insert the following line below your indicator initiation line: import...
Lib:Generator This library generate levels that could be used inside SNG scripts and strategies. Also uses beta version of SNG Types library
Library "biased_price_target" Collection of functions that can be used for the calculation of biased price targets like stop loss and take profit from a reference price using several methods that are already provided by the "distance_ratio" library plus the 'HHLL'. Methods supported are percentagewise (PERC), atr-based (ATR), fixed profit (PROF), tick-based...
This library comprises valuable functions for implementing strategies on TradingView, articulated in a professional writing style. The initial version features a monthly Profit & Loss table with percentage variations, utilizing a modified version of the script by @QuantNomad. Library "strategy_utilities" monthly_table(results_prec, results_dark)...
Library "SAT_BACKTEST" ex_timezone(tz) switch case return exact @timezone for timezone input Parameters: tz (simple string) Returns: syminfo.timezone or tz if_in_date_range(usefromDate, fromDate, usetoDate, toDate, src_timezone, dst_timezone) if_in_date_range : check if @time_close is range Parameters: usefromDate (simple bool)...
Library "OrderLib" TODO: add library description here removeOrderView(view) Parameters: view (orderView) createOrderView(model, length, profit_color, loss_color, enter_color) Parameters: model (orderModel) length (simple int) profit_color (simple color) loss_color (simple color) enter_color (simple color) ...
Library "Libre" TODO: add library description here MMMM(toe) Parameters: toe (string) OOOO(toe, toe1, toe2, toe3, toe4, toe5, init) Parameters: toe (string) toe1 (string) toe2 (string) toe3 (string) toe4 (string) toe5 (string) init (int) XXXX(toe) Parameters: toe (string) WWWW(toe)...
WOAH Order Scaling! This Provides a user with methods to create a list of profit targets and order sizes which grow or shrink. For size, the will add up to specific sum. for Targets they will include the first and last, and can lean towards either, to scale the order grid. And thanks to @Hoanghetti for the markdown, i've included a basic usage example within...
Library "libKageMisc" Kage's Miscelaneous library print(_value) Print a numerical value in a label at last historical bar. Parameters: _value : (float) The value to be printed. Returns: Nothing. barsBackToDate(_year, _month, _day) Get the number of bars we have to go back to get data from a specific date. Parameters: _year : (int) Year...