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 ...
Tradingview default strategy tester has few limitations. To name some: Tradingview default strategy tester does not have option for periodic investment. Does not allow reduce and refill kind of operations. Comparison to buy and hold equity does not take into consideration on number of days invested Hence, I created this as base for my further...
Library "historicalrange" Library provices a method to calculate historical percentile range of series. hpercentrank(source) calculates historical percentrank of the source Parameters: source : Source for which historical percentrank needs to be calculated. Source should be ranging between 0-100. If using a source which can beyond 0-100, use short...
This is another script involving interactive inputs. This is similar to Manual-Harmonic-Patterns-With-interactive-inputs . But, instead of taking XABCD and verifying if it confirms to any pattern, here we only take XABC and project all PRZs. Example, upon adding the script to chart, it will prompt to select 4 points on chart by clicking on it. if we select X, A,...
This script is a drawing tool which allows users to draw XABCD on the chart and script will tell whether there is any harmonic patterns on the drawings made. The script is based on interactive inputs and requires users to chose XABCD points. Please note This is not a scanner and it will not scan historical bars for harmonic patterns. This needs to be used...
Library "eHarmonicpatterns" Library provides an alternative method to scan harmonic patterns. This is helpful in reducing iterations scan_xab(bcdRatio, err_min, err_max, patternArray) Checks if bcd ratio is in range of any harmonic pattern Parameters: bcdRatio : AB/XA ratio err_min : minimum error threshold err_max : maximum error...
Let's play a game!! Find your Christmas Tree and post it in the comments. How to use the script? Open any instrument which best describes the Christmas Tree (Preferably on hourly timeframe). Apply X-Mas Tree script on the chart. Enjoy the snowfall, changes in lightings and other animations. Animations only happen if the instrument is in trading session....
This is a supertrend with slight twisted concept which can be very benefecial in strong trending markets to reduce stop loss distance and exit slightly quicker. ⬜ Concept ▶ When the instrument is trending up, regular ATR shows high values if there are big green candles. This affect the stoploss distance in regular supertrend which leads to wide stops or delayed...
⬜ Note: This is not the strength of currency pairs. But, in this script we are trying to derive strength of individual currencies by matching against single base currency. ⬜ Process This is based on similar concept as that of Magic Numbers for stocks. Idea is simple. ▶ Calculate strength of each currency against USD. Derive the strength for both price movement...
Hello Traders, Here is an attempt to perform comparative analysis between top cryptos based on strength (oscillator) and volume. Methodology used here is similar to Magic Number formula described in the post : Enhanced Magic Formula for fundamental analysis . But, instead of using fundamentals, we are making use of few technicals to derive similar outcome. Usage...
Library "_arrayutils" Library contains utility functions using arrays. delete(arr, index) remove an item from array at specific index. Also deletes the item Parameters: arr : - array from which the item needs to be deleted index : - index of item to be deleted Returns: void pop(arr) remove the last item from array. Also deletes the...
Library "harmonicpatterns" harmonicpatterns: methods required for calculation of harmonic patterns. These are customised to be used in my scripts. But, also simple enough for others to make use of :) isGartleyPattern(xabRatio, abcRatio, bcdRatio, xadRatio, err_min, err_max) isGartleyPattern: Checks for harmonic pattern Gartley Parameters: xabRatio :...
Unique live widget which provides information about support and resistance along with distance to immediate levels. ⬜ Custom Candle Source Three options of candles available ▶ Regular OHLC candles ▶ Heikin-Ashi candles ( Taken leaf out of @Bjorgum's book - but, still could not do it as good as him :) ) ▶ Moving average candles ⬜ Multiple zigzags and...
Experimental. In regular scenario divergence calculation follows these procedure Pivots on price are considered as primary source They are compared with pivots on oscillators Trend bias of price is used This is an experimental version where Pivots on oscillators are considered as primary source They are compared with pivots on price Trend...
I started off with the intention of creating script to identify Wolfe wave projection. But, soon ran into problem with loops. Realized drawing wedge is more difficult than drawing converging triangle. Hence, took a step back and started working on wedges and triangle identification. Ended up with a messy output which looked like this. Had to take another step...
This table is intended to give you snapshot of how price and oscillators are moving along with zigzag pivots. This is done in the same lines of Zigzag-Trend-Divergence-Detector But, here are the differences Table shows multiple oscillator movements at a same time instead of one selected oscillator Divergence is not calculated and also supertrend based...
Here it is, as promised, supertrend based on Zigzag candles. Earlier scripts on the Zigzag Candles expedition are here: Zigzag-Candles Zigzag-Candles-MA Zigzag candles parameters Length and CandleSize remain as is. Along with this, we also add MALength and AtrMult to calculate ATR based on the new candles and to use it to derive supertrend. ...
We have the candles here: Zigzag-Candles Lets create moving average!! Just simple moving average at the moment. Since, items are in array. Not so easy to use standard functions of pine. Hence, will take that for future enhancements. ATR and Supertrend next!!