How mohammedalrawi1/zeromq-mt5-bot works
ZeroMQ-MT5-Bot is a web dashboard and server for creating and monitoring trading strategies executed through an MT5 connection. The main workflow runs from dashboard trade entry, through authenticated server handling and Bot strategy/trade management, to MT request transport and the broker; the server also exposes trade history and economic-calendar news. Dashboard modules cover trade forms, live trade views, history, and news. The README provides no architectural detail, and unsampled source limits confirmation of several UI and socket relationships.
Main entry points: server.js Express routes and auth · Bot.js Strategy and trade manager · TradesPage.js Trade entry · MongoDB.js MongoDB access
Components 17
Web interface
- Login client
public/login/script.js - Dashboard app
public/dashboard/modules/App.js - Trade entry
public/dashboard/modules/pages/TradesPage.js - Trade views
public/dashboard/modules/Trade.js - Trade history view
public/dashboard/modules/HistoryTrade.js - History page
public/dashboard/modules/pages/HistoryPage.js - News dashboard
public/dashboard/modules/NewsContainer.js
Server API
- Express routes and auth
server.js - MongoDB access
MongoDB.js
Trade execution
- Strategy and trade manager
Bot.js - MT command and event adapter
MT.js - Request queue
ZMQBuffer.js
External integrations
- Economic calendar fetcher
NewsScraper.js - MongoDB
- MT5 service
- Economic calendar service
Other components
- Trader
Connections 19
- Trader → Login client: signs in
- Trader → Trade entry: enters trade
- Login client → Express routes and auth: submits credentials
- Dashboard app → Trade views: updates
public/dashboard/modules/App.js - Dashboard app → Express routes and auth: fetches trades
public/dashboard/modules/App.js - Trade entry → Express routes and auth: posts trade
public/dashboard/modules/pages/TradesPage.js - History page → Trade history view: renders
- Trade entry → News dashboard: selects news
- Express routes and auth → Strategy and trade manager: creates trade
server.js - Express routes and auth → Strategy and trade manager: closes trade
server.js - Express routes and auth → MongoDB access: reads history
server.js - Express routes and auth → Economic calendar fetcher: requests news
server.js - Strategy and trade manager → MT command and event adapter: manages positions
Bot.js - Strategy and trade manager → MongoDB access: persists trade data
Bot.js - MT command and event adapter → Request queue: sends requests
MT.js - Request queue → MT5 service: sends ZeroMQ requests
ZMQBuffer.js - MT5 service → MT command and event adapter: publishes updates
MT.js - MongoDB access → MongoDB: reads and writes
MongoDB.js - Economic calendar fetcher → Economic calendar service: fetches events
NewsScraper.js