PROTECTED SOURCE SCRIPT
Round Levels Cross Alert

Round Levels Cross Alert
Overview
The Round Levels Cross Alert is a Pine Script v6 indicator for TradingView that detects when the price crosses user-defined round price levels (e.g., 100, 200, 500). It is designed for traders focusing on psychological or key support/resistance levels, providing clear visual markers and real-time alerts with detailed messages.
Features
How It Works
The script calculates the nearest round level by flooring the closing price divided by the user-defined interval. It detects changes in this level to identify crosses, then:
Ideal For
Customization
Overview
The Round Levels Cross Alert is a Pine Script v6 indicator for TradingView that detects when the price crosses user-defined round price levels (e.g., 100, 200, 500). It is designed for traders focusing on psychological or key support/resistance levels, providing clear visual markers and real-time alerts with detailed messages.
Features
- Custom Round Levels: Set your preferred price interval (e.g., 100 points) using the Round Level Interval input.
- Visual Cues: Green triangle-up shapes appear below bars for upward crosses; red triangle-down shapes appear above for downward crosses.
- Detailed Alerts: Alerts include the ticker, crossed level, and time in HH:mm AM/PM format, triggered only on confirmed bars for accuracy.
- Multi-Level Detection: Captures multiple round-level crosses in a single bar, sending individual alerts for each.
- User-Friendly: Easy to set up and integrates with TradingView's alert system for notifications via email, SMS, or other platforms.
How It Works
The script calculates the nearest round level by flooring the closing price divided by the user-defined interval. It detects changes in this level to identify crosses, then:
- Plots a shape to visually mark the cross.
- Generates an alert with the ticker, crossed level, and current time.
- Handles multiple level crosses in one bar, ensuring all are reported.
Ideal For
- Swing Traders: Identify key levels for entries/exits.
- Day Traders: Monitor real-time price action at round numbers.
- Automated Alerts: Stay informed with timely notifications.
Customization
- Adjust the Round Level Interval to match your asset or strategy (e.g., 50, 100, 1000).
- Configure TradingView alerts to suit your notification preferences.
This indicator is a simple, effective tool for tracking price movements at significant round levels with clear visuals and actionable alerts.
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.