# Auto SL / TP — Automatic

## Auto SL / TP — Automatic Stop Loss & Take Profit

Auto SL/TP calculates appropriate Stop Loss and Take Profit levels based on the actual structure visible on the current chart. Instead of guessing, the system scans real swing highs and lows from the candle data to find relevant support and resistance zones — placing SL at a true price pivot, not an arbitrary percentage.

***

### Where the Feature Appears

Auto SL/TP is available in three places:

| Location                              | When to use                                                     |
| ------------------------------------- | --------------------------------------------------------------- |
| **Trade Panel → Order tab**           | Before placing a new order                                      |
| **Trade Panel → Positions tab**       | When a running position has no SL/TP yet                        |
| **Trades & Orders → Generate button** | Appears automatically when a position is missing both SL and TP |

***

### How to Use — New Order (Order Tab)

1. Fill in the basics: direction (Long/Short), order type, leverage, size.
2. In the **Take Profit** section, find the button group on the right side of the header:
   * Number button (default **3**) — select how many TP levels to create
   * **✨ Auto** button
3. Click the number button to pick how many TPs: **2 / 3 / 4 / 5 / 6**.
4. Click **✨ Auto**.
5. The system fills in the **SL** and all **TP** levels automatically.
6. Review the values, adjust any manually if needed, then submit the order as usual.

> You can always edit any Auto-filled price before placing — Auto is a starting point, not a final answer.

***

### How to Use — Running Position (Positions Tab)

1. Switch to the **Positions** tab.
2. Click on the position that needs SL/TP to expand its detail row.
3. At the bottom of the detail row, find the auto group:
   * Number button on the left: choose how many TPs to create
   * **✨ Auto** button on the right
4. Click **✨ Auto**.

> The Auto button in Positions is only available when the position has **no TPs set yet**. If TPs already exist, the button is dimmed — remove the existing TPs first, or add/edit them manually.

***

### How to Use — Via the Trades & Orders Warning

When you have an open position with **neither SL nor any TP set**, an amber warning card automatically appears at the top of the **Trades & Orders** indicator settings:

```
⚠  Position missing SL / TP
   [L] BTC  20x  MANUAL           [✨ Generate]
   [S] ETH  10x  MANUAL           [✨ Generate]
```

Click **Generate** next to the relevant position — SL and 3 TP levels are calculated and applied immediately without opening the Trade Panel.

***

### How the Algorithm Works

#### Data source

Auto SL/TP reads directly from the **candles currently visible on the chart** — not fixed percentages or a static table. Specifically:

* Scans all candles in the visible range to identify **swing highs** (pivot highs) and **swing lows** (pivot lows)
* Finds an SL at the nearest pivot within a valid % range from the entry price
* Finds each TP at progressively further pivots above (Long) or below (Short) entry

#### Parameters by timeframe — Crypto

The system automatically adjusts its % windows based on the **current chart timeframe**:

| Timeframe | SL Range   | First TP minimum |
| --------- | ---------- | ---------------- |
| 15 min    | 8.2 – 9.2% | \~3.2%           |
| 1 hour    | 9 – 18%    | \~6.2%           |
| 4 hours   | 8 – 9%     | \~7.5%           |
| 1 day     | 10 – 15%   | \~7.5%           |
| 3 days    | 15 – 20%   | \~8.7%           |
| 1 week    | 25 – 30%   | \~9.5%           |

> You do not need to remember these numbers — the system picks up the timeframe from the chart automatically.

#### When not enough pivots are found

If the chart lacks sufficient candle data or does not contain enough swing pivots in the relevant range, the system falls back to **Fibonacci ratios** (0.236, 0.382, 0.5, 0.618, 0.786, 1.0) to position the TP levels.

#### Quantity split across TP levels

Each TP is assigned a percentage of the total position that will close when that level is hit:

| TP Count | Distribution                      |
| -------- | --------------------------------- |
| 1 TP     | 100%                              |
| 2 TPs    | 50% / 50%                         |
| 3 TPs    | 40% / 30% / 30%                   |
| 4 TPs    | 30% / 25% / 25% / 20%             |
| 5 TPs    | 25% / 20% / 20% / 20% / 15%       |
| 6 TPs    | 20% / 20% / 15% / 15% / 15% / 15% |

TP1 always carries the highest percentage — locking in profit early while the remaining position runs further.

***

### Practical Notes

* **SL follows a real price pivot** — not a round number. If no pivot falls within the valid range, SL is placed at the furthest boundary of the allowed range.
* **TPs also follow pivots** — if the chart is in a low-structure zone (fresh price area, narrow range), TPs may cluster close together. Check them on the chart before confirming.
* **Results vary by timeframe** — the same entry price will produce different SL/TP on a 4H chart vs a 1H chart. Make sure you are on the timeframe that matches your trade plan before clicking Auto.
* **Intended as a starting point** — Auto SL/TP is a decision-support tool, not a replacement for your own analysis. Always review the generated levels on the chart before trading real money.


---

# Agent Instructions: 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:

```
GET https://docs.mrd-indicators.com/terminal-trade-eng/auto-sl-tp-automatic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
