OPEN-SOURCE SCRIPT

HSI1! First 30m Candle Strategy (15m Chart)

260
## HSI1! First 30-Minute Candle Breakout Strategy (15m Chart) — Description

### Overview
This strategy is designed for trading **Hang Seng Index (HSI) Futures** on a 15-minute chart. It uses the price range established during the first 30 minutes of the Hong Kong main session (09:15–09:44:59) to define key breakout levels for a systematic trade entry each day.

### How the Strategy Works

#### 1. Reference Candle Period
- **Aggregation Window:** The strategy monitors the first two 15-minute bars of the session (09:15:00–09:44:59 HKT).
- **Range Capture:** It records the highest and lowest prices (the "reference high/low") during this window.

#### 2. Trade Setup
- After the 09:45 bar completes, the reference range is locked in.
- Throughout the rest of the trading day (within session hours), the strategy looks for breakouts beyond the reference range.

#### 3. Entry Rules
- **Long Entry (Buy):**
- Triggered if price rises to or above the reference high.
- Only entered if the user's settings permit "Buy Only" or "Both".
- **Short Entry (Sell):**
- Triggered if price falls to or below the reference low.
- Only entered if the user's settings permit "Sell Only" or "Both".
- **Single trade per day:**
- Once any trade executes, no additional trades are opened until the next session.

#### 4. Exit Rules
- **Take Profit (TP):**
- Target profit is set to a distance equal to the initial range added above the long entry (or subtracted below the short entry).
- Example: For a 100-point range, a long trade targets entry + 100 points.
- **Stop Loss (SL):**
- Longs are stopped out if price falls back to the session's reference low; shorts are stopped out if price rallies to the reference high.

#### 5. Session Control
- Active only within the regular day session (09:15–12:00 and 13:00–16:00 HKT).
- Trade tracking resets each new trading day.

#### 6. Trade Direction Manual Setting
- A user input allows restriction to "Buy Only", "Sell Only" or "Both" directions, providing discretion over daily bias.

### Example Workflow

| Step | Action |
|---------------------------|-------------------------------------------------------------------------|
| 09:15–09:44 | Aggregate first two 15m candles; record daily high/low |
| After 09:45 | Wait for a breakout (price crossing either the high or the low) |
| Long trade triggered | Enter at the reference high, target is "high + range", SL is at the low |
| Short trade triggered | Enter at the reference low, target is "low - range", SL at the high |
| Trade management | No more trades for the day, regardless of further breakouts |
| End of session (if open) | Trades may be closed per further logic or left to strategy to handle |

### Key Features and Benefits

- **Discipline:** Only one trade per day, minimizing overtrading.
- **Clarity:** Transparent entry/exit rules; no discretionary execution.
- **Flexibility:** User can bias system to buy-only, sell-only, or allow both, depending on trend or personal view.
- **Simple Risk Control:** Pre-defined stop loss and profit target for every trade.
- **Works best in:** Trending, breakout-prone markets with a history of impulsive moves early in the session.

This strategy is ideal for systematic traders looking to capture the Hang Seng's early session momentum, with robust rule-based management and minimal intervention.

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.