Library "FibRatios" Library with calculation logic for fib retracement, extension and ratios retracement(a, b, ratio, logScale, precision) Calculates the retracement for points a, b with given ratio and scale Parameters: a : Starting point a b : Second point b ratio : Ratio for which we need to calculate retracement c logScale : Flag...
Library "DataCorrelation" Implementation of functions related to data correlation calculations. Formulas have been transformed in such a way that we avoid running loops and instead make use of time series to gradually build the data we need to perform calculation. This allows the calculations to run on unbound series, and/or higher number of samples 🎲...
We defined new method to derive zigzag last month - which is called Channel-Based-Zigzag . This script is an example of one of the use case of this method. 🎲 Trend Following Defining a trend following method is simple. Basic rule of trend following is Buy High and Sell Low (Yes, you heard it right). To explain further - methodology involve finding an...
This is my first attempt on implementing a statistical method. This problem was given to me by @lejmer (who also helped me later on building more efficient code to achieve this) when we were debating on the need for higher resource allocation to run scripts so it can run longer and faster. The major problem faced by those who want to implement statistics based...
Library "HSupertrend" Supertrend implementation based on harmonic patterns hsupertrend(zProperties, pProperties, errorPercent, showPatterns, patternColor) derives supertrend based on harmonic patterns Parameters: zProperties : ZigzagProperties containing Zigzag length and source array pProperties : PatternProperties used for calculation ...
Extending the earlier implemented concept of Harmonic-Patterns-Based-Trend-Follower , in this script, lets make it work as supertrend so that it is more easier to operate. 🎲 Process 🎯 Derive Zigzag and scan harmonic patterns for last 5 confirmed pivots 🎯 If a pattern is found, bullish and bearish zones are calculated based on parameter Base 🎯 These bullish and...
Earlier this week, published an idea on how harmonic patterns can be used for trend following. This script is an attempt to implement the same. 🎲 Process 🎯 Derive Zigzag and scan harmonic patterns for last 5 confirmed pivots 🎯 If a pattern is found, highest point of pattern will become the bullish zone and lower point of the pattern will become bearish zone. 🎯...
We are finally here with the implementation of backtesting tool for Auto-Harmonic-Pattern-UltimateX . CAUTION: THIS IS NOT A STRATEGY AND SHOULD NOT BE FOLLOWED BLINDLY. WE ENCOURAGE USERS TO UTILISE THIS AS BACKTESTING TOOL FOR BUILDING THEIR STRATEGY BASED ON HARMONIC PATTERNS This script is based on our premium indicator - ...
Similar to RelativeBandwidthFilter , this script is also a simple trend filter which can be used to define your trading zone. 🎲 Concept On contrary to reversal mindset, we define trend when price hits either side of the band. If close price hits upper band then it is considered as bullish and if close price hits lower band, then it is considered bearish....
Hello Everyone, Wish you all Merry X-Mas and happy new year. Lets start 2023 with fresh new strategy built on Wolfe Indicator. Details of the indicator can be found here 🎲 Wolfe Concept Wolfe concept is simple. Whenever a wedge is formed, draw a line joining pivot 1 and 4 as shown in the chart below: For simplicity, we will only consider static value for...
🎲 Concept Zigzag is built based on the price and number of offset bars. But, in this experiment, we build zigzag based on different bands such as Bollinger Band, Keltner Channel and Donchian Channel. The process is simple: 🎯 Derive bands based on input parameters 🎯 High of a bar is considered as pivot high only if the high price is above or equal to upper...
Library "BinaryInsertionSort" Library containing functions which can help create sorted array based on binary insertion sort. This sorting will be quicker than array.sort function if the sorting needs to be done on every bar and the size of the array is comparatively big. This is created with the intention of using this to solve a bigger problem posted by...
This is an attempt to develop alternative visualisation of financial charts. This script also makes use of new pine feature types which represents User Defined Object Types. You can refer to below documentation to understand more about this feature: www.tradingview.com www.tradingview.com 🎲 Structure of new chart components 🎯Instead of candles/bars,...
Library "ta" Collection of all custom and enhanced TA indicators. Same as enhanced_ta. But, removed all the displays to make it faster. ma(source, maType, length) returns custom moving averages Parameters: source : Moving Average Source maType : Moving Average Type : Can be sma, ema, hma, rma, wma, vwma, swma, highlow, linreg, median ...
Still experimental. Extending further on the divergence backtest results - in this script we try to project next 2 pivots (including one unconfirmed pivot) 🎲 Previous experiments 1. Divergence-Backtester 2. Divergence-Backtester-V2 🎲 Additions Apart from collecting the stats on number of occurrences of HH, HL, LH, LL - this script also keeps track of...
Further attempts to study divergence impact on price in shorter terms. Previous study can be found here: In this script, we are trying to gather the stats based on last two pivot state together. For example, Individual table of Pivot High Projection is as explained below: But, by looking at the bigger picture, we can further estimate following things...
Library "strategy" Library containing few key calculations for strategy involving leveraged limit and stop orders getQty(entry, stop, riskPercentage) calculate qty and leverage based on entry and stop price for given risk percentage. Parameters: entry : Entry Price stop : Stop Price riskPercentage : risk percentage per trade Returns: -...
Publishing free to use scripts always brought me more value - be it in terms of more followers, or helped me to engage with people having right ideas. This has helped me immensely over past few years of my presence in tradingview. To all the coders out there who is starting to work on pinescript - my suggestion is to publish as many open source/free to use...