BigBitsIO

Any Security vs. Any Security Change Comparison [BigBitsIO]

BigBitsIO Mis à jour   
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 bar of 2% because your base security outgained your other security by 2%.


Features:
- 2 securities to compare. A base and other.
- Shortlist of default securities to choose from.
- Ability to override the default securities list and use any security supported by TradingView. You must use the correct security string to do so.
- Resolution is tied to whatever the current chart is using. This way the view of the indicator always reflects the correct resolution of the chart.
- If either market has a 0% change, it is considered likely closed during that period and will result in a change of 0%, as they shouldn't be compared at that time.
Notes de version:
Updated the code to better account for discrepancies in security times. Now it will require candles to have the same starting time on the bar. This can cause gaps in data on certain combinations.

Related to this, I added another input to show a warning just in case people don't read this. On by default so people don't miss it, but easily disabled in the indicator settings.

Like and follow!

💻 Website: www.bigbits.io
📺 YouTube: www.youtube.com/bigbits
🎮 Discord: discord.gg/rapMn4z
🐦 Twitter: twitter.com/BigBitsIO
💸 Save $30 on TradingView Paid Plan: bit.ly/2CaRfjs
Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?