NodeMCP
Linux · REAL-WORLD USE CASES

Build a Crypto Trend Scanner on Linux: Telegram Market Alerts with AI

Use NodeMCP to build a read-only market trends scanner using public exchange candles, EMA/RSI/ATR, historical testing and useful Telegram alerts.

Nov 20, 2026 8 min read
Build a Crypto Trend Scanner on Linux: Telegram Market Alerts with AI
Want to try NodeMCP on your device? Try NodeMCP free

You follow BTC, ETH and a few other assets, but you cannot stare at candlestick charts all day. Price spikes happen while you commute; a trend changes during a meeting. Imagine a small Linux service that watches public exchange data, checks your explicit rules and sends one useful Telegram message when a meaningful condition appears. This is an achievable NodeMCP project: AI can help inspect your authorized server, write a testable scanner, supervise a service and explain surprising results. It is not an ATM and not a guarantee of the next price move. The goal is an observable early-warning system that makes your research more structured—not a bot that risks real money while you are away.

Decide what an alert means before choosing indicators

A trading signal is only useful when its meaning is unambiguous. Define the market (spot or derivatives), exchange, symbol allowlist, timeframe and what deserves a notification: price crossing a level, a volume breakout, an EMA trend change or a volatility spike. Distinguish a market observation ('EMA20 crossed EMA50 on a closed 1h candle') from a suggestion to buy with leverage. Set a timezone for display, but store candle timestamps in UTC. Document whether an event may repeat and what invalidates it. Ask AI to draft a clear rules table so you can evaluate the scanner without relying on intuition after the fact.

Get prices from public official APIs, without exchange trading keys

For a first version choose one permitted market-data source, such as Bybit's public V5 kline endpoint or public market WebSocket stream. Select exact market category and symbols, validate API responses and handle temporary outages, pagination and rate limits. Public candlestick data generally does not require an API key with order permissions, so do not connect your live account, withdrawal credentials or an auto-trading library. Exchanges may restrict geography or change instruments; never assume every requested symbol is available. Begin with a small allowlist and store the source exchange, candle interval and retrieval time beside each observation.

Only closed candles belong in reproducible historical signals

A 15-minute candle is still forming until its period ends. An EMA or RSI calculated from the live, incomplete candle can look convincing and then disappear when the interval closes. For comparable alerts and backtests, choose whether your strategy uses only confirmed closed candles, and enforce that consistently in both live calculations and historical testing. Watch for missing bars, duplicates, out-of-order timestamps, exchange downtime and different candle boundaries. If your data come from derivatives, note that spot, mark price and last-traded price are not interchangeable. AI should reject questionable input rather than inventing a precise signal from stale data.

Build a small transparent indicator toolkit

Start with two or three components rather than twenty. An EMA pair can summarize trend direction, RSI can describe relative momentum, and ATR can estimate a recent price-movement range. Add a minimum turnover or volume filter so that a tiny inactive pair does not generate dramatic but misleading alerts. Use clearly documented calculation periods, warm-up bars and handling for symbols with too little history. A 'strong trend' label should come from explicit numerical conditions, not the model's changing impression of a chart. Provide a short explanation for every alert so the reader can verify its source and logic.

Combine conditions without pretending to predict the future

For example, a scanner can observe a recently closed 1h candle with EMA20 above EMA50, positive relative momentum and volume above a threshold; another rule might flag an unusually large ATR-normalized move. These are screening conditions, not instructions to enter a trade. Specify alert cooldowns, reset conditions and how signals behave when different timeframes disagree. If a higher-timeframe trend is bearish, a lower-timeframe rebound should be labelled accordingly instead of being called a certain reversal. The assistant should distinguish supporting and conflicting evidence and write 'insufficient data' when needed.

Backtesting is where attractive ideas meet reality

A strategy that appears perfect on a handful of charts may fail when tested over different markets and months. Rebuild historical signals using the same closed-candle rules, use train/test time splits and a holdout period, and avoid data leakage or parameter tuning on the test interval. Count signal frequency, false positives, latency and how long a condition persisted. If you simulate trades for evaluation, include realistic fees, spread, slippage and funding where applicable, and distinguish simulated returns from real results. Survivorship bias, delistings and changing volatility regimes can mislead. No backtest proves future profitability; its job is to reveal weaknesses.

Send one useful Telegram message, not a flood

Create a separate alert bot with BotFather and a private destination chat or opted-in channel. Protect its token on the Linux server and restrict who can change the scanner configuration. A helpful alert includes exchange, symbol, timeframe, exact closed-candle timestamp, trigger conditions, observed price and source, plus a link to the instrument if relevant. Use a deterministic event key such as symbol+timeframe+rule+closed candle to avoid duplicates after restarts. Apply cooldowns, per-chat limits and bounded retries for Telegram 429 responses. Show when data are stale and suppress noisy repeat alerts during exchange outages.

Keep an audit trail and a manual control panel

Store the last processed candle per symbol, rule version, computed indicator values, emitted alert IDs and any data-quality warnings in a small database. SQLite can be enough initially; later a larger service may benefit from a proper queue and metrics. Add a dry-run mode so rules produce local logs without sending messages, a pause switch, and a safe way to compare settings before and after a change. Systemd can restart the read-only scanner after a crash, while NodeMCP helps an authorized operator inspect health and redacted logs. Do not build an exposed 'execute order' endpoint into an alert-only service.

Operate conservatively when markets or APIs break

Exchanges disconnect, change rate limits, add and delist instruments; Telegram may briefly reject requests. The scanner should back off politely, mark data stale, avoid fabricating a missing candle and never interpret an API error as a trading setup. Persist enough state to resume after reboot without replaying hundreds of old alerts. Check NTP or system clock accuracy, disk usage, service status and database backups. Keep public API requests within documented limits and resist the temptation to scan every pair every second. Fewer trusted signals beat a never-ending stream of noise.

Build your first observer, not an autopilot trader

Use an authorized Linux VPS with NodeMCP and ask AI to inspect its environment without changing anything. Pick three liquid symbols, one exchange, 1h closed candles and a simple transparent condition. Confirm public data retrieval, write tests for EMA/RSI/ATR, replay historical candles without leakage and enable Telegram alerts only after you review sample messages. Simulate an API outage and service restart; verify no duplicates or invented signals appear. Finish with a rules document, data-quality dashboard, privacy-safe logs and a clear warning that alerts are information, not financial advice. Only after evaluating performance should you even consider any separate, tightly controlled trading system.

Try this NodeMCP prompt

On my authorized NodeMCP Linux device [DEVICE], help build a READ-ONLY market trend scanner for [EXCHANGE] [SPOT / DERIVATIVES] symbols [LIST]. First inspect OS, available resources and services. Use only official PUBLIC candle/market-data APIs without trading, withdrawal or account keys. Define a versioned strategy using CONFIRMED CLOSED candles on [TIMEFRAMES], explicit EMA/RSI/ATR and volume conditions, input validation, UTC timestamps and rate-limited API retries. Create a reproducible backtest with chronological holdout, no look-ahead, and realistic assumptions about fees/slippage if hypothetical trades are evaluated; never promise profit. Keep a dry-run mode and SQLite event state. After I approve, store a Telegram BotFather token securely on the server without printing it; send descriptive opt-in alerts to [CHAT ID] with deterministic dedup keys, cooldown, clear exchange/symbol/timeframe/source and error handling for Telegram 429. Use an unprivileged systemd service, health checks, backup and rollback. Do not place orders or enable live autotrading, and never turn insufficient or stale market data into a trade recommendation.

Official documentation

Try this prompt

On my authorized NodeMCP Linux device [DEVICE], help build a READ-ONLY market trend scanner for [EXCHANGE] [SPOT / DERIVATIVES] symbols [LIST]. First inspect OS, available resources and services. Use only official PUBLIC candle/market-data APIs without trading, withdrawal or account keys. Define a versioned strategy using CONFIRMED CLOSED candles on [TIMEFRAMES], explicit EMA/RSI/ATR and volume conditions, input validation, UTC timestamps and rate-limited API retries. Create a reproducible backtest with chronological holdout, no look-ahead, and realistic assumptions about fees/slippage if hypothetical trades are evaluated; never promise profit. Keep a dry-run mode and SQLite event state. After I approve, store a Telegram BotFather token securely on the server without printing it; send descriptive opt-in alerts to [CHAT ID] with deterministic dedup keys, cooldown, clear exchange/symbol/timeframe/source and error handling for Telegram 429. Use an unprivileged systemd service, health checks, backup and rollback. Do not place orders or enable live autotrading, and never turn insufficient or stale market data into a trade recommendation.

Illustrative workflow, not a record of completed tasks. Review privileged actions and keep backups.

Our ecosystemExplore partners ↗
✓
Copied