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)
نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟
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)