DesBleakley

SMACD - Standardised MACD

Standardised MACD - this uses the MACD indicator, but expressed as a percentage of Close price. This allows for the relative comparison between stocks which have different absolute values. MACD will give a high value to a high priced stock, whereas SMACD will represent stock performance in a standardised format, relative to the closing price of the stock. It effect it represents the MACD as a percentage of share price. An added advantage of SMACD over MACD is that since the indicator is relative to the price, later values are not inflated (assuming rising trend). Thus the scale is not linear, rather it more like a log scale, offering a truer picture of growth over time. It is for this reason the SMACD lines may slightly differ from MACD, but it is a more valid representation in my view. The difference is minor. (Developed by Des Bleakley - Melbourne)
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?
study(title="Moving Average Convergence/Divergence", shorttitle="MACD")
source = close
fastLength = input(12, minval=1), slowLength=input(26,minval=1)
signalLength=input(9,minval=1)
fastMA = ema(source, fastLength)
slowMA = ema(source, slowLength)
macd = ((fastMA - slowMA)/close)*100
signal = sma(macd, signalLength)
hist = macd - signal
plot(hist, color=red, style=histogram)
plot(macd, color=blue)
plot(signal, color=orange)