OPEN-SOURCE SCRIPT
ที่อัปเดต:

Sunday Open

4 568
Sunday Open – Weekly Open Levels
Description

The "Sunday Open" indicator automatically displays the market open levels for Sunday. These levels are often used by traders as potential support and resistance zones. The script requires no manual data input and works on any timeframe.

Functionality
- Displays the N most recent Sunday Open levels, including the current and previous ones.
- The color of the current level differs from the older ones, making it easier to identify on the chart.
- Lines can be customized by style, thickness, and label visibility.
- Alerts are triggered when the price crosses any Sunday Open level (either up or down).

User Settings
- Number of levels to display (1–100)
- Color for the current and past levels
- Line style: solid, dashed, dotted

Line thickness
- Display text labels on the chart
- Enable/disable alerts for price crossing

Useful For
- Quickly identifying key reference points at the beginning of the week
- Setting up trading scenarios around the open zone
- Receiving signals for breakouts or touches of the levels

Important !
All elements are created automatically—no manual drawing required.
If you want to create alerts for when the price crosses a Sunday Open level, you need to go to "Alerts" at the top of the screen and select "SO" in the "Condition" field.
Release Note
Improved Sunday Open level rendering logic. Horizontal lines now correctly extend to the right regardless of timeframe. Fixed an issue where lines appeared vertical due to identical x-coordinates. Code optimized for better stability and performance.
Release Note
Improved Sunday Open level rendering logic. Horizontal lines now correctly extend to the right regardless of timeframe. Fixed an issue where lines appeared vertical due to identical x-coordinates. Code optimized for better stability and performance.
Release Note
Added max_lines_count and max_labels_count to ensure proper rendering when the user selects a high number of historical levels.
Optimized the Sunday Open detection logic for better performance and accuracy across lower timeframes.
Code cleanup and minor syntax improvements for Pine Script v6.
Release Note
Bug fix: Resolved a rendering issue on higher timeframes (4H, 1D). Fixed a visual glitch where the Sunday Open line would occasionally draw vertically downwards at the market open due to overlapping start/end vector coordinates. Lines now extend horizontally as intended.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน