PROTECTED SOURCE SCRIPT

Hourly Change Table (UTC Adjustable)

### Indicator Description: Hourly Change Table (UTC Adjustable)

The **Hourly Change Table (UTC Adjustable)** is a powerful tool designed for analyzing **hourly average price changes** across financial instruments. By calculating and sorting these averages, the indicator identifies the hours with the most significant positive and negative price movements. It also provides visual highlights directly on the chart for easier decision-making.

---

### What Does This Indicator Do?

1. **Analyzes Hourly Average Price Changes**:
- It calculates the **average percentage price change** for each hour based on the selected lookback period.

2. **Displays a Ranked Table**:
- The indicator generates a table ranking hourly averages from the highest to the lowest, allowing you to see which hours are the most impactful.

3. **Highlights Max and Min Hours on the Chart**:
- The hour with the highest average price change is highlighted in **green**.
- The hour with the lowest average price change is highlighted in **red**.

4. **Adjusts for Time Zones**:
- A customizable **UTC Offset** ensures the indicator aligns with your preferred time zone.

---

### Key Features

1. **Customizable Lookback Period**:
- Define how many bars the indicator analyzes to calculate meaningful trends.

2. **Time Zone Adjustment**:
- Adjust the UTC offset to match your local trading hours or preferred analysis window.

3. **Graphical Chart Highlights**:
- Instantly identify the most significant hours with color-coded chart backgrounds.

4. **Sorted Data Table**:
- View a ranked list of hourly averages with the maximum and minimum values highlighted for quick reference.

---

### How to Use This Indicator?

1. **Add to Your Chart**:
- Apply the indicator to any financial instrument and time frame on TradingView.

2. **Set the Lookback Period**:
- Configure the "Lookback Bars" setting to define how many bars the indicator should analyze.

3. **Configure the UTC Offset**:
- Align the indicator with your preferred time zone by setting the appropriate UTC offset (e.g., `2` for UTC+2).

4. **Enable Background Highlighting (Optional)**:
- Turn on "Enable Background Highlighting" to visually highlight the max and min hours on the chart.

5. **Analyze the Table**:
- Use the table to identify consistent hourly trends and make informed trading decisions based on historical data.

---

### Practical Use Cases

- **Volatility Analysis**:
- Identify the hours of highest activity or price movement to create a more effective trading plan.

- **Market Timing**:
- Optimize entry and exit points by focusing on the hours with the highest or lowest average changes.

- **Custom Strategy Development**:
- Incorporate hourly averages into your trading strategies for greater precision.

---

### Example (BTC/USD)

1. You are analyzing the **BTC/USD pair** and set the **UTC Offset** to `2` (UTC+2) to match your local time zone.
2. The indicator calculates and identifies:
- **10:00-11:00 (UTC+2)** as the hour with the highest average price increase (e.g., +0.85%).
- **14:00-15:00 (UTC+2)** as the hour with the lowest average price change (e.g., -0.65%).
3. Based on this information:
- You decide to **closely monitor 10:00-11:00** for potential bullish activity or upward momentum.
- You prepare for **14:00-15:00** to act cautiously or position for potential bearish movements.

---

### Important Notes

- **This indicator does not provide financial or investment advice.**
- It is intended solely for **educational purposes** to assist traders in analyzing historical price data.
- Always consider additional market factors, perform your own research, and consult with a financial advisor before making trading or investment decisions.

---

This description emphasizes that the indicator calculates **hourly averages**, while also including a disclaimer clarifying its educational purpose. It’s suitable for publication on TradingView.
Historical Volatility

نص برمجي محمي

تم نشر هذا النص البرمجي بمصدر غير مفتوح ويمكنك استخدامه بحرية. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني. لا يمكنك مشاهدة أو تعديل كود المصدر الخاص به.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟

إخلاء المسؤولية