
Ever felt like you’re missing the perfect entry point because you can't stare at the charts 24/7? That was me. Instead of burning out by watching 1-minute candles all day, I decided to build a simple, efficient tool to do the heavy lifting for me.
Today, I’m sharing how I built a real-time BTC/USDT monitor that runs on a VPS and sends smart alerts directly to my Telegram.
🚀 What’s Under the Hood?
I wanted something lightweight that wouldn't consume my server's RAM or spam my phone every second. Here is the stack:
Language: TypeScript
API: CCXT (the industry standard for crypto exchange connectivity)
Indicators: technicalindicators for RSI and EMA calculations.
Deployment: PM2 for 24/7 background process management.
💡 The "Anti-Spam" Logic
The biggest mistake beginners make is sending an alert every single time a condition is met (e.g., every 60 seconds while RSI is > 70). My bot solves this using simple state flags:
TypeScript
let notifiedRsiOver70 = false;
// ... inside the main trade loop
if (currentRsi > 70) {
if (!notifiedRsiOver70) {
await sendTg(⚠️ OVERSOLD: RSI is ${currentRsi.toFixed(2)});
notifiedRsiOver70 = true; // Prevents duplicate alerts
}
} else {
notifiedRsiOver70 = false; // Reset when market cools down
}
🛠 Why Open Source?
I believe that simple tools like this are the perfect "starter kit" for anyone looking to dive into algorithmic trading. You don't need a complex AI model to start—you just need reliable data and smart notifications.
Check out the full source code on GitHub:
👉 https://github.com/rdin777/mexc-trading-bot-public
☕ Support the Project
If you find this bot useful for your own trading setups, feel free to check out the project page. Any contribution or star on GitHub helps me dedicate more time to adding new features, like support for more pairs and automated order execution!
Top comments (0)