> For the complete documentation index, see [llms.txt](https://docs.candelacharts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.candelacharts.com/toolkits/trend-concepts-tm/bias-magnet.md).

# Bias Magnet

<figure><img src="/files/KIN5dA1QMNyhCkbRNIoD" alt=""><figcaption></figcaption></figure>

**Bias Magnet** is an adaptive baseline component that tracks trend direction using half-trend style logic. It provides a clean, responsive line that hugs price without whipsaws, making it ideal for identifying trend direction and strength.

### How It Works

Bias Magnet uses a sophisticated algorithm that:

* Tracks the highest high and lowest low within a dynamic period
* Adjusts the baseline based on price action and moving average relationships
* Calculates trend strength from slope and momentum
* Provides visual feedback through dynamic line transparency

#### **Key Features**

### Adaptive Baseline

The baseline adapts to market conditions, moving up in uptrends and down in downtrends. It acts as dynamic support in bullish trends and dynamic resistance in bearish trends.

### Trend Strength Calculation

Bias Magnet calculates trend strength (0–100) by analyzing:

* **Slope magnitude**: How steep the baseline is moving
* **Momentum**: The rate of change in the baseline direction

This strength value is visualized through line transparency—darker lines indicate stronger trends.

### Flip Signals

When the trend changes direction, Bias Magnet displays visual signals:

* **▲ (Up Arrow)**: Bullish flip signal—trend has changed from bearish to bullish
* **▼ (Down Arrow)**: Bearish flip signal—trend has changed from bullish to bearish

These signals appear on the bar where the flip is confirmed, helping you catch trend changes early.

### Polarity Bars

Polarity bars (☰) appear above or below the baseline to show momentum direction:

* **Above baseline**: Bullish momentum
* **Below baseline**: Bearish momentum

The intensity (transparency) of the bars reflects momentum strength—darker bars indicate stronger momentum. These bars use MFI (Money Flow Index) calculations to determine momentum direction and strength.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.candelacharts.com/toolkits/trend-concepts-tm/bias-magnet.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
