sjakk

Relative Strength Auto Comparison

sjakk Aktualisiert   
Relative Strength Comparison with automatic selection of relevant index

Added support for most european and north american exchanges.


Versionshinweise:
Added SPX as a fallback index if no match found in table
Versionshinweise:
- Updated table with Exchange / Comparative index to include forex exchanges Oanda, Saxo, Fxcm, forex.com, and ice data serv. Used the dollar basket as comparative index in these cases
- tweaked input settings, everything enabled by default
Versionshinweise:
n/a
Versionshinweise:
// Auto Comparative Relative Strength //

Features
*. Compares strength of a symbol (usually an Asset/equity/stock) to the strength of a comparative symbol (usually an index)
*. autoselect of relevant comparative index/symbol
- Primarly for stocks. Uses a Global index to compare other indexes or cfd's. and dollar basket if symbol is a forex instrument.
*. Override function to use as normal RS line with specified index/symbol
*. Override symbol is used as a fallback when no match is found in the autoselect table
*. Zero Cross oscillator, with a moving average cross
*. Debug panel, lists the syminfo data used to select indices. If' anyone discovers bugs or unexpected behavior, a screenshot of the debugpanel should help track down the problem.

Updates
- Bugfix with _DLY suffix in the exchange info if you recieve only free data / not paid for realtime from exchange
- Workaround for the Euronext exchanges, uses timezone to select index, (so euronext paris, uses the cac40)
- simple moving average for the change calculation, experimented with different weights and moving averages for the change calculation. Sma works good and reliably.
- overridesymbol doubles as fallback index
- Added India's national stock exchange matchet to the nifty.

Known issues
Need to fill the table of exchanges and indexes. Only North American, European and India Stock Exchanges added so far.
requires some research, or even better, local knowledge to match a prefered index to a stock exchange
suggestions are welcome: The debug panel should give information on the Exchange, Symbol and index used for comparison
Versionshinweise:
Workaround/bugfix: syminfo.prefix only 8characters max? truncation of exchange names.
Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?