OPEN-SOURCE SCRIPT
TD SeqEx Pro [VISIONAKI]

Logic:
When the stock price reaches the trigger condition for nine consecutive days during an upward/downward trend, a sequence of numbers 1, 2, 3, 4, 5, 6, 7, 8, 9 is generated and sequentially marked above/below the candlestick chart. The sequence only begins to display when the stock price reaches the trigger condition.
When the trigger condition is reached on number 9, a 9-turn structure is formed. If the trigger condition is not reached on the number 9, the numbers of the previous 8 disappear, and the 9-turn structure is invalid. A 9-turn structure formed during a stock price rise is called an "Upward 9" structure (a green highlight area with green small arrow). the number above the candlestick chart and then a downward trend may occur after the upward trend. Conversely, a nine-turn structure formed during a stock price fall is called a "Downward 9" structure (a red highlight area with red small arrow). the number below the candlestick chart, an upward trend is highly likely to continue.
Special Circumstances:
1) After the number 9 appears, it may extend to four more digits of 9, eventually reaching the 13th digit (9+4=13) as a high-probability trend reversal.
2) If the number 9 may continue to extend, even surpassing the 13th digit of 9, proving that the unilateral (buyer/seller) forces are too strong. A trend reversal will fail.
When the stock price reaches the trigger condition for nine consecutive days during an upward/downward trend, a sequence of numbers 1, 2, 3, 4, 5, 6, 7, 8, 9 is generated and sequentially marked above/below the candlestick chart. The sequence only begins to display when the stock price reaches the trigger condition.
When the trigger condition is reached on number 9, a 9-turn structure is formed. If the trigger condition is not reached on the number 9, the numbers of the previous 8 disappear, and the 9-turn structure is invalid. A 9-turn structure formed during a stock price rise is called an "Upward 9" structure (a green highlight area with green small arrow). the number above the candlestick chart and then a downward trend may occur after the upward trend. Conversely, a nine-turn structure formed during a stock price fall is called a "Downward 9" structure (a red highlight area with red small arrow). the number below the candlestick chart, an upward trend is highly likely to continue.
Special Circumstances:
1) After the number 9 appears, it may extend to four more digits of 9, eventually reaching the 13th digit (9+4=13) as a high-probability trend reversal.
2) If the number 9 may continue to extend, even surpassing the 13th digit of 9, proving that the unilateral (buyer/seller) forces are too strong. A trend reversal will fail.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.