Back to Trending
RepositoryHTML
Dream-XR

Dream-XR/MT5-Post-Trade-Insight-Reporter

AutoTrade Forex Signals: Telegram to MT5 EA 2026 Strategy

121stars
0forks
0issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: automated-trading

#1 Repository of the month

1
TINIX TRENDING·Topic: mt4

#1 Repository of the month

1
TINIX TRENDING·Topic: mql5

#1 Repository of the month

preview

Strategy Orchestrator — Modular Algorithmic Trading Framework

An event-driven, multi-asset trading automation engine designed for retail traders who demand institutional-grade order management without the broker lock-in.


Strategy Orchestrator is a comprehensive trading infrastructure that decouples signal generation from execution. While many platforms force you into a single ecosystem—MetaTrader, TradingView, or proprietary APIs—this framework provides a middleware layer that normalizes signals from any source (Telegram, Discord, webhooks, CSV files, or custom Python scripts) and routes them to any broker connector (MT4, MT5, cTrader, or REST APIs). It handles the heavy lifting of risk validation, position sizing across multiple accounts, and trade journaling, so you can focus on strategy development.

The project grew from the observation that signal providers often work in one environment (e.g., Telegram channels with regex-formatted messages) while execution must happen in another. Instead of rewriting parsers for every combination, Strategy Orchestrator provides a single configuration-driven pipeline: parse → validate → size → execute → log.


🧩 Core Philosophy: Abstracted Execution

LayerResponsibility
Input AdaptersParse signals from Telegram, Discord, webhook JSON, or flat files
Validation EngineChecks risk parameters, margin availability, and regulatory filters
Position SizingFixed lot, risk-per-trade %, martingale, or Kelly Criterion
Execution LayerConnects to MT5 terminal via OpenAPI, cTrader REST, or simulated
JournalingWrites every trade to a local SQLite database with reasoning tags

📥 First Download Point — Core Library

Download

The base package includes all input adapters, validation logic, and the execution abstraction. You run it as a background service (Windows service or Linux daemon) that consumes from a Redis queue.


📡 Signal Source Configuration

Telegram Bot Adapter

  • Parses messages using regex templates for BUY, SELL, LONG, SHORT, entry price, stop-loss, and take-profit levels.
  • Supports multi-line signal formats (e.g., 📉 SHORT EURUSD 1.1050 SL 1.1080 TP 1.0950)
  • Filters by channel ID, user ID, and keyword blacklist

Discord Bot Adapter

  • Listens on specific channels using bot tokens
  • Supports embedded messages and plain text signals
  • Rate-limiting and deduplication built-in

Webhook Endpoint

  • Accepts JSON payloads with schema validation
  • Ideal for custom signal generators or TradingView alerts via webhook
  • Supports HMAC verification for authenticity

⚙️ Risk & Position Sizing Module

“Most traders lose because they size incorrectly long before they pick the wrong direction.”

The Position Sizing Engine implements three modes:

ModeFormulaUse Case
Fixed Fractionallot = account_balance × risk_percent / (stop_loss_distance × pip_value)Standard risk management
Kelly Optimalf* = (bp - q) / b where b = net odds, p = win probability, q = loss probabilityPortfolio optimization
Martingale StepDoubles lot after loss, capped at configurable maxHigh-reward edge strategies

All modes respect maximum leverage limits per account and broker, and halt trading if daily drawdown exceeds a configurable threshold.


🔐 Security & Deployment

  • No hardcoded credentials: All API keys and broker credentials are loaded from environment variables or encrypted Vault.
  • Local execution only: The framework runs on your own infrastructure (VPS, home server, or dedicated machine). No third-party cloud risk.
  • Trade journal encryption: All logs are stored with AES-256-GCM before being written to disk.
  • Process isolation: Each account runs in a separate Python subprocess; failure in one account does not cascade.

🌐 Multilingual Signal Support

The parser is locale-aware. It can recognize signal keywords in:

🇬🇧 BUY / SELL / LONG / SHORT
🇪🇸 COMPRA / VENTA / LARGO / CORTO
🇫🇷 ACHAT / VENTE / LONG / COURT
🇩🇪 KAUFEN / VERKAUFEN / LANG / KURZ
🇧🇷 COMPRA / VENDA / LONGO / CURTO

Templates are defined in YAML configuration files, making it trivial to add new languages or custom jargon.


📊 Trade Journal & Analytics

Every execution event is archived in a searchable SQLite database, containing:

  • Raw signal text (anonymized if configured)
  • Parsed parameters (entry, SL, TP)
  • Execution timestamps (signal received → sent to broker → confirmation)
  • P&L after closure
  • Reasoning tags (e.g., majors, news_avoidance, hedge)

A built-in viewer (Flask web app) allows you to query by date range, instrument, or strategy tag, and exports to CSV.


🛠️ Tech Stack & Dependencies

ComponentTechnology
LanguagePython 3.11+
Broker APIOpenAPI (MT5), REST (cTrader)
Message QueueRedis (optional, for multi-instance)
DatabaseSQLite (built-in) / PostgreSQL (optional)
Web InterfaceFlask + Chart.js
ParsingRegular expressions or PEG parsers
AutomationWindows Task Scheduler / systemd

⚖️ 2026 License — MIT

This software is released under the MIT License. You are free to use, modify, and distribute it, subject to the inclusion of the original copyright notice. See the LICENSE file for full terms.


📜 Disclaimer

Trading financial markets involves substantial risk of loss. The Strategy Orchestrator is a software tool that automates trading operations. It does not provide financial advice, guarantee profits, or manage your risk tolerance. Past performance of signals or strategies is not indicative of future results. You are solely responsible for all trades executed using this framework. Always test in a demo environment before deploying with real capital. The developers assume no liability for any financial losses incurred.


❓ Frequently Asked Questions (Concise)

Q: Does this work with brokers other than MetaTrader?
A: Yes. We provide connectors for cTrader and generic REST APIs. Contributions for IBKR, OANDA, and Tradovate are welcome.

Q: Can I run this on a Raspberry Pi?
A: Absolutely. The core process uses less than 200 MB RAM. MT5 terminal must run on a separate Windows machine or VM.

Q: Do I need to know Python?
A: For basic use, no—most configuration is YAML-based. For custom adapters or risk models, some Python familiarity helps.


🚀 Getting Support & Contributing

  • Documentation: docs/ folder contains step-by-step configuration guides.
  • Community: Open a GitHub Discussion for questions or ideas.
  • Bug Reports: Use the issue tracker with logs and configuration redacted.
  • Pull Requests: Follow the style guide in CONTRIBUTING.md. All new code must include unit tests.

📥 Second Download Point — Complete Release

Download

Strategy Orchestrator v2026.1.0 — Production-ready. No cloud dependency. Your logic, your execution, your data.

Similar Projects

Discover other similar projects and AI models.

RepositoryHTML
bipbopcompany-droid/Risk-Nexus-Command

Prop Matrix Engine 2026: Multi-Account MT5 Risk Control with Global Drawdown Guard & Kill-Switch

117
Nov 22, 2026
RepositoryHTML
AbdulWasay13/TradingView-Pipe-Executor

Automated MT5 Trading Bot with AI Alerts & Webhook Bridge 2026

132
Nov 14, 2026
RepositoryHTML
peridotfoundation/MT5-Directional-Flow-Dashboard

MT5 Live Trend Direction Signal Hub 2026 – Real-Time Forex & CFD Alerts

120
Nov 28, 2026
RepositoryC#
vdemydiuk/mtapi

MetaTrader API (terminal bridge)

711
Nov 24, 2026
RepositoryMQL5
EarnForex/Account-Protector

Automate emergency position closing and autotrading termination using a multi-setting expert advisor.

126
Feb 19, 2026
RepositoryMQL4
EarnForex/Trailing-Stop-on-Profit

Trailing Stop on Profit is a classic trailing stop EA for MetaTrader and cTrader, which activates only once a given profit value is reached.

70
May 27, 2026
RepositoryMQL5
EarnForex/AutoTrading-Scheduler

Create simple weekly schedule for your autotrading needs in MT4 and MT5.

57
Mar 2, 2026
RepositoryHTML
matthewkastor/Metatrader

Expert advisors, scripts, indicators and code libraries for Metatrader.

165
Mar 2, 2023
RepositoryHTML
youcefbibo53/PropGuard-Trailing-Equity-Armor

Top Prop Firm Drawdown Protector EA 2026: FTMO & MyForexFunds Risk Manager

123
Nov 27, 2026