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...
Compares BTC volume vs USD volume overtime
Best used on 4hr timeframe. Not really some crazy alpha but good overview/statistic to keep track of.
(make sure to use on XBTUSD pair since it isnt using security calls to call the data)
This script is very much beta!
This is a simple script to visualize how two symbols move in relation to each other. For example if the underlying symbol is a 2x Gold ETF (meaning the ticker moves at 2x the spot price of gold---if gold goes up 3% this ticker should go up 6%) and the comparison symbol is an 2x inverse gold ETF (at gold up 3% this should move down...
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.
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.
Comparison of two trading instruments using the indicator. Visual comparison often does not provide complete information. The scale and amplitude of the fluctuations of the two trading pairs are very different. Therefore, it is better to compare indicators from these pairs. I have used for this purpose, the speed indicator of price movement wt. The red line is the...
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).
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 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 is my latest attempt to show price movement differences between symbols. I want to see the buying and selling pressure... is that price movement going with the market or is it moving alone? It's VERY interesting to watch this indicator and see how things play out!
In my previous versions the arrows on the chart were too much clutter, while the single row of...
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...
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...
When running MACD, it can be useful to compare the value of the MA difference to other values. In other words, is a particular stock or futures contract at a more extreme MACD value than another. This can be done by dividing by the price, however, that doesn't adjust for volatility differences. Using ATR, one can adjust for price and volatility at the same...
Early version of a script to compare one currency against multiple to get an index.
Default values loaded basically make something along the lines of, "USD global exchange rate"
I plan on making this less clunky/messy in future with respect to the coding and the user inputs. Works 100% right now though.
This script allows you to specify a security to overlay on your chart when viewing a certain symbol. The line will only show on that symbol, change symbols and it will disappear. I found that adding more than 4 lines will slow load time significantly, however if you can code it to be faster please let me know!
All credit to @gyromatical, a good samaritan.