OPEN-SOURCE SCRIPT
تم تحديثه Magic Moving Averages

This indicator plots up to three adaptive “Magic MAs” plus a weighted combo line, with optional traditional SMAs for comparison.
Instead of averaging only closes, each Magic MA:
You can run:
How I use it:
Inputs:
This is a free / educational version of the Magic MAs.
It’s not financial advice – always manage your own risk.
Instead of averaging only closes, each Magic MA:
- looks at the midpoints of highs/lows and opens/closes
- decides whether recent behaviour favours the highs or the lows
- builds a series of either highs or lows, then smooths it over your chosen length
You can run:
- Short / Medium / Long Magic MAs
- A weighted combo line (using 1–10 weights)
- Optional traditional short/long SMAs on close
How I use it:
- Price above the combo line → bullish bias
- Price below the combo line → bearish bias
- Short/medium/long Magic MAs together → dynamic support/resistance and trend structure
- Traditional SMAs on for comparison with “classic” moving average behaviour
Inputs:
- Magic MA lengths control how reactive vs smooth each regime is
- Weights (1–10) let you emphasise short, medium or long regimes in the combo
This is a free / educational version of the Magic MAs.
It’s not financial advice – always manage your own risk.
ملاحظات الأخبار
Updated description:This indicator plots up to three adaptive “Magic MAs” plus a weighted combo line, with optional traditional SMAs for comparison.
Instead of averaging only closes, each Magic MA:
looks at the midpoints of highs/lows and opens/closes
decides whether recent behaviour favours the highs or the lows
builds a series of either highs or lows, then smooths it over your chosen length
You can run:
Short / Medium / Long Magic MAs
A weighted combo line (using 1–10 weights)
Optional traditional short/long SMAs on close
How I use it:
Price above the combo line → bullish bias
Price below the combo line → bearish bias
Short/medium/long Magic MAs together → dynamic support/resistance and trend structure
Traditional SMAs on for comparison with “classic” moving average behaviour
Inputs:
Magic MA lengths control how reactive vs smooth each regime is
Weights (1–10) let you emphasise short, medium or long regimes in the combo
This is a free / educational version of the Magic MAs.
It’s not financial advice – always manage your own risk.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.