OPEN-SOURCE SCRIPT
Dual-Scale MACD

Dual-Scale MACD is a dual-timeframe momentum indicator that displays a scaled short-term MACD together with a long-term MACD in the same pane.
The short-term MACD can be amplified by a configurable scale ratio, allowing its momentum structure to be visually aligned with the long-term MACD.
All EMA parameters are fully configurable, making this indicator suitable for experimentation with multi-cycle momentum resonance.
Features
Two independent MACD systems (short-term + long-term)
Fully configurable EMA parameters
Adjustable scale ratio for visual alignment
Clean histogram + top-layer signal line
Use cases
Multi-cycle momentum comparison
Trend confirmation & divergence analysis
Studying MACD resonance across time scales
This indicator is intended for analytical and educational purposes.
The short-term MACD can be amplified by a configurable scale ratio, allowing its momentum structure to be visually aligned with the long-term MACD.
All EMA parameters are fully configurable, making this indicator suitable for experimentation with multi-cycle momentum resonance.
Features
Two independent MACD systems (short-term + long-term)
Fully configurable EMA parameters
Adjustable scale ratio for visual alignment
Clean histogram + top-layer signal line
Use cases
Multi-cycle momentum comparison
Trend confirmation & divergence analysis
Studying MACD resonance across time scales
This indicator is intended for analytical and educational purposes.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.