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...
Scope: Up to 3 MA's can be applied at the users discretion Choose between 10 different average types including favorites from the Bjorgum series from HEMA to Reversal T3's Each MA can be independently set Go Multi-timeframe! Any MA can be set to any timeframe of reference you choose (ex. using 3 different timeframes of...
If the short term (Default 7) moving average cuts the medium term (default 25) moving average, BUY. Conversely, it generates the SELL signal. If the long term (Default 99) moving average cuts its short term moving average, Quick SELL. Conversely, it can be interpreted as Fast SELL. You can change the moving average and the number of days as you wish, and you can...
I add a basic strategy for the "Quadratic traffic light" indicator, it can help to find a good configuration. Regards.
Hello traders Here we go again.... with the second strategy snippet. Reminder: the first snipper was a Trailing Profit strategy script What's on the menu? A trailing stop is designed to protect gains by enabling a trade to remain open and continue to profit as long as the price is moving in the investor's favor. The order closes the trade if the price...
Hello traders Hope you enjoyed your weekend on my behalf. Was staying home working ... ^^ This is my first strategy educational post I'm doing ever While I'm generally against posting strategies because it's very easy to fake performance numbers... I cannot prevent myself from sharing a few cool strategy snippets anyway. So from now on, I'll be sharing a few...
Great Expectations helps traders answer the question: What is possible? It is a powerful question, yet exploration of the unknown always entails risk. A more complete set of questions better suited to traders could be: What opportunity exists from any given point on a chart? What portion of this opportunity can be realistically captured? What risk will be...
This is combo strategies for get a cumulative signal. Result signal will return 1 if two strategies is long, -1 if all strategies is short and 0 if signals of strategies is not equal. First strategy This System was created from the Book "How I Tripled My Money In The Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies. The...