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.*
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.