Get phone alerts from your trading bot
Most guides show you how to make your bot send a Telegram message when it places a trade. That's useful, but it misses the alert you need most: the one that says the bot has stopped. A bot that crashed at 3am can't tell you it crashed. Here's how to get both kinds of alert on your phone for free, and how to get them without writing any code. Current as of October 2026.
The two kinds of alert
| Alert | Example | Who has to send it |
|---|---|---|
| Something happened | "Bought 0.1 BTC", "Up $150 today" | The bot itself |
| Something stopped | "Bot crashed", "Bot hasn't checked in for 10 minutes" | Something outside the bot that watches it |
If you only set up the first kind, a crash just means the messages go quiet, and quiet looks the same as "nothing to report". That's how a bot sits dead all night while the market moves.
Step 1: Pick where alerts go
ntfy is a free phone app (Android and iPhone) that shows a notification whenever something is posted to a topic you subscribe to. There's no account and no bot token. Choose a long, random topic name, because anyone who knows the name can read it, then subscribe to it in the app.
A Discord webhook works too if you'd rather get alerts in a private channel: open the channel's settings, choose Integrations, then Webhooks, and copy the address.
Step 2: Alerts from inside the bot
Sending to ntfy is one web request. In Python:
import requests
def alert(title, message, priority=3):
requests.post("https://ntfy.sh/your-long-random-topic",
data=message.encode(),
headers={"Title": title, "Priority": str(priority)},
timeout=10)
alert("Target hit", "Up $150.20 today", priority=4)
Wrap the call in try/except so a failed alert never stops the bot, and don't send one on every tick. Ntfy and Discord both limit how fast you can post.
Step 3: Alerts when the bot stops
This needs a small watcher that starts the bot and speaks up when it exits. On Windows, save this next to your bot as run-bot.bat and start the bot with it:
@echo off :loop python bot.py curl -s -H "Priority: 4" -d "Trading bot stopped. Restarting in 10 seconds." ntfy.sh/your-long-random-topic timeout /t 10 /nobreak >nul goto loop
On Mac or Linux the same idea in a shell script:
while true; do python3 bot.py curl -s -H "Priority: 4" -d "Trading bot stopped. Restarting in 10 seconds." ntfy.sh/your-long-random-topic sleep 10 done
This catches crashes, but not a bot that's frozen without exiting, and it can spam you if the bot crashes again straight away. If the bot also needs to survive a reboot, see how to keep a Python bot running 24/7 on Windows.
The no-code way: Helmdeck
Helmdeck is a desktop app for Windows, Mac and Linux that runs your bots, scripts and AI apps from one window, and it can send these alerts for you. Open Settings → Phone alerts, scan the QR code with the ntfy app (or paste a Discord webhook), then send a test alert.
- Crash alerts come from Helmdeck, not the bot, so you hear about it even when the bot is dead. If "Restart if it stops" is on, the alert says Helmdeck is already restarting it.
- Pick the events you want: crashed, needs you, finished, or hit a problem.
- Profit and loss targets. If your bot reports a number, such as today's P/L, set an amount above or below which you want a ping. You get one alert when it crosses, not one every few seconds.
- No spam. The same alert for the same bot is sent at most once every 2 minutes, and no more than 30 alerts an hour in all.
- Nothing private leaves your PC. An alert carries only the bot's name and its one-line status, never files, logs or keys.
To show the P/L on the bot's tile and use it for targets, the bot writes a small status file. Helmdeck's Python helper does it in two lines:
from helmdeck_status import report, money
stat, trend = money(142.8) # "+$142.80 today", shown in green
report("running", stat=stat, trend=trend, value=142.8)
Helmdeck is free for 3 builds. Phone alerts and restarts are part of Pro, which is $39 once.
Which should you use?
| Alerts in your code | Watcher script | Helmdeck | |
|---|---|---|---|
| Trade and profit alerts | Yes | No | Yes, from a number the bot reports |
| Alert when the bot crashes | No | Yes | Yes |
| Restarts the bot | No | Yes | Yes |
| Stops alert spam in a crash loop | No | No | Yes |
| Cost | Free | Free | Free for 3, Pro $39 once |
For one bot, a few lines in your code plus the watcher script covers it. When you're running several bots, Helmdeck gives you the same alerts for all of them, plus a live view of each from your phone.
Know the moment your bot stops
Free for 3 builds on Windows, Mac and Linux. No account needed.