# Half Trend

### Overview

**Half-Trend** is a **trend-following, step-style baseline** with an **ATR-based channel**. It climbs in uptrends using the **highest recent lows** and falls in downtrends using the **lowest recent highs**, flipping only when **price + smoothed extremes** confirm the change. You get a clean staircase baseline and symmetrical bands to trade **breakouts, pullbacks, or trend filters**.<br>

### Interpretation

* **Trend filter**: trade **with** the staircase direction; avoid counter-trend entries unless mean-reverting by design.
* **Breakout entries**: a close **above Upper band** in a rising baseline often signals **momentum continuation**; below Lower band in a falling baseline suggests **downside continuation**.
* **Pullback entries**: in an uptrend, **touch/hold above the baseline or lower band** can be an entry with tighter invalidation; inverse for shorts.
  * **Volatility awareness**: wider ATR ⇒ **wider bands** mean fewer false signals but slower reactions.

## Indicator Triggers:&#x20;

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FHW6gWusralcY0ObBik0z%2Fimage.png?alt=media&#x26;token=a1debc6b-bccb-4b23-a84e-e6872459b3c7" alt="" width="380"><figcaption></figcaption></figure>

### Cross Band

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FwnU7AZysDfVHeRHCFiPj%2Fimage.png?alt=media&#x26;token=f2a66587-0546-4a4d-8b83-7a2e1c474a0a" alt="" width="563"><figcaption><p>We want to place a long signal when price cross up the upper band.</p></figcaption></figure>

### Touch Band

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2Fnhx7S79TFxFgBCCVcRa8%2Fimage.png?alt=media&#x26;token=aa030691-3db1-49d2-bb5d-bd5e83e27a17" alt="We want to place a long signal when price touch down lower band" width="563"><figcaption><p>We want to place a long signal when price touch down lower band</p></figcaption></figure>

### Band Distance

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FFF6S60CbsuZ83LpY3JXV%2Fimage.png?alt=media&#x26;token=d200d096-6023-4faf-a786-6eba3eabf4eb" alt="" width="563"><figcaption><p>We want to place a long signal when half trend band is between 0.5 and 2% under the price</p></figcaption></figure>

### Trend Swap

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FPjoyretLj1tuDEqokDSw%2Fimage.png?alt=media&#x26;token=cf23486f-3963-4cd3-a6a8-9f36f0fd66ee" alt="" width="563"><figcaption><p>We want to place a long signal when half trend swaps bullish.</p></figcaption></figure>

### Trend Status

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2F9jW9lXAOI5bkbXpSwthg%2Fimage.png?alt=media&#x26;token=3b23f497-034f-439a-b0ca-e91339e8fc4b" alt="" width="563"><figcaption><p>We want to place a long signal when half trend status is bullish.</p></figcaption></figure>

### Strategy Ideas

* **Trend-Follow:**\
  \&#xNAN;*Enter long* on **close above Upper band** when baseline is stepping up; stoploss on **close below Baseline**.
* **Pullback-Buy:**\
  \&#xNAN;*Enter long* on **touch down of Baseline/Lower band** while trend is up, with stop under Lower band; symmetric for shorts.

### **Runbot Trading Tips**

* **Optimization:** Let the AI Agent Optimizer tune **Amplitude** and **Deviation** across regimes; evaluate **APR vs. max DD** trade-off.
* **Non-repainting:** Baseline steps only **forward**; flips require dual confirmation (SMA + price vs prior high/low).

<br>

Remember, no single indicator should be used in isolation. Always consider the broader market context and employ sound risk management practices in your trading.
