StockJustice

Opening Range & Daily and Weekly Pivots

This script is for a combination of two indicators: an Opening Range Breakout (ORB) indicator and a daily/weekly high/low pivot indicator. The ORB indicator displays the opening range (the high and low of the first X minutes of the trading day, where X is a user-defined parameter) as two lines on the chart. If the price closes above the ORB high, the script triggers an alert with the message "Price has broken above the opening range." Similarly, if the price closes below the ORB low, the script triggers an alert with the message "Price has broken below the opening range."

The daily/weekly high/low pivot indicator plots the previous day's high and low as well as the previous week's high and low. If the current price closes above yesterday's high or last week's high, the script triggers an alert with the messages "We are now trading higher than the previous daily high" and "We are now trading higher than the last week high", respectively. If the current price closes below yesterday's low or last week's low, the script triggers an alert with the messages "We are now trading lower than the previous daily low" and "We are now trading lower than the last week low", respectively.

In addition to the visual representation on the chart, the script also triggers alerts when the price crosses any of these levels. These alerts are intended to help traders make decisions about entering or exiting trades based on the price action relative to key levels of support and resistance.

Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

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.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?