Currency Conversion for Dual Listed Stocks
This is a small tool for automatic currency conversion for dual listed stocks that trade in different currencies, i.e. Biontec: BNTX (USD) / 22UA (EUR).
- The label shows the converted price and the underlying's currency.
- Base currency is set to EUR.
- Automatically detects the underlying currency via syminfo.currency and converts it.
Breadth Indicators
HTF Trend FilterTrend filter based on higher timeframe candles. Can be used as entry filters.
Checks if last 3 higher timeframe candles are in fully ascending order or fully descending order. Additionally you can also check if close price is above min of last two highs or below max of last two lows.
Lime and Orange candles imply partial trend in higher timeframe. (only last 3 candles align)
Green and Red candles imply complete trend. (last 3 candles align along with current close price).
Just an experiment. Can be further improved,
Percentage Distance From Moving AverageThis indicator shows the percentage that an asset price is above or below its 50-period simple moving average.
You can change the 50-period moving average to whatever you'd like in the settings of the indicator.
There are other versions of this indicator that are currently public, but they all use the exponential moving average instead of the simple moving average.
DIX Two Symbols Delta and Cumulative DeltaJust a simple script to subtract the DIX of any two symbols give the Delta and Cumulative Delta. The default symbols are QQQ and IWM. There are a lot of possibilities with this, and it could easily be expanded to accommodate more symbols, but there are limitations to how many symbols I can add to this.
Subtract any Two Symbols and calculate the Cumulative DeltaJust a simple script to subtract any two symbols giving a delta of the values, and then getting a cumulative sum of each bars delta value. The two default symbols are the Value of All Trades on Upticks for US Stocks, and the Value of all Trades on Downticks for US Stocks. There are a lot of possibilities with this. Delta is turned off by default, to turn it on you have to select "Show Delta" in the inputs.
Multitimeframe Pivot HiLoPivot High/Low for multi timeframes.
Could be great entry filter to include multi time frame pivots in trend trading strategies.
Rabbit HoleHow deep is the Rabbit hole? Interesting experiment that finds the RISING HIGHS and FALLING LOWS and place the difference between the highs and lows into separate arrays.
== Calculations ==
In case current high is higher than previous high, we calculate the value by subtracting the current highest high with the previous High (lowest high) into array A,
same method for the lows just in Array B.
Since we subtract highs and lows it means velocity is taken into consideration with the plotting.
After adding a new value we remove the oldest value if the array is bigger than the Look back length. This is done for both lows and highs array.
Afterwards we sum up the lows and highs array (separately) and plot them separately, We can also smooth them a bit with Moving averages like HMA, JMA, KAMA and more.
== RULES ==
When High Lines crosses the Low Line we get a GREEN tunnel.
When Low Lines crosses the High line we get the RED tunnel.
The Greenish the stronger the up trend.
The Redish the stronger the downtrend.
== NOTES ==
Bars are not colored by default.
Better for higher time frames, 1 hour and above.
Enjoy and like if you like!
Follow up for new scripts: www.tradingview.com
Year/Quarter/Month/Week/Day breaksUse this script very effectively to create completely customisable breaks ranging from :
YEAR
QUARTER
MONTH
WEEK
DAY
High Low Rate Of ChangeAn experimental indicator using Pine Script Arrays. The indicators measures the rate of change of the highest highs and lowest lows. I call it the "High Low Rate of Change".
The H/L Rate of Change indicator finds the delta between the current highest high and previous highest high and after some filtering places these values into an array.
Same goes for the lowest lows.
In the end Sum it all up into the Histogram with optional smoothing using Exponential moving average (EMA).
==Colors==
Green: Up Trending.
Light Green: Weakening up trend.
Red: Down Trending.
Light Red Weakening Down Trending.
==Notes==
Bar colors are disabled by default.
Supports EMA smoothing (enabled by default).
Like if you Like and Enjoy!
Follow up for upcoming indicators: www.tradingview.com
vivander_BWAShows the percentage of the body of the candle in relation to the total size of the candle (including wicks)
[A618] Liquidity Levels Based OBV SR with KAMAWe all know OBV plays a very important role in figuring out price volume divergences and it can help anyone analyse the directivity force of the market and has a very good tradeoff if applied correctly
In this Experiment i have derived liquidity levels for OBV using volume jumps inside the market
A volume jump is classified as:
Good Volume Jump = 1.618 times the Average Volume (WMA or 2pole ButterWorth's Filter of Volume)
Great Volume Jump = 2 times the Average Volume (WMA or 2pole ButterWorth's Filter of Volume)
Extreme Volume Jump = 3 times the Average Volume (WMA or 2pole ButterWorth's Filter of Volume)
So the horizontal levels which you see on the indicator (colored in red/ blue / gray lines) are the derived Liquidity Levels for OBV in the Market, these are the levels where OBV is most likely to perform a movement or come back
Also I have applied KAMA indicator on top of OBV for better Directive guidance, as of my experiments KAMA seems to be most stable and consistence of all the other moving averages,
KAMA's Length inculde:
KAMA - 8
KAMA - 34
KAMA - 200
Hope this Script help you guys!
Thanks to Tradingview for providing such an awesome platform
##Note for Credits ::
The Ehlers 2 pole butterworth Filter function is derived from @cheatcountry script ()
ZigZag with Fibonacci LevelsHello Traders,
This is " ZigZag with Fibonacci Levels " script. It finds the ZigZag, draw Fibonacci lines and put labels accordingly. I get many requests for this script, so here it is.
You can set ZigZag period as you wish. Bigger numbers (such 20, 30) may give better perspective and result.
It draws Fibonacci levels between 0%-100% and If the price goes higher/lower than 100% level than the script draws Fibonacci Levels accordingly. This means it draws Fibonacci levels until this levels get higher/lower than the price.
As an example:
if you don't want to see ZigZag Lines then you have option to disable it and see only Fibonacci levels:
You have coloring options for Zigzag, Fibonacci lines and texts:
Enjoy!
Machine Learning / Longs [Experimental]Hello Traders/Programmers,
For long time I thought that if it's possible to make a script that has own memory and criterias in Pine. it would learn and find patterns as images according to given criterias. after we have arrays of strings, lines, labels I tried and made this experimental script. The script works only for Long positions.
Now lets look at how it works:
On each candle it creates an image of last 8 candles. before the image is created it finds highest/lowest levels of 8 candles, and creates a string with the lengths 64 (8 * 8). and for each square, it checks if it contains wick, green or red body, green or red body with wicks. see the following picture:
Each square gets the value:
0: nothing in it
1: only wick in it
2: only red body in it
3. only green body in it
4: red body and wick in it
5: green body and wick in it
And then it checks if price went up equal or higher than user-defined profit. if yes then it adds the image to the memory/array. and I call this part as Learning Part.
what I mean by image is:
if there is 1 or more element in the memory, it creates image for current 8 candles and checks the memory if there is a similar images. If the image has similarity higher than user-defined similarty level then if show the label "Matched" and similarity rate and the image in the memory. if it find any with the similarity rate is equal/greater than user-defined level then it stop searching more.
As an example matched image:
and then price increased and you got the profit :)
Options:
Period: if there is possible profit higher than user-defined minimum profit in that period, it checks the images from 2. to X. bars.
Min Profit: you need to set the minimum expected profit accordingly. for example in 1m chart don't enter %10 as min profit :)
Similarity Rate: as told above, you can set minimum similarity rate, higher similarity rate means better results but if you set higher rates, number of images will decrease. set it wisely :)
Max Memory Size: you can set number of images (that gives the profit equal/higher than you set) to be saved that in memory
Change Bar Color: optionally it can change bar colors if current image is found in the memory
Current version of the script doesn't check if the price reach the minimum profit target, so no statistics.
This is completely experimental work and I made it for fun. No one or no script can predict the future. and you should not try to predict the future.
P.S. it starts searching on last bar, it doesn't check historical bars. if you want you should check it in replay mode :)
if you get calculation time out error then hide/unhide the script. ;)
Enjoy!
Equity chart [LM]Hey Guys,
I have created draft version of chart where you can put your position amount and position price and position date for each entry and it will chart your equity as candle stick chart. There are currently possible to include 4 positions but you can add as many you like by modyfing the code.
It will calculate your average entry based on your input and in date where you add other entry it will create gap. I have already plan to include there also leverage on each position. The idea is that you should trade your equity and with this indicator you will be able to create your custom indicator based on equity chart and not price chart.
!! Unless you will enter position nothing will be rendered
Indicator is under breadth indicator because didn't know where to put it.
I release this script for collaboration and improving the idea with new features
Cheers,
Lukas
Double Mcclellan OscilatorPlots two Mcclellan Oscillators.
First MCO is plotted as the histogram using traditional n values of 19 and 39. Histogram is green when the oscillator is greater than 0.
Second MCO is plotted as the lime green and pink line. N values for the second oscillator should be lower than the first so that it has a shorter window length.
Advance/decline can be calculated using NYSE or NASDAQ stocks.
Previous High/Low MTFIndicator to plot higher time frame previous candle highs and lows.
One of the key factor in understanding the trend is to look at higher time-frames chart.
Parameters are explained below:
resolution : Chose resolution of higher timeframe. If set to same as symbol, it will consider next parameter HTFMultiplier for calculation of higher timeframe
HTFMultiplier : Multiply symbol timeframe to by HTFMultiplier to derive higher time-frame
Offset : Number of higher timeframe candles before to be plotted. 1 means - it will show highs/lows of previous higher timeframe candle.
Volume Zone Oscillator [xdecow]Volume Zone Oscillator (VZO) is an indicator that presents a different way of looking at OBV.
VZO is a difference (delta) between OBV and an exponential moving average.
The EMA becomes the baseline 0.
And in this way we can observe the strength of the movements, overbought and oversold (when the OBV is far from the average) and divergences.
Bride Index 4.1Bride Index 4.1 is a update of Bride Index 2.0 version. It now includes non-repaiting function and transparency input for EMAs lines.
This indicator shows possibles prices for the asset in daily or weekly close price with a scale from 3% to 60% (from 0.5% to 10% each line).
Attention for the input fields:
Period - D ou W (Upper case) - This field MUST have upper case letter. If you want to put close in minutes or hours, you must put the amount of minutes of the period (eg. 30 minutes insert 30 or 2 hours insert 120 ).
Variation (0.5% to 10%) - This field changes the gap between the lines in % of the close price.
PIPT | Power Index Pool Token | DeFi indexPowerPool provides a DeFi index that has too many components to be used as a chart ticker.
So here is an indicator to bypass the ticker limit.
From the PowerPool docs : app.powerpool.finance
The chart shows it in comparison to other DeFi indexes, quite a difference as you can see!
DPI | DeFi Pulse IndexTokenSets and DeFi Pulse provide a DeFi index that has too many components to be used as a chart ticker.
So here is an indicator to bypass the ticker limit.
From the TokenSets docs : www.tokensets.com
The chart shows it in comparison to other DeFi indexes, quite a difference as you can see!
sDEFI IndexThe Synthetix Exchange provides a DeFi index that has too many components to be used as a chart ticker.
So here is an indicator to bypass the ticker limit.
From the Synthetics docs : docs.synthetix.io
DeFi Index (sDEFI)
Contract: 0xe1aFe1Fd76Fd88f78cBf599ea1846231B8bA3B6B
Token | Initial Weight
---------------------------
Aave | 15%
Synthetix Network Token | 15%
yearn.finance | 15%
Uniswap | 10%
Compound | 7.50%
Maker | 7.50%
Balancer | 5%
Curve DAO Token | 5%
Kyber Network | 5%
Ren | 5%
UMA | 5%
Wrapped Nexus Mutual | 5%
The chart shows it in comparison to FTX's DeFi index, quite a difference as you can see!
Test: range mappingEXPERIMENTAL:
just a wild experiment..
mapping the average range break points to find natural hubs of support and resistance?!