OPEN-SOURCE SCRIPT
已更新

Compare (RSI) Ticker 3x by fikira

3 436
Hi!

Here I've created an indicator which compares 1 Ticker with 1 or 2 other Tickers.

The basis is RSI (Source & Length is adjustable), but the main objective is NOT to concentrate on the RSI, but on the comparison between the 2 or 3 Tickers.
I've used RSI because in this way high priced Tickers (for example BTC, now $8500) can easily be compared with low priced Tickers (for example BTT, now $0,00042)


In this example I have NEO/USDT (Binance) as my initial Ticker, you can see the candlesticks of NEO/USDT.

In the "Compare" indicator, the 'close' of NEO appears as a white line.
The second line (blue) is a chosen second Ticker, in this case BTC/USDT (Binance)

In "Settings" > "Inputs" you can enable/disable the second or third Ticker

- The second Ticker has multiple choices
- The third you can type any Ticker you want, for example CRYPTOCAP:BNB, BINANCE:ETHUSDT, NASDAQ_DLY:NDX or whatever,
just start typing and you'll see the possibilities (You also can choose between "Cryptocurrencies", "Index", "Forex", ...)

You can also plot 2 EMA's, a Short and a Long period (Length is adjustable).
The EMA's have the same colour as the Tickers (Ticker 1 = white, 2 = blue, 3 = red, of course all adjustable)

- EMA Ticker 1 crossover Ticker 2/3 > Green cloud
- EMA Ticker 1 crossunder Ticker 2/3 > Red cloud


For example:

NEO/USDT (1, white) & BTC/USDT (2, blue) with Long Period EMA
快照

NEO/USDT (1, white) & BNB/USDT (3, red) with Long Period EMA
快照

NEO/USDT (1, white) & BNB/USDT (3, red) with Short Period EMA
快照

When the second chosen Ticker is the same as the first Ticker, of course you will be seeing lines
(because there is no difference between the 2 Tickers, the EMA is visible though)

Example:

Both BTC/USDT
快照

(The second indicator is my "Compare (RSI) MACD", a MACD of this indicator, which in this case is obviously flat)





版本注释
It is now possible to integrate the "Compare (RSI) MACD" indicator within this indicator,
just enable in "Settings" > "Inputs" > "MACD ON/OFF"

Default "MACD" is OFF, "MACD" won't be visible then

- When "MACD" = ON and only Ticker 2 is chosen, "MACD" will display "MACD" of Ticker1/Ticker2
- When "MACD" = ON and only Ticker 3 is chosen, "MACD" will display "MACD" of Ticker1/Ticker3
- When "MACD" = ON but no Ticker 2 or 3 is chosen, "MACD" won't be visible
- When "MACD" = ON but Ticker 2 AND 3 is chosen, "MACD" won't be visible
(because 2 MACD's is 1 is very messy, it is possible to show all 3 Tickers in the "Compare (RSI) indicator" though)
版本注释
The source is enhanced

Default source = "close" but can be changed to source = "volume"

- Settings > Inputs >
"ON = source 'close' OFF = source 'volume'"

Here source = "close":
快照

Here source = "volume":
快照
版本注释
When source = "close" , instead of only "close"
you now have the full options of:
"Open", "High", "Low", "Close", "HL2", "HLC3", "OHLC4", ...

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。