Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

ExMachina TradePilot - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 5 reads | 0 comments |

ExMachina TradePilot - expert for MetaTrader 5

ExMachina TradePilot - expert for MetaTrader 5

ExMachina TradePilot - expert for MetaTrader 5

ExMachina TradePilot - expert for MetaTrader 5

ExMachina TradePilot - expert for MetaTrader 5

ExMachina Trade Pilot v1.10

ExMachina Trade Pilot is a professional order management panel for MetaTrader 5. It combines one-click trading with automatic lot calculation, multi-TP partial closing system, four intelligent trailing stop modes, automatic break-even management and real-time dashboard - all controlled from a single chart panel. Version 1.10 includes seven edge case fixes and two critical bug fixes reported by users.

MetaTrader's built-in order management lacks partial take-profit, automatic breakeven, and adaptive tracking. Every time you want to close a position, you need to manually split the lot size and calculate the risk. Trade Pilot automates the entire workflow: at the click of a button, the EA handles lot sizing, stop loss setting, multi-level partial closing, tracking and breakeven – from entry to final exit.

This update resolves all issues reported since the initial release. Verification that Algo trading is enabled at the terminal and EA level is now possible with the click of a button, and clear error messages are displayed in the Expert tab when permissions are missing. All stop loss, take profit and pending order prices are verified against SYMBOL_TRADE_STOPS_LEVEL and SYMBOL_TRADE_FREEZE_LEVEL before being sent, eliminating the "invalid stop" error 4756 reported by PepperStone and other brokers with strict stop loss level requirements.

Multi-TP systems now retain their state after EA restart. The TP hit flag is encoded into the position comment (eg "EXTP_BUY|TP110" means that TP1 and TP2 were hit). When the EA is reloaded after a timeframe change, terminal crash or recompilation, it restores the TP state and recalculates the original volume based on the remaining position size. Positions opened using v1.00 will be re-tracked as current.

Other fixes include: delayed TP registration replacing blocked Sleep(100) calls, correct SELL tracking reference price based on ask price, negative distance protection for candle tracking in gap situations, SELL_STOP price validation against negative values, correct pending order OrderOpen limit_price parameter, and smoother panel loading without initial background flickering.

This is the core functionality. You can define up to three take-profit levels, each with its own closing percentage. When the price reaches TP1, Trade Pilot automatically closes 40% of the original trading volume. At TP2, it closed another 30%. In TP3, it closes the remainder. Each partial closing of a position is recorded in the Experts tab and the TP status is saved in the position comment so that it persists after the EA is restarted. The dashboard shows the number of positions being tracked and the take profit level that has been reached.

Default configuration: TP1 is 150 points (closing 40%), TP2 is 300 points (closing 30%), TP3 is 500 points (closing 100% remainder). All distances and percentages are fully configurable in the input.

Trade Pilot offers four tracking modes to match any trading strategy. Fixed point mode tracks at a constant distance. ATR-based models use ATR(14) multiplied by 1.5 to dynamically adapt to market fluctuations - narrow tracks in quiet markets and wide tracks in volatile periods. The previous candle pattern tracks to the previous candle's low (buy) or high (sell), providing natural support and resistance tracking. All modes include a minimum step parameter to prevent excessive SL modifications, and v1.10 validates each SL change against the broker's stop level before sending a modification request.

When a position reaches the configured profit threshold (default 100 pips), Trade Pilot automatically moves the stop loss to the breakeven point plus a small offset. This happens every time a tick appears without any manual intervention. The "Set B/E" panel button also allows you to manually force all current profitable positions to break even with just one click, regardless of whether they have reached the automatic trigger threshold.

Place any pending order type with just one click: Buy Limit, Sell Limit, Buy Stop or Sell Stop. Each order uses the configured current price offset and automatic stop loss and take profit calculations. Version 1.10 validates all pending order prices against the broker's lowest price — SELL_STOP orders no longer generate negative or invalid prices on any instrument. The management section provides one-click buttons such as "Close All Positions", "Close Buy", "Close Sell", "Delete Pending" and "Set Breakeven".

ExMachina TradePilot - expert for MetaTrader 5

The bottom part of the panel shows real-time trading information: calculated lot size with risk mode and dollar amount, current spread with color coding (green below 20 pips, yellow below 40 pips, red above), open position count broken down by direction, total lot size, floating profit and loss, long take profit tracker status showing monitored positions and target price reached, current tracking mode with real-time ATR value, and breakeven configuration status.

If there is no response when you click the button, check two things: the Algo trading button in the MT5 toolbar must be green, and "Algo trading" must be checked in the EA's Home tab. Version 1.10 logs the exact cause of any failure in the Expert tab - use Ctrl+E to open it and look for the message after clicking the button.

If you see an "Invalid Stop" error, your broker may require a wider stop distance on certain instruments. Increase the default SL and pending SL values ​​in the input. Version 1.10 will automatically adjust stops to comply with the broker's minimum levels, but very strict settings may still be rejected.

v1.10 — Check the fix button click reliability via Algo Trading permissions. Fixed bug 4756 invalid stop loss on strict broker. Fixed SELL_STOP negative prices. Fixed OrderOpen limit_price parameter. Added multi-TP state persistence in location annotations. Replace Sleep(100) with delay-based tick registration. Fixed selling tracking reference price using ask price. Fixed issue with candles trailing negative distance at gaps. Added SYMBOL_TRADE_STOPS_LEVEL validation for all order types. Added detailed error logging.

v1.00 — first release.

ExMachina Trading System – Precision over Profit.


Attachment download

📎 ExMachina_TradePilot_Screenshot.png (54.53 KB)

📎 TradePilot_HowItWorks.png (347.55 KB)

📎 ExMachina_TradePilot.mq5 (51.23 KB)

Source: MQL5 #70266

Verification code Refresh