Skip to content

ava420/MT5-One-Click-Order-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 

Repository files navigation

πŸš€ TradeForge – Multi-Broker Order Execution System

Download

Transform your trading workflow with a single-click order management solution designed for institutional-grade precision across MetaTrader 4 and MetaTrader 5 platforms.


🌟 Overview

TradeForge is not merely a scriptβ€”it is an orchestration engine for your trading operations. Inspired by the need to close orders efficiently, this repository evolves the concept into a cross-platform command center that handles order lifecycle management with surgical accuracy.

Imagine your trading terminal as a bustling airport control tower. Each order is an aircraft requiring clearance for departure, landing, or rerouting. TradeForge becomes your radar systemβ€”visualizing every flight path and enabling immediate, coordinated action.

Why TradeForge?

Challenge Solution
Manual order closures waste seconds (compounded over weeks) One-click bulk operations
Distinguishing profitable vs losing positions requires mental math Automated profit/loss detection
MT4 and MT5 have different scripting paradigms Unified execution layer
Risk management delays during volatile markets Instant position management

πŸ“Š System Architecture

graph TB
    A[User Interface Layer] --> B[Core Engine]
    B --> C[MT4 Connector]
    B --> D[MT5 Connector]
    C --> E[Order Scanner]
    D --> E
    E --> F{Profit/Loss Classifier}
    F -->|Profit > 0| G[Profitable Orders Pool]
    F -->|Profit < 0| H[Losing Orders Pool]
    F -->|Profit = 0| I[Breakeven Orders Pool]
    G --> J[Execution Queue]
    H --> J
    I --> J
    J --> K[Risk Validator]
    K --> L[Batch Closure Engine]
    L --> M[Trade Confirmation Log]
    M --> N[Audit Trail Database]
Loading

✨ Key Features

πŸ”„ Cross-Platform Compatibility

βœ… MetaTrader 4 Build 1400+
βœ… MetaTrader 5 Build 4500+
βœ… FIFO-compliant brokers
βœ… Hedged account support

⚑ Execution Modes

  • Total Sweep – Close all open positions
  • Green Harvest – Close only profitable orders
  • Red Alert – Close only losing orders
  • Custom Filter – Close orders by symbol, magic number, or comment

🧠 Intelligent Classifier

The system uses a dual-layer profit assessment:

  1. Raw P&L – Current floating profit/loss
  2. Weighted P&L – Adjusted for swap fees and commission charges

🌐 Multilingual Interface

Language Support Level
English Full
Spanish Full
French Full
German Full
Mandarin Full
Arabic Interface only
Russian Interface only

πŸ“¦ Installation Guide

Prerequisites

  • MetaTrader 4 or MetaTrader 5 installed
  • Windows 7/10/11, macOS (via Wine), or Linux (via Wine)
  • Administrator privileges for DLL imports

Step-by-Step

  1. Download the latest release
    Download

  2. Extract the archive to your MQL5/Experts/ (MT5) or MQL4/Experts/ (MT4) directory

  3. Configure your settings (see Profile Configuration below)

  4. Compile in MetaEditor (F7)

  5. Attach to a chart – Drag from Navigator or use the Strategy Tester


βš™οΈ Example Profile Configuration

Create a tradeforge_config.ini file in the Files folder:

[General]
mode=sweep_all
slippage=10
magic_number=0
comment_filter=
auto_confirm=true

[Safety]
max_orders_per_second=3
min_profit_threshold=0.50
max_loss_threshold=-100.00
disable_during_news=true

[Logging]
log_level=verbose
save_trades_to_csv=true
audit_file=TradeForge_Audit_2026.log

[Alerts]
send_sound=true
sound_file=alert.wav
popup_notification=true

[BrokerSettings]
fifo_mode=auto_detect
hedge_mode=auto_detect

πŸ’» Example Console Invocation

For advanced users running via Expert Advisor automation:

// Example MQL5 call from within an EA
#include <TradeForge/TradeForge.mqh>

CTradeForge tradeForge;

void OnTick()
{
    if(ShouldCloseOrders())
    {
        tradeForge.SetMode(MODE_CLOSE_LOSING);
        tradeForge.SetMagickNumber(12345);
        tradeForge.Execute();
    }
}

Or via script parameters:

INPUT:
mode = 2        // 0=all, 1=profit, 2=loss
slippage = 5
use_comment_filter = false

πŸ–₯️ OS Compatibility

Operating System Status Notes
πŸͺŸ Windows 7 βœ… Full All features
πŸͺŸ Windows 10 βœ… Full Recommended
πŸͺŸ Windows 11 βœ… Full Optimized
🍏 macOS Ventura ⚠️ Via Wine GUI limited
🍏 macOS Sonoma ⚠️ Via Wine GUI limited
🐧 Ubuntu 22.04 ⚠️ Via Wine CLI mode only
🐧 Debian 12 ⚠️ Via Wine CLI mode only

πŸ›‘οΈ Safety & Disclaimer

⚠️ IMPORTANT LEGAL NOTICE

Trading foreign exchange on margin carries a high level of risk and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange, you should carefully consider your investment objectives, level of experience, and risk appetite.

TradeForge is provided "as is" without warranty of any kind, express or implied. The authors and contributors shall not be held liable for any direct, indirect, incidental, special, exemplary, or consequential damages arising from the use of this software.

Risk Mitigation Features Built-In

  • βœ… Maximum order execution rate limiting
  • βœ… Automatic disable during high-impact news events
  • βœ… Audit trail for every executed order
  • βœ… Slippage control with broker-specific tolerance

πŸ€– AI Integration

TradeForge seamlessly integrates with modern AI assistants for enhanced decision support:

OpenAI API Integration

# Example Python wrapper for AI-assisted order analysis
import openai

def analyze_order_risk(orders_data):
    response = openai.ChatCompletion.create(
        model="gpt-4-turbo",
        messages=[
            {"role": "system", "content": "You are a risk management assistant analyzing trading orders."},
            {"role": "user", "content": f"Analyze these orders and recommend closure strategy: {orders_data}"}
        ]
    )
    return response.choices[0].message.content

Claude API Integration

# Example Claude integration for market context analysis
import anthropic

def get_market_advice(trade_context):
    client = anthropic.Anthropic(api_key="sk-ant-...")
    message = client.messages.create(
        model="claude-3-sonnet-20240229",
        max_tokens=1000,
        messages=[
            {"role": "user", "content": f"Based on current market conditions: {trade_context}, should we close all positions?"}
        ]
    )
    return message.content

🎨 Responsive User Interface

TradeForge features a fully responsive UI that adapts to your screen resolution:

  • Desktop: Full dashboard with real-time P&L monitoring
  • Tablet: Compact mode with essential controls
  • Mobile: Minimal interface for emergency order closure

The interface follows Material Design 3 principles with:

  • Adaptive color schemes for day/night trading
  • Touch-friendly button sizes
  • Collapsible panels for complex settings

πŸ“ž 24/7 Support Infrastructure

While this is an open-source project, we maintain a community-driven support ecosystem:

Channel Response Time Hours
GitHub Issues <24 hours Business days
Community Discord <2 hours 24/7
Documentation Wiki Self-service Always available
Email Priority <4 hours Business hours

πŸ” License

This project is licensed under the MIT License - see the LICENSE file for details.

Copyright (c) 2026 TradeForge Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.


🏷️ SEO Keywords

MetaTrader order management, MT4/MT5 automation, trading bot script, forex position closer, bulk order cancellation, profit-taking automation, stop-loss execution, multi-terminal trade manager, algorithmic trading tools, broker-agnostic execution, MQL5 expert advisor, MQL4 script, financial automation, risk management software, trading terminal enhancer, zero-cost trading utility, open-source trade manager, cross-platform trading tool, institutional trading software, 2026 trading innovations.


πŸš€ Final Download

Download

TradeForge – Because every second counts when markets move. πŸŒπŸ’°


Made with ❀️ for the trading community. Contributions welcome via pull requests.

Releases

No releases published

Packages

 
 
 

Contributors