OPEN-SOURCE SCRIPT
Eclipse Dates Indicator

This TradingView indicator displays vertical lines on eclipse dates from 1980 to 2030, with comprehensive filtering options for different types of eclipses.
Features
Date Range: Covers 221 eclipse events from 1980 to 2030
Eclipse Types: Filter by Solar and/or Lunar eclipses
Eclipse Subtypes: Filter by Total, Partial, Annular, Penumbral, and Hybrid eclipses
Year Range Selection: Focus on specific decades (1980-1990, 1990-2000, etc.)
Visual Customization: Separate styling for Solar and Lunar eclipses
Line Appearance: Customize color, style, and width
Label Options: Show/hide labels with customizable appearance
Eclipse Types
Show Solar Eclipses: Toggle visibility of Solar eclipses
Show Lunar Eclipses: Toggle visibility of Lunar eclipses
Eclipse Subtypes
Show Total Eclipses: Toggle visibility of Total eclipses
Show Partial Eclipses: Toggle visibility of Partial eclipses
Show Annular Eclipses: Toggle visibility of Annular eclipses
Show Penumbral Eclipses: Toggle visibility of Penumbral eclipses
Show Hybrid Eclipses: Toggle visibility of Hybrid eclipses
Visual Settings
Solar/Lunar Eclipse Line Color: Set the color for eclipse lines
Solar/Lunar Eclipse Line Style: Choose between solid, dashed, or dotted lines
Solar/Lunar Eclipse Line Width: Set the width of eclipse lines
Solar/Lunar Label Text Color: Set the color for label text
Solar/Lunar Label Background Color: Set the background color for labels
General Settings
Show Eclipse Labels: Toggle visibility of eclipse labels
Label Size: Choose between tiny, small, normal, or large labels
Extend Lines to Chart Borders: Toggle whether lines extend to chart borders
Year Range: Filter eclipses by decade (1980-1990, 1990-2000, etc.)
Usage Tips
For optimal visualization, use daily or weekly timeframes
When analyzing specific periods, use the Year Range filter
To focus on specific eclipse types, use the type and subtype filters
For cleaner charts, you can hide labels and only show lines
Customize colors to match your chart theme
Data Source
Eclipse data is sourced from NASA's Five Millennium Catalog of Solar Eclipses and includes both solar and lunar eclipses from 1980 to 2030.
Features
Date Range: Covers 221 eclipse events from 1980 to 2030
Eclipse Types: Filter by Solar and/or Lunar eclipses
Eclipse Subtypes: Filter by Total, Partial, Annular, Penumbral, and Hybrid eclipses
Year Range Selection: Focus on specific decades (1980-1990, 1990-2000, etc.)
Visual Customization: Separate styling for Solar and Lunar eclipses
Line Appearance: Customize color, style, and width
Label Options: Show/hide labels with customizable appearance
Eclipse Types
Show Solar Eclipses: Toggle visibility of Solar eclipses
Show Lunar Eclipses: Toggle visibility of Lunar eclipses
Eclipse Subtypes
Show Total Eclipses: Toggle visibility of Total eclipses
Show Partial Eclipses: Toggle visibility of Partial eclipses
Show Annular Eclipses: Toggle visibility of Annular eclipses
Show Penumbral Eclipses: Toggle visibility of Penumbral eclipses
Show Hybrid Eclipses: Toggle visibility of Hybrid eclipses
Visual Settings
Solar/Lunar Eclipse Line Color: Set the color for eclipse lines
Solar/Lunar Eclipse Line Style: Choose between solid, dashed, or dotted lines
Solar/Lunar Eclipse Line Width: Set the width of eclipse lines
Solar/Lunar Label Text Color: Set the color for label text
Solar/Lunar Label Background Color: Set the background color for labels
General Settings
Show Eclipse Labels: Toggle visibility of eclipse labels
Label Size: Choose between tiny, small, normal, or large labels
Extend Lines to Chart Borders: Toggle whether lines extend to chart borders
Year Range: Filter eclipses by decade (1980-1990, 1990-2000, etc.)
Usage Tips
For optimal visualization, use daily or weekly timeframes
When analyzing specific periods, use the Year Range filter
To focus on specific eclipse types, use the type and subtype filters
For cleaner charts, you can hide labels and only show lines
Customize colors to match your chart theme
Data Source
Eclipse data is sourced from NASA's Five Millennium Catalog of Solar Eclipses and includes both solar and lunar eclipses from 1980 to 2030.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
للوصول السريع إلى الرسم البياني، أضف هذا النص البرمجي إلى مفضلاتك - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
للوصول السريع إلى الرسم البياني، أضف هذا النص البرمجي إلى مفضلاتك - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.