Skip to main content

Risk rules & Telegram alerts

Guide

Set per-account drawdown, profit-target, floating-loss, and stale-terminal guards on the accounts your Reporter EA is streaming — then wire up a Telegram bot so xTriel pings you the moment a limit is crossed. Rules are read-only guardrails: xTriel watches and warns, it never touches your trades.

Risk rules are monitoring only. xTriel evaluates rules against the read-only snapshots your Reporter EA streams — it never opens, closes, or modifies positions. Because they run server-side against each incoming snapshot, a breach is normally caught within a few seconds of the snapshot that shows it (default UpdateTimer 5s, 60s heartbeat).

1 · Risk rule types

Rules apply per account and are set on the Risk page. Core limits sit at the top of each account card; the rest live under More limits. Below are the checks this guide focuses on.

Risk rule types
RuleTrips whenUse it for
Max daily drawdownThe account's drawdown percent for the day reaches your limit.A per-account daily loss guardrail — the most common prop-firm and personal rule.
Profit targetThe account's daily profit percent reaches or exceeds the value.A heads-up when a target is hit so you can lock in or stand down.
Max floating lossOpen, unrealized loss reaches the dollar value you set.Watching live exposure before positions close and losses become realized.
Stale-data / heartbeatNo snapshot arrives for the number of minutes you set.Catching a frozen terminal, a dropped VPS, or a network issue.

The More limits panel carries additional checks alongside these, including percent-based max drawdown, a minimum-equity floor, and a max-open-positions cap. Any field you leave blank is simply not evaluated for that account.

2 · Set rules per account

Rules are configured per account, so you can run tight limits on a prop-firm challenge and looser ones on a personal account at the same time.

  1. Open the Risk page. Go to app.xtriel.com/risk. Every terminal your Reporter EA has connected loads under Account risk limits.
  2. Pick an account. Find the account you want to guard by its CustomName — the name you gave it in the EA inputs, such as Prop Firm 1 or Gold VPS.
  3. Fill the core limits. Enter Max daily drawdown and/or Profit target. Leave a field blank to disable that check — an empty field is never evaluated.
  4. Open More limits for the rest. Expand More limits to set floating loss, minimum equity, max open positions, and the stale-terminal window. Again, blank means off.
  5. Save changes. Click Save changes. xTriel begins evaluating the rules against every new snapshot the Reporter EA sends for that account.
Tip: set the same rule on each account rather than one global limit. Per-account limits mean a breach on one terminal never masks or delays an alert on another.

3 · Telegram alerts

Telegram alerts are sent by xTriel, not by the MT5 EA directly. You connect Telegram once, and the same alert engine then delivers messages for every account whose rules trip.

  1. Create a bot with @BotFather. In Telegram, open a chat with @BotFather, send /newbot, and follow the prompts. BotFather replies with your bot token — a string like 123456789:AAExampleTelegramBotToken.
  2. Get your chat ID. Use your personal chat ID or a group chat ID. For a group, add your new bot to that group first so it is allowed to post there.
  3. Add the token and chat ID. Paste them where your setup expects them: the EA inputs TelegramBotToken and TelegramChatId, or Bot token and Chat ID on the dashboard Risk page.
  4. Save changes. Click Save changes. xTriel now routes rule-breach alerts to that chat.
TelegramBotToken = 123456789:AAExampleTelegramBotToken
TelegramChatId   = 123456789
Tip: send alerts to a dedicated Telegram group instead of your personal chat. You can add teammates later without regenerating anything, and a bot token pasted into a group is easier to rotate than one scattered across DMs.

4 · Test an alert

Confirm the wiring end to end before you rely on it, so you know Telegram is reachable without waiting for a real breach.

  1. Send a test message. On the Risk page, after saving your bot token and chat ID, click Send test message. A test alert should arrive in the target chat within a few seconds.
  2. Trip a harmless rule. To see a real rule fire without risking anything, set a limit you know is already crossed — a Profit target below the account's current daily profit, or a stale-terminal window shorter than the current gap. Save, wait for the next snapshot, and confirm the alert lands.
  3. Restore your real limits. Put the field back to the value you actually want and click Save changes again.
No message? Confirm the bot token and chat ID are correct, and that the bot is allowed to message the target user or group. If you are testing the same breach repeatedly, wait for the alert cooldown — xTriel batches and throttles repeat alerts so a single condition does not flood the chat.

5 · Best practices

A few habits keep risk rules useful and your Telegram signal clean rather than noisy.

Do

  • Set Max daily drawdown on every account — it is the single most valuable guardrail.
  • Always add a stale-terminal window so a frozen EA or dead VPS raises an alarm instead of going silent.
  • Route alerts to a dedicated group, and test with Send test message after any change to the bot token or chat ID.
  • Match limits to each account's mandate — tight on a prop-firm challenge, looser on a personal account.
  • Give each terminal a clear CustomName so an alert instantly tells you which account tripped.

Don't

  • Don't treat a fired alert as an automatic stop — the Reporter and risk-alert workflow are read-only and never close trades. The optional Copier EA executes approved copy commands locally in your own MT5 terminal.
  • Don't set limits so tight that normal intraday swings trip them; the constant pings train you to ignore Telegram.
  • Don't paste your bot token into shared screenshots or public channels; rotate it in @BotFather if it leaks.
  • Don't leave every field blank — an account with no rules is monitored on the dashboard but sends no alerts.