With the new Pine Script features you can build pretty interesting scripts.
Here is my try to expand functionality of basic comparison tool you have in TradingView.
When you apply it on your chart you can select a bar when do you want to start comparing your instrument from.
In parameters you can specify up to 32 symbols to compare. You can also disable symbols...
This is a public library that include the functions explained below. The libraries are considered public domain code and permission is not required from the author if you reuse these functions in your open-source scripts
Relative strength is a ratio between two assets, most often a stock and a market average (index). This implementation uses the method described here and the second method described here to calculate its value: "To calculate the relative strength of a particular stock, divide the percentage change over some time period by the percentage change of a particular...
This script allows you to compare the percentage-based change in the price of any two securities on any given (and supported) timeframe on the chart. This can give you a very simple way to compare any two securities against one another.
Ex: If your base security gained 5%, and the other security gained 3% in a single day, the change comparison would show a green...
Compares the major forex currencies to to each other, good for seeing relative strength and choosing trading pairs based on that.
Original script is by @aelius from 2016. I just made it a bit more responsive, easier on the eye, and I added labels.
Kendall Rank Correlation Coefficient script.
This way to measure the ordinal association between two measured quantities described by Maurice Kendall (1938, Biometrika, 30 (1–2): 81–89, "A New Measure of Rank Correlation").
In this script I compare Kendall Coefficient and Pearson Coefficient (using built-in "correlation" function).
This is just a simple tool for convenient to compare and showing a clear image of all sector and index in Malaysia. They are just in one indicator. From this indicator, you can predict momentum of each sector in Malaysia, which is currently in bull or bear trend.
In the setting, the first line with the option...
This one compares the total candle height (Low to High), body size, also top and bottom wick sizes. I really don't know when it would be best to use this, but it gives a 0 baseline to compare candles side-by-side also to compare body size to wick size.
- The tallest of course is high minus low
- whether or not the close is above the open, the body...
This indicator is based on Historical Volatility (HV) built-in indicator with minor tweaks to match the Bitcoin Volatility Index (from Bybt).
Also, you can select a symbol to compare its volatility with the volatility of the currently selected symbol.
This will plot your choice of OHLC (or any of the averaging choices) of the current candle compared to the previous candle.
For example if you choose "high" for the input and set the chart to daily, you'll see the currently daily high vs the previous daily high.
Green candle represent a higher high and the length of the candle represents how much higher.
I compared custom median (using the sorting solution by @apozdnyakov) with built-in median (using percentile_nearest_rank function)
If you see the zero line this means the solutions give the same results.
The best results was achieved on the odd lengths.
1) Do not try to reinvent the wheel.
2) Always check the Pine Script docs to find already...
This Script is a Convenience Script Module for calculations based or started on a fix time / date.
(In difference to bar_index-based where the reference point is shifting from bar to bar, thus is dynamic).
- Comparison by start date
- Time driven studies or strategies
- Measuring from Date of Interest
The script also contains a date input...
This script allows you to input 2 different coins and plot % changes against each other.
Look Back is adjustable to account for different time frame windows. Default is 1, so each line will be graphed on a 1:1 ratio with the candle period selected on the chart. raising this number to 24 will plot the change across every 24 candles and so on. It's pretty...
This is a % premium vs average BTCUSD price. In other words, how much % more are exchanges selling bitcoin at compared to normal BTCUSD price?
Green: USD Exchanges including Bitfinex, Poloniex, Coinbase, and Bitstamp
Market: Stocks and ETF's
This overlay shows the deviation of the exponential moving average of the mid candle price of the currently loaded chart, away from the exponential moving average of the S&P and DOW combined and averaged mid candle price. The top and bottom lines also give a visual perspective of what a certain percentage (default 1%) looks like on the...
There are plenty of indicators that aim to measure the volatility (degree of variation) in the price of an instrument, the most well known being the average true range and the rolling standard deviation. Volatility indicators form the key components of most bands and trailing stops indicators, but can also be used to normalize oscillators, they are therefore...
Easy to use RSI and Stoch
Setting Menu has an option to toggle the RSI and Stoch ON and OFF for your own preference.
Great for reducing clutter when comparing oscillators, while giving the ease of use to just click the toggle option instead of having to find and reset your indicator settings.
Colour schemes adjustable in Settings Menu for personal taste.