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)
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questo script sui tuoi grafici?
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)