Library "poStrategyLibrary" essential function for export isFlat() isLongShort() pipProfit() pipLoss()
█ OVERVIEW This library is a Pine Script™ programmer’s tool containing a variety of strategy-related functions to assist in calculations like profit and loss, stop losses and limits. It also includes several useful functions one can use to convert between units in ticks, price, currency or a percentage of the position's size. █ CONCEPTS The library...
Library "Adaptive_Length" This library contains functions to calculate Adaptive dynamic length which can be used in Moving Averages and other indicators. Two Exponential Moving Averages (EMA) are plotted. Coloring in plot is derived from Chikou filter and Dynamic length of MA1 is adapted using Signal output from Chikou library. dynamic(para, adapt_Pct,...
Library "Chikou" This library contains Chikou Filter function to enhances functionality of Chikou-Span from Ichimoku Cloud using a simple trend filter. Chikou is basically close value of ticker offset to close and it is a good for indicating if close value has crossed potential Support/Resistance zone from past. Chikou is usually used with 26 period. Chikou...
Library "eStrategy" Library contains methods which can help build custom strategy for continuous investment plans and also compare it with systematic buy and hold. sip(startYear, initialDeposit, depositFrequency, recurringDeposit, buyPrice) Depicts systematic buy and hold over period of time Parameters: startYear : Year on which SIP is started ...
Library "BjCandlePatterns" Patterns is a Japanese candlestick pattern recognition Library for developers. Functions here within detect viable setups in a variety of popular patterns. Please note some patterns are without filters such as comparisons to average candle sizing, or trend detection to allow the author more freedom. doji(dojiSize, dojiWickSize) ...
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 "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...
Library "TradingPortfolio" Simple functions for portfolio management. A portfolio is essentially a float array with 3 positions that gets passed around into these functions that ensure it gets properly updated as trading ensues. An example usage: import hugodanielcom/TradingPortfolio/XXXX as portfolio var float my_portfolio = portfolio.init(0.0,...
This library is used to convert Text type numbers are numbers. Library "StringtoNumber" str1 = '12340' , vv = numstrToNum(str1) numstrToNum() Example // This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org // © hapharmonic //@version=5 indicator("My Script") import hapharmonic/StringtoNumber/1 as CV TF =...
Library "PureRebalance" A rebalance function that is pure. Depends only on its arguments to perform the necessary calculations. rebalance(token_price, portfolio_token_amount, portfolio_fiat_amount, rebalance_ratio) Rebalances a portfolio made of tokens and fiat to a given ratio of tokens per fiat Parameters: token_price : The value of a single unit...
Library "MHCustomSpotTradingLibrary" HMA(float, float) Parameters: float : _src price data float : _length Period Returns: Hull Moving Average EHMA(float, float) Parameters: float : _src price data float : _length Period Returns: EHMA Moving Average THMA(float, float) Parameters: float : _src price data ...
Library "GenericTrading" This library aims to collect rare but useful operations for get_most_recent_long_or_short_position_closed_index() : returns most recent long/short closed bar index. get_most_recent_long_or_short_position_open_index() : returns most recent long/short closed bar index. These two functions designed to help to speed up the...