OPEN-SOURCE SCRIPT
Trading Halt Detector

This is an indicator that plots RED square above or below the last candle before a trading halt occurs. It calculates the time between every candle. If there's more than 1 minutes from a candle to the next one, a red square is going to show.
For exemple, if you trade on the 1min time frame and a Halt up happens, it usualy takes 5 minutes for the market to resume. Since the resuming candle open 5 minutes later, a RED square is going to appear below the last candle before the HALT.
- When a RED Square appears below the candle, it means that a HALT up occured.
- When a RED Square appears above the candle, it means that a HALT down occured.
You may use this indicator on multiple time frames but it's been built for 1 to 4 minutes time frame. It' s possible to adjust the time tolerance that you consider being a halt. The default setting is 1 minutes more than the chosen time frame.
For exemple, if you trade on the 1min time frame and a Halt up happens, it usualy takes 5 minutes for the market to resume. Since the resuming candle open 5 minutes later, a RED square is going to appear below the last candle before the HALT.
- When a RED Square appears below the candle, it means that a HALT up occured.
- When a RED Square appears above the candle, it means that a HALT down occured.
You may use this indicator on multiple time frames but it's been built for 1 to 4 minutes time frame. It' s possible to adjust the time tolerance that you consider being a halt. The default setting is 1 minutes more than the chosen time frame.
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.