Ex Machina Trade Pilot
This software component for MetaTrader 5 is built to enhance the capabilities of your trading environment. This Expert Advisor serves as automated trading software. It is utilized to monitor financial markets and execute trades based on predefined algorithmic rules, enabling precise position management without the need for constant manual oversight.
How to Setup and Use Ex Machina Trade Pilot
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
Description & Settings
Precision before profit.
MetaTrader’s built-in order management is stuck in 2005. No partial take-profits. No automatic breakeven. A trailing stop that only works in fixed points. Every time you want to scale out, you’re manually splitting positions and calculating lots.
Trade Pilot replaces all of that with a single panel. The Problem
Professional order management requires 4-5 manual steps per trade:1. Calculate lot size based on risk2. Place the order with correct SL3. Watch for TP1 and manually close a partial4. Move SL to breakeven5. Watch for TP2, close another partial6. Let the runner ride to TP3
Miss any step and you leave money on the table — or worse, give it back.
Trade Pilot automates steps 1 through 6 completely.
Feature 1: One-Click Trading with Auto Lot
Click BUY or SELL. That’s it. Trade Pilot automatically:- Calculates the correct lot size based on your risk settings (% of balance, fixed $, or fixed lot)- Sets the stop loss- Sets the take profit at the furthest TP level- Registers the position for multi-TP tracking
The panel shows the calculated lot and dollar risk in real time, updating on every tick.
Feature 2: Multi-TP Partial Close System
This is the core feature. Define up to 3 take-profit levels with individual close percentages:
TP1
(default 150 pts, close 40%): Lock in early profits
TP2
(default 300 pts, close 30%): Secure more with reduced risk
TP3
(default 500 pts, close 100%): Let the runner reach full target
When price hits TP1, Trade Pilot automatically closes 40% of the position. At TP2, another 30%. At TP3, the remainder. Each partial close is logged.
The dashboard shows live TP tracking: how many positions are being monitored and which TP levels have been hit.
Feature 3: Smart Trailing Stop
Four trailing modes to match any strategy:
Fixed Points
: Classic trailing at a fixed distance
ATR-Based
: Dynamic trailing that adapts to volatility. Uses ATR(14) x 1.5 by default — tight in quiet markets, wide during volatility
Previous Candle
: Trails to the previous candle’s high (for sells) or low (for buys). Natural support/resistance trailing
None
: Disable trailing, manage manually
All trailing modes include a minimum step parameter to prevent excessive SL modifications.
Feature 4: Automatic Breakeven
When a position reaches the configured profit threshold (default 100 points), Trade Pilot automatically moves the SL to breakeven + offset. No more watching charts and waiting.
The “Set B/E” button also lets you manually force breakeven on all profitable positions with one click.
Feature 5: One-Click Pending Orders
Place any pending order type with a single click:- Buy Limit / Sell Limit- Buy Stop / Sell Stop
Each pending order uses the configured offset from current price, with automatic SL and TP calculation.
Feature 6: Position Management Buttons
CLOSE ALL
: Emergency close all positions on the current symbol
Close Buy / Close Sell
: Close positions by direction
Del Pending
: Delete all pending orders
Set B/E
: Force breakeven on all profitable positions Feature 7: Live Dashboard
Real-time information at a glance:- Calculated lot size with risk mode and dollar amount- Current spread (color-coded: green/yellow/red)- Open positions count (Buy/Sell breakdown)- Total lot exposure by direction- Floating P&L- Multi-TP tracker status- Trailing stop mode and current ATR value- Breakeven status
Parameters Installation
Download the .mq5 file
Place in MQL5/Experts/ folder
Compile in MetaEditor
Attach to any chart with AutoTrading enabled
Configure risk parameters and start trading Important Notes
Manages only positions matching the configured Magic Number (default 777777)
Multi-TP partials require sufficient lot size for splitting. On micro accounts, use larger base lots
Test all settings on demo before going live
Combine with ExMachina Risk Guardian for complete account protection Compatibility
MetaTrader 5, all brokers (Hedging accounts recommended)
All instruments: Forex, Gold, Indices, Crypto
All timeframes
ExMachina Trading Systems — Precision before profit.