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 ...
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...
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...
Hey! I have been working on this script the lasts days, it's a collaboration with an uruguayan mate. #####IMPORTANT##### * It has been optimized for 4h charts, use it on other at your own risk. * Always use Stop Loss, since it might give false signals after a long trend. * I'm still working on it, I'm going to add candlestick pattern filtering. Thanks for your...