# Alerts

## Alerts — Setup Guide (EN)

> Right alerts = never miss a real signal. Wrong alerts = phone goes wild
>
> * you start ignoring real ones. This file shows you how to wire alerts by trading style.

***

### 1. Alert modes overview

Premium has **8 alert modes** in the `Signals Alerts Type` setting:

| Mode                           | Includes                       | Frequency | Best for                    |
| ------------------------------ | ------------------------------ | --------- | --------------------------- |
| **None**                       | All alerts off                 | 0         | While testing the indicator |
| **Buy/Sell Pullback**          | ▲+ and ▼−                      | Medium    | Default for most traders    |
| **Buy/Sell Pullback Advanced** | BUY ADV / SELL ADV             | Very low  | A+ traders only             |
| **Buy/Sell Signals**           | Buy Hidden / Sell Hidden       | Low       | Swing traders               |
| **Bull/Bear Level**            | RSI entering Bull / Bear phase | Low       | Trend followers             |
| **Hidden Divergence**          | Blue / red dots                | Medium    | Confluence traders          |
| **Trap Signals**               | TB / TS                        | Rare      | Reversal traders            |
| **All**                        | Everything                     | High      | Pros watching one symbol    |

***

### 2. How to enable alerts properly

#### Step 1 — Pick the alert mode in Settings

1. Open the indicator's settings.
2. Find the group **`ANY ALERT() FUNCTION CALLS CONDITIONS`**.
3. Set `Signals Alerts Type` to match your style.
4. Close settings.

#### Step 2 — Create the TradingView alert

1. Right-click on the chart → **Add alert** (or Ctrl+L).
2. In the `Condition` dropdown: choose `mrD-RSI Premium`.
3. Second dropdown: choose **`Any alert() function call`**.
4. Set `Expiration` (recommended: **Open-ended**).
5. Enable **Notifications** (push, email, webhook — your choice).
6. Click **Create**.

#### Step 3 — Test

* Wait for one signal to fire on the symbol you trade.
* Check phone / email for the alert.
* Verify the alert content has ticker, timeframe, RSI, price.

***

### 3. Alert content samples

#### Buy/Sell Pullback

```
RSI Pullback BUY: BTCUSDT
Timeframe: 1h
RSI: 45.32
Price: $42150.50
© https://mrd-indicators.com/
```

#### Buy/Sell Pullback Advanced

```
RSI Advanced BUY Signal: BTCUSDT
Chart Timeframe: 4h
Signal Timeframe: 15m
RSI: 47.21
Price: $42030.00
Signal Type: Multi-Timeframe Confirmation
© https://mrd-indicators.com/
```

#### Buy/Sell Signals (Hidden)

```
RSI BUY Signals: BTCUSDT
Timeframe: 1h
Price: $42150.50
© https://mrd-indicators.com/
```

#### Bull/Bear Level

```
RSI BULL Level: BTCUSDT
Timeframe: 1h
Price: $42150.50
© https://mrd-indicators.com/
```

#### Hidden Divergence

```
BULL Hidden Divergence: BTCUSDT
Timeframe: 1h
Price: $42150.50
© https://mrd-indicators.com/
```

#### Trap Signals

```
RSI TRAP BUY (Bulls trapped → SELL): BTCUSDT
Timeframe: 1h
Resistance: 60.5
Strength: 75
RSI: 58.42
Price: $42150.50
© https://mrd-indicators.com/
```

***

### 4. Alert setup by trading style

#### Day trader (15m – 1H)

**Recommended**: `Buy/Sell Pullback`

* Enough signals to find intraday opportunities.
* Not as spammy as "All" mode.
* Each alert ≈ one ▲+ or ▼− opportunity.

**Workflow**:

1. Set alerts on a 5-symbol watchlist.
2. Alert fires → open chart → check MTF + level → decide.

#### Swing trader (4H – 1D)

**Recommended**: `Buy/Sell Pullback Advanced`

* Very few but very high quality signals.
* Each alert can be an A+ swing setup lasting 1–2 weeks.
* Ideal for traders not glued to screens.

**Workflow**:

1. Set alerts on 4H and 1D for 10–20 symbols.
2. Alert fires → prepare a plan, wait for confirmation.
3. Enter once confluence is met.

#### Reversal trader (counter-trend)

**Recommended**: `Trap Signals`

* Only TB / TS alerts — few but sharp.
* Ideal for traders who like catching momentum flips.

**Workflow**:

1. Watchlist symbols in strong trends.
2. TB / TS alert fires → trend is weakening.
3. Take a short-term reversal trade (R:R 1:1 – 1:2).

#### Divergence trader

**Recommended**: `Hidden Divergence`

* Alerts every hidden divergence — used as confluence.
* Don't enter from this alert alone — bias only.

**Workflow**:

1. Alert divergence on symbols you watch.
2. When divergence + Pullback signal coincide → A+ setup.

#### Pro trader (1–2 symbols)

**Recommended**: `All`

* Receive every alert for the symbol.
* Caveat: many alerts per day — only use with 1–2 symbols.

**Workflow**:

1. Set "All" alerts on one main symbol.
2. Triage by priority: Advanced > Hidden > Pullback > Trap > Divergence > Bull/Bear Level.

***

### 5. Multi-symbol alert setup

#### Method 1 — One chart per symbol

* Open 5–10 separate charts.
* Set alerts on each.
* **Pro**: easy to control, isolated.
* **Con**: burns alert slots (TradingView Free has 1 alert; Pro 20; Premium 400).

#### Method 2 — Watchlist alert (TradingView Pro+)

* Build a watchlist.
* Right-click watchlist → Add alert on watchlist.
* One template for the whole watchlist.
* **Pro**: saves slots, easy to manage.
* **Con**: same setting for all symbols, no per-symbol customization.

#### Method 3 — Webhook (TradingView Pro+)

* Set a webhook URL → Telegram bot / Discord / Slack.
* Every alert lands in one channel.
* **Pro**: centralized, easy to review history.
* **Con**: needs webhook setup knowledge.

***

### 6. Avoid alert spam

#### Symptoms

* Phone won't stop buzzing (10+ alerts/hour).
* You start **ignoring alerts** because there are too many.
* You trade by gut or miss important alerts.

#### Causes

* Using `All` mode with 5+ symbols.
* Trading too small a TF (1m–5m).
* Trading abnormally volatile markets (post-news).

#### Fixes

1. **Downgrade alert mode**: `All` → `Buy/Sell Pullback`.
2. **Move up a TF**: 5m → 15m → 1H.
3. **Trim symbols**: 10 → 3–5.
4. **Set active hours**: TradingView lets you schedule alerts per session.

***

### 7. Auto-trading bot integration (for coders)

#### Disclaimer

> This is **order automation**, not analysis automation. You still design the strategy — the indicator only triggers.

#### General approach

1. Set up a TradingView alert with a webhook URL.
2. Webhook points to your server (or a 3rd party like 3Commas, WunderTrading).
3. Server parses the alert → places orders via the exchange API.

#### Alert content recommendation for bots

In `Signals Alerts Type`, choose `Buy/Sell Pullback Advanced` to minimize false-positive risk.

Suggested JSON format (build it yourself in TradingView's alert message box):

```json
{
  "ticker": "{{ticker}}",
  "timeframe": "{{interval}}",
  "action": "BUY",
  "price": "{{close}}",
  "rsi": "{{plot_0}}",
  "size_pct": 1.0
}
```

> ⚠️ The indicator **does not** push structured data like this. You need to construct the JSON yourself in the TradingView alert dialog.

***

### 8. FAQ

#### Q: I set up an alert but nothing arrives?

**A:** Check:

1. `Signals Alerts Type` is not `None`.
2. The signal type actually fired (look at chart history).
3. Alert condition is **`Any alert() function call`**, not "Once per bar".
4. Notification settings (browser, push, email) are enabled.

#### Q: Same signal alerts multiple times?

**A:** Signals only alert **once per bar** (`alert.freq_once_per_bar`). If you receive duplicates, you likely have multiple overlapping alerts or multiple charts on the same symbol.

#### Q: Do alerts repaint?

**A:** No. Alerts fire only when the signal confirms on a closed bar. Once you receive an alert, the signal is final.

#### Q: Are alerts delayed?

**A:** Depends on TradingView. Push notifications usually 5–30 seconds. Webhooks faster (1–5 seconds). Email slowest (1–5 minutes).

#### Q: Can I alert only when 2 indicators agree?

**A:** That's **multi-condition alerting** — TradingView doesn't support it directly. Workaround: webhook + server-side filtering for combo conditions.

***

### 9. Advanced troubleshooting

#### Alert never fires but signals show on chart

* Symbol has too little history → not enough data for RSI / MA.
* Fix: wait a few weeks for more data.

#### Alert fires but content is wrong (e.g. price $0)

* Symbol has data gaps or broken feed.
* Fix: switch to a different exchange / data feed.

#### Alert delay > 5 minutes

* TradingView servers under heavy load (peak hours).
* Fix: use webhook → your own Telegram bot for faster delivery.

***

> **Final rule:** An alert is **a call to look at the chart**, not an order to enter. Every alert deserves a **30-second MTF + level check** before you decide.


---

# 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/feature/tradingview-indicators/mrd-rsi-premium-eng/alerts.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.
