Library "TradingWolfLibary" getMA(int, string) Gets a Moving Average based on type Parameters: int : length The MA period string : maType The type of MA Returns: A moving average with the given parameters minStop(float, simple, float, string) Calculates and returns Minimum stop loss Parameters: float : entry price (Close if...
Library "Strategy_PnL_Library" TODO: This is a library that helps you learn current pnl of open position and use it to create your own dynamic take profit or stop loss rules based on current level of your profit. It should only be used with strategies. inTrade() inTrade: Checks if a position is currently open. Returns: bool: true for yes, false for no. ...
Library "AkselitoLibrary" TODO: add library description here fun(x) TODO: add function description here Parameters: x : TODO: add parameter x description here Returns: TODO: add what function returns hi()
Library "FrostyBot" JSON Alert Builder for FrostyBot.js Binance Futures and FTX orders github.com More Complete Version Soon. TODO: Comment Functions and annotations from command reference ^^ TODO: Add additional whitelist and symbol mappings. leverage() buy() sell() cancelall() closelong() closeshort() traillong() trailshort() ...
Library "PineHelper" This library provides various functions to reduce your time. recent_opentrade_entry_bar_index() get a recent opentrade entry bar_index Returns: (int) bar_index recent_closedtrade_entry_bar_index() get a recent closedtrade entry bar_index Returns: (int) bar_index recent_closedtrade_exit_bar_index() get a recent closedtrade...
Library "MetaWorldEngineFilterLibrary3" GetCandleStickSize(Rule, Rule) returns size of the candle Parameters: Rule : 1: (float) _src_high Rule : 2: (float) _src_low Returns: candlestick size GetCandleStickBodySize(Rule, Rule) returns size of the candle body Parameters: Rule : 1: (float) _src_open Rule : 2: (float)...
This library comes with everything you need to add an On Balance Volume (OBV) filter to your strategy. getOnBalanceVolumeFilter(source, maType, fastMaLength, fastMaLength) Get the fast and slow moving average for on balance volume Parameters: source : hook this up to an 'input.source' input maType : Choose from EMA, SMA, RMA, or WMA ...
Library "PlurexSignal" Provides functions that wrap the built in TradingView strategy functions so you can seemlessly integrate with Plurex Signal automation. NOTE: Be sure to set your strategy close_entries_rule="ANY" and pyramiding=20 or some other amount appropriate to your strategy in order to have multiple entries. plurexMarket() Build a Plurex market...
Library "CalulateWinLoss" TODO: add library description here colorwhitered(x) TODO: add function description here Parameters: x : TODO: add parameter x description here Returns: TODO: add what function returns colorredwhite() cal()
Library "LibBacktestingDayRange" TODO: add library description here import Nut_Satit/CalulateWinLoss/version as backtest rangdate(startDate, finishDate) TODO: add function description here Parameters: startDate : TODO: add parameter startDate description here finishDate : TODO: add parameter finishDate description...
Library "Binance_Min_Limit_Order_amount_library" TODO: This library give us the minimum Limit Order amount for the contract in Binance. m_qty(n_v, m_fee, t_fee, cost, m_t) TODO: it give us the Minimum Qty for the trading in Binance Parameters: n_v : TODO: min_notional_value. 5 dollar is the minimum notional amount in Binance at the moment. ...
Library "LevelsManager" TODO: Track up to 6 TakeProfits and 1 StopLoss achievement for one or many of your buy/sell conditions. manageTrade(bool, bool, bool, string, string, float, float, bool, bool, bool, bool, bool, bool, float, float, float, float, float, float, float) Track TakeProfits and StopLoss achievement for one or many of your buy/sell...
Library "FunctionKellyCriterion" Kelly criterion methods. the kelly criterion helps with the decision of how much one should invest in a asset as long as you know the odds and expected return of said asset. simplified(win_p, rr) simplified version of the kelly criterion formula. Parameters: win_p : float, probability of winning. rr : float,...
Library "threengine_global_automation_library" A collection of functions used for trade automation getBaseCurrency() Gets the base currency for the chart's ticker. Supported trade pairs are USD, USDT, USDC, BTC, and PERP. Returns: Base currency as a string getChartSymbol() Get the current chart's symbol without the base currency appended to it....
Library "PlurexSignalIntegration" Provides tools for integrating Strategies and Alerts into plurex.io signals. plurexMarket() Build a Plurex market from a base and quote asset symbol. Returns: A market string that can be used in Plurex Signal messages. tickerToPlurexMarket() Builds simple Plurex market string from the syminfo Returns: A market string...
Library "fontilab" Provides function's indicators for pivot - trend - resistance. pivots(src, lenght, isHigh) Detecting pivot points (and returning price + bar index. Parameters: src : The chart we analyse. lenght : Used for the calcul. isHigh : lookging for high if true, low otherwise. Returns: The bar index and the price of the pivot. ...
Library "table_library" TODO: With this library, you can add tables to your strategies. strategy_table() Returns: Strategy Profit Table Adds a table to the graph of the strategy for which you are calling the function. You can see data such as net profit in this table. No parameters. Just call the function inside the strategy. Example Code : import...
Library "MonthlyReturnsVsMarket" is a repackaging of the script here Credits to @QuantNomad for orginal script Now you can avoid to pollute your own strategy's code with the monthly returns table code and just import the library and call displayMonthlyPnL(int precision) function To be used in strategy scripts.