OPEN-SOURCE SCRIPT
Daily High/Low Close Breakout - GOLD

### **Daily High/Low Close Breakout Indicator**
This indicator is a powerful tool for identifying potential breakout opportunities based on the previous day's price action. It's built on a unique time-based logic that defines key support and resistance levels for the trading day.
---
### **How the Indicator Works**
The indicator operates in two main phases:
1. **Calculation Period (00:00 to 16:30 Tehran Time):** The indicator first observes the price action from the start of the day until 16:30. During this time, it records the highest and lowest **closing prices** of all candles. The chart background is shaded gray to visually mark this period.
2. **Trading Period (16:30 to 16:30 the next day):** At 16:30, the highest and lowest close levels are finalized and drawn as horizontal lines. These levels then become the primary breakout zones for the next 24 hours. The indicator will generate signals whenever the price crosses these lines.
---
### **Trading Signals**
The indicator uses a simple and effective crossover logic for its signals:
* **BUY Signal:** A signal is generated when a candle's closing price **crosses above** the high close line.
* **SELL Signal:** A signal is generated when a candle's closing price **crosses below** the low close line.
---
### **Important Usage Guidelines**
For optimal performance, please follow these specific recommendations:
* **Timeframe:** This indicator is designed and optimized to be used exclusively on the **15-minute timeframe**. Using it on other timeframes may produce inconsistent or unreliable results.
* **Primary Asset:** The logic for this indicator was developed and backtested primarily for **Gold (XAUUSD)**. Its performance and win rate have been observed to be the most consistent on this asset.
* **Asset Restriction:** It is strongly recommended to **avoid using this indicator on other currency pairs or assets**, as it has not been optimized for their specific market behavior.
---
### **Disclaimer**
*This indicator is provided for informational and educational purposes only. It is not financial advice. Past performance is not a guarantee of future results. All trading decisions should be based on your own research and risk analysis. Always use proper risk management.*
This indicator is a powerful tool for identifying potential breakout opportunities based on the previous day's price action. It's built on a unique time-based logic that defines key support and resistance levels for the trading day.
---
### **How the Indicator Works**
The indicator operates in two main phases:
1. **Calculation Period (00:00 to 16:30 Tehran Time):** The indicator first observes the price action from the start of the day until 16:30. During this time, it records the highest and lowest **closing prices** of all candles. The chart background is shaded gray to visually mark this period.
2. **Trading Period (16:30 to 16:30 the next day):** At 16:30, the highest and lowest close levels are finalized and drawn as horizontal lines. These levels then become the primary breakout zones for the next 24 hours. The indicator will generate signals whenever the price crosses these lines.
---
### **Trading Signals**
The indicator uses a simple and effective crossover logic for its signals:
* **BUY Signal:** A signal is generated when a candle's closing price **crosses above** the high close line.
* **SELL Signal:** A signal is generated when a candle's closing price **crosses below** the low close line.
---
### **Important Usage Guidelines**
For optimal performance, please follow these specific recommendations:
* **Timeframe:** This indicator is designed and optimized to be used exclusively on the **15-minute timeframe**. Using it on other timeframes may produce inconsistent or unreliable results.
* **Primary Asset:** The logic for this indicator was developed and backtested primarily for **Gold (XAUUSD)**. Its performance and win rate have been observed to be the most consistent on this asset.
* **Asset Restriction:** It is strongly recommended to **avoid using this indicator on other currency pairs or assets**, as it has not been optimized for their specific market behavior.
---
### **Disclaimer**
*This indicator is provided for informational and educational purposes only. It is not financial advice. Past performance is not a guarantee of future results. All trading decisions should be based on your own research and risk analysis. Always use proper risk management.*
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.