Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

ExMachina TradePilot - expert for MetaTrader 5

Emmanuel Nana Nana
Published by:
William Jefferson Mukam Tatsinke
Views:
63
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Trade Pilot Screenshot


ExMachina Trade Pilot — Complete Order Management in One Panel

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 risk
2. Place the order with correct SL
3. Watch for TP1 and manually close a partial
4. Move SL to breakeven
5. Watch for TP2, close another partial
6. 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

Group Parameter Default
Lot Sizing Mode Risk % of balance
Risk Percent 1.0%
Default SL 200 points
Take Profits TP1 Distance 150 points
TP1 Close % 40%
TP2 Distance 300 points
TP2 Close % 30%
TP3 Distance 500 points
TP3 Close % 100% (remainder)
Trailing Mode ATR-based
ATR Period 14
ATR Multiplier 1.5x
Trail Step 10 points min
Breakeven Enabled Yes
Trigger 100 points profit
Offset 5 points above entry
Pending Offset 100 points from price
SL / TP 200 / 400 points

Installation

  1. Download the .mq5 file
  2. Place in MQL5/Experts/ folder
  3. Compile in MetaEditor
  4. Attach to any chart with AutoTrading enabled
  5. 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.

Last Structure Indicator :  LSB Explorer Last Structure Indicator : LSB Explorer

This is an experimental Last Structure Break (LSB) price action indicator that uncovers meaningful market structures and potential trading edges through intelligent support and resistance analysis.

ExMachina SafeScalping ExMachina SafeScalping

ExMachina Safe Scalping is a professional-grade Expert Advisor built for conservative breakout scalping on Gold (XAUUSD), Silver (XAGUSD), and Forex majors.

ExMachina Prop Dashboard ExMachina Prop Dashboard

Real-time prop firm rule tracker: daily drawdown, max drawdown, profit target progress, trading days count, and challenge status with visual progress bars. Presets for FTMO, MyFundedFX, E8, TFT, and Bulenox. Pure indicator — no trade interference.

MACD Signals MACD Signals

Indicator edition for new platform.