PROTECTED SOURCE SCRIPT
Circuit Marker

# Circuit Marker
## Overview
The Circuit Marker indicator identifies and visually marks price circuit breaker events on your chart. Circuit breakers are significant price movements that trigger trading halts or restrictions in various markets, particularly in Indian stock exchanges.
## What it does
This indicator automatically detects when a security hits upper or lower circuit limits by identifying price movements of exactly 5%, 10%, or 20% from the previous day's close, combined with the stock closing at its daily high (upper circuit) or daily low (lower circuit).
## Key Features
- **Automatic Detection**: Identifies circuit breaker events with high precision using a 0.01% tolerance
- **Visual Markers**: Places green triangular markers above bars for upper circuits and red triangular markers below bars for lower circuits
- **Historical Analysis**: Shows circuit events for the last 252 trading days (approximately 1 year)
- **Clean Interface**: Simple, non-cluttering visual indicators with "UC" and "LC" labels
## How to Use
1. Add the indicator to any stock chart
2. Green triangles with "UC" appear above bars when upper circuit conditions are met
3. Red triangles with "LC" appear below bars when lower circuit conditions are met
4. Use these markers to identify periods of extreme price movement and potential trading opportunities or risk management points
## Technical Details
- **Detection Logic**: Combines exact percentage movements (5%, 10%, or 20%) with daily high/low closures
- **Precision**: Uses 0.0001 tolerance for accurate circuit detection
- **Timeframe**: Works on daily charts and higher timeframes
- **Overlay**: Plots directly on the price chart without creating a separate pane
*Note: This indicator is designed primarily for markets with circuit breaker mechanisms like Indian stock exchanges. Results may vary on other markets without similar price limit systems.*
## Overview
The Circuit Marker indicator identifies and visually marks price circuit breaker events on your chart. Circuit breakers are significant price movements that trigger trading halts or restrictions in various markets, particularly in Indian stock exchanges.
## What it does
This indicator automatically detects when a security hits upper or lower circuit limits by identifying price movements of exactly 5%, 10%, or 20% from the previous day's close, combined with the stock closing at its daily high (upper circuit) or daily low (lower circuit).
## Key Features
- **Automatic Detection**: Identifies circuit breaker events with high precision using a 0.01% tolerance
- **Visual Markers**: Places green triangular markers above bars for upper circuits and red triangular markers below bars for lower circuits
- **Historical Analysis**: Shows circuit events for the last 252 trading days (approximately 1 year)
- **Clean Interface**: Simple, non-cluttering visual indicators with "UC" and "LC" labels
## How to Use
1. Add the indicator to any stock chart
2. Green triangles with "UC" appear above bars when upper circuit conditions are met
3. Red triangles with "LC" appear below bars when lower circuit conditions are met
4. Use these markers to identify periods of extreme price movement and potential trading opportunities or risk management points
## Technical Details
- **Detection Logic**: Combines exact percentage movements (5%, 10%, or 20%) with daily high/low closures
- **Precision**: Uses 0.0001 tolerance for accurate circuit detection
- **Timeframe**: Works on daily charts and higher timeframes
- **Overlay**: Plots directly on the price chart without creating a separate pane
*Note: This indicator is designed primarily for markets with circuit breaker mechanisms like Indian stock exchanges. Results may vary on other markets without similar price limit systems.*
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
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ã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
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.