Added support for most european and north american exchanges.
- tweaked input settings, everything enabled by default
*. 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.
- 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.
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
Ganz im Sinne von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es verstehen und überprüfen können. Ein Hoch auf den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln. Sie können das Skript den Favoriten hinzufügen, um es auf dem Chart zu verwenden.
tldr; A more responsive smoothing isn't always a good thing.
It's wise to remember, a filter is only the removal of data, for the purpose of removing noise, it is NOT additional data in it self.
50 is the sma of the self comparative (close / sma(close, 50)) Changing the averaging method here is not included in the script as I believe it doesn't bring anything to the table. The same sma function and sma length is used as both numerator and denominator. You can shortening the period to less than 50 to make this more responsive and noisy. (the purpose of using sma here is to just smooth out the inherent problem with a simple offset RS "close / close", a sharp response is actually undesirable)
The 10 is an ema(RSline, 10) the signal line plotted on the chart along the RS line. This could use any smoothing filter really, but to keep code easy and simple, I didn't feel like adding options.
As for daytrading, this is written with the daily and weekly chart in mind. and since this is relative to an index, it's more of an helping hand in understanding who are the leaders and laggards in the market.