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)
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?
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)