NinjaTrader 8 Alerts to Telegram or Discord: How to Get Them on Your Phone
You don't need to stare at the chart all day waiting for NQ to reach your level. A better setup is an alert that reaches your phone. NinjaTrader 8 has alerts, but it can't send them to Telegram or Discord. Here is what NinjaTrader can do on its own and how to get alerts on your phone.
What alerts NinjaTrader 8 has
NinjaTrader 8 has an Alerts window (New → Alerts) where you set conditions on price or an indicator. When a condition is met, the alert can:
- show in the Alerts Log and play a sound on your PC;
- share a message through a Share Service, such as email. Share Services are set up under Tools → Options → Share Services.
To get a text message, many traders use their carrier's email-to-SMS address. Telegram and Discord aren't built in: you need a NinjaScript script or a third-party add-on.
Telegram or Discord: which one
- Telegram: the notification reaches your phone instantly, even with the app closed. You need to create a bot, which takes a couple of minutes.
- Discord: great if you already have a server, alone or with your trading group. You just paste a channel webhook.
- Your own webhook: for connecting alerts to your own bot, a spreadsheet or an automation.
How to create the Telegram bot
- In Telegram, open a chat with @BotFather and send /newbot. Pick a name and it gives you the bot's token.
- Open a chat with your new bot and send it any message.
- Find your chat id: for example, open
https://api.telegram.org/bot<TOKEN>/getUpdatesin your browser and copy the number in"chat":{"id":…}.
Keep the token private: anyone who has it can post as your bot.
How to create the Discord webhook
- In your Discord server, go to Server Settings → Integrations → Webhooks.
- Create a new webhook, pick the channel and copy its URL (it starts with
https://discord.com/api/webhooks/).
Phone alerts with TQ Charts
TQ Charts reads prices from your NinjaTrader and has its own alerts, which can notify you on Telegram, Discord or a webhook:
- On the chart, Alt + A creates an alert at the cursor price. You can also create one from the right-click menu or on a drawing (line, trend line, rectangle, Fibonacci…).
- In the Alerts menu, turn on Also send to phone (Telegram / Discord).
- Paste the Telegram token and chat id, the Discord webhook or your own webhook, then press Send test.
What an alert can watch:
- price rising to a level, falling to it or crossing it, instantly or only on the candle close;
- price entering or leaving a zone (a rectangle);
- a trend line or an indicator such as VWAP or an EMA, whose level moves with the chart;
- a fast move, for example 40 points in 5 minutes;
- a time of day, using a vertical line.
Each alert can fire once or every time the condition is met. Your own webhook receives JSON with the symbol, condition, level, price, note and time.
The Free plan includes 10 active alerts with sound and Windows notifications. Telegram, Discord and webhook notifications are part of the Pro and Elite plans. Alerts are checked on your PC, so TQ Charts has to be open and connected to NinjaTrader. The steps are in the alerts tutorial.
FAQ
Can NinjaTrader 8 send alerts to Telegram?
Not natively. NinjaTrader 8 sends alerts through its Share Services, such as email. For Telegram or Discord you need a NinjaScript script, a third-party add-on, or an app such as TQ Charts that reads your NinjaTrader data.
How do I get NinjaTrader alerts on my phone?
With NinjaTrader alone, set up an email Share Service under Tools → Options and use the share action on the alert. For instant notifications, use a Telegram bot or a Discord webhook.
Does an alert place an order?
No. TQ Charts alerts only notify you: they don't open or close positions.