OPEN-SOURCE SCRIPT
Cập nhật Golden/Death Cross Highlighter

This indicator helps you easily identify and visualize Golden Cross and Death Cross patterns combined with price action confirmation. It highlights chart backgrounds when specific conditions are met, making it easy to spot potential trend changes.
🔑 Key Features:
📈 Color Guide:
⚙️ Settings:
💡 Usage Tips:
🔑 Key Features:
- Highlights Golden Cross conditions (50 SMA crosses above 200 SMA) when price closes above both MAs
- Highlights Death Cross conditions (50 SMA crosses below 200 SMA) when price closes below both MAs
- Customizable MA lengths (default: 50 and 200)
- Adjustable highlight opacity
- Built-in alerts for cross events
- Clear visualization of both moving averages
📈 Color Guide:
- Yellow Background: Golden Cross active + price above both MAs
- Red Background: Death Cross active + price below both MAs
⚙️ Settings:
- Fast MA Length: Length of faster moving average (default 50)
- Slow MA Length: Length of slower moving average (default 200)
- Golden Cross Highlight Opacity: Adjust visibility of bullish highlights
- Death Cross Highlight Opacity: Adjust visibility of bearish highlights
💡 Usage Tips:
- Use in combination with other indicators for confirmation
- Set up alerts for potential trend changes
- Adjust opacity to match your chart style
- Works best on higher timeframes (4H, Daily, Weekly)
Phát hành các Ghi chú
Golden/Death Cross Highlighter 📊This indicator helps you easily identify and visualize Golden Cross and Death Cross patterns combined with price action confirmation. It highlights chart backgrounds when specific conditions are met, making it easy to spot potential trend changes.
🔑 Key Features:
• Highlights Golden Cross conditions (50 SMA crosses above 200 SMA) when price closes above both MAs
• Highlights Death Cross conditions (50 SMA crosses below 200 SMA) when price closes below both MAs
• Fully customizable moving average styles
• Adjustable highlight opacity
• Built-in alerts for cross events
• Clear visualization of both moving averages
📈 Color Guide:
• Yellow Background: Golden Cross active + price above both MAs
• Red Background: Death Cross active + price below both MAs
⚙️ Settings:
Moving Averages:
• Fast/Slow MA Length: Customize the length of each MA
• MA Colors: Choose colors for each moving average
• MA Width: Set line thickness (1-4 pixels)
• MA Style: Choose between Solid, Dashed, or Dotted lines
Highlighting:
• Golden Cross Highlight Opacity: Adjust visibility of bullish highlights
• Death Cross Highlight Opacity: Adjust visibility of bearish highlights
💡 Usage Tips:
• Use in combination with other indicators for confirmation
• Set up alerts for potential trend changes
• Adjust opacity to match your chart style
• Works best on higher timeframes (4H, Daily, Weekly)
• Customize MA styles to match your preferred chart aesthetics
📝 Update Log:
v1.1 - Added full customization for moving averages:
• Custom colors for each MA line
• Adjustable line thickness (1-4 pixels)
• Choice of line styles (Solid, Dashed, Dotted)
• Improved code stability and performance
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
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.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
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.