TradingView
NeoButane
7 Dis 2020 pukul 03.36

Cross Pair [NeoButane] 

Invesco QQQ Trust, Series 1NASDAQ

Huraian

Creates candlesticks of a cross pair of any symbol you want. Ideally both pairs would be denominated in the same currency.

The candlesticks are plotted, a close value is available to use for applying indicators on, and a label shows what is being used.

Options to configure are choosing the symbols, displaying the ticker without the exchange name, and removing wicks. If the exchange prefix is 'BATS', 'FRED', or 'TVC', it is automatically removed.


Nota Keluaran

Added labels for percentage changes over a daily, weekly, or monthly period. The labels are colored according to a positive or negative move. It should be colorblind friendly so there is no input to change color.

Example of daily periods with BTC / YFI:


Example of weekly periods with ETH / XRP:


If you have a particular pair you view often, you can enter settings, click on the 'Defaults' button, and save as default.

Nota Keluaran

Added text size input for the ticker text, changed the percent label style so it won't block the ticker, and fixed the removal of the exchange prefix when multiple coins are used from the same exchange.

Nota Keluaran

Added yearly change.
Komen
Yelian
Interesting script! I'm trying to figure out how to best interpret it vis-a-vis my trading system. Is it mostly aiming to track the "exchange rate" of one symbol in terms of the other?
NeoButane
Actual before and after


I use the first element in the array created by str.split() to get the exchange prefix. Because of that, it won't work with multiple exchange names
NeoButane
The before and after of the fix in the update note doesn't show what was broken, this does

After using str.split() on the ticker, I use the first value in the array and replace it with "". It only works if the exchange for the multiple coins are the same. I can probably use array.join() so I can split it again by math operators but I'm not sure what that would achieve...
Lebih