AI Algorithmic Trading Solution

FxMath Elite Pro v1.2 Released: Key Trailing Stop Execution Fix

We are pleased to announce the official release of FxMath Elite Pro Version 1.2. This update directly addresses a critical trailing stop execution condition observed in prior versions, improving risk management and profit-locking on live accounts.

For those new to the technology, FxMath Elite Pro is a fully self-contained Expert Advisor (EA) designed for both MetaTrader 4 and MetaTrader 5. It trains four independent Random Forest machine learning models directly on your charts using 120 technical and price-action features—requiring zero external DLLs, Python setups, or third-party dependencies.


Changelog v1.2 — What’s New

Release Date: June 22, 2026
Files Updated: FxMath_Elite_Pro.mq4, FxMath_Elite_Pro.mq5
Version: 1.10 → 1.20

1. Trailing Stop Fix — Resolved Race Condition

Root Cause: In previous versions, the trailing stop activation threshold used the variable InpTakeProfit (= 20 points by default) as its activation point. Because this value was identical to the target Take Profit (TP) distance, the broker would often close the position at TP on the very same tick that the trailing function triggered. This resulted in a race condition where the Trailing() logic never had a chance to execute in the terminal.

What Changed:

  • .mq5 line 1665: bid - oP >= InpTakeProfit → updated to bid - oP >= InpTrailing
  • .mq5 line 1674: oP - ask >= InpTakeProfit → updated to oP - ask >= InpTrailing
  • Equivalent code paths in the .mq4 file have been updated identically.

How It Behaves Now (Example: TP = 20, Trail = 15)

By default, the trailing stop is now set to trigger before the target TP is hit, locking in profits and eliminating risk earlier in the trade cycle.

Price Action System Action
Price reaches +15 points Stop Loss (SL) immediately moves to breakeven, locking in a risk-free position.
Price reaches +20 points Take Profit (TP) hits and the position closes successfully with full target profit.
Price reverses from +15 points The position is stopped out at breakeven, resulting in a safe $0 loss.

Automate Your Trading Hands-Free

If you want to execute these trades 100% automated and hands-free, purchase a license for FxMath Gold AI Elite. You can run it on up to 3 MT5 accounts simultaneously and switch accounts anytime you choose.

🎉 50% DISCOUNT – Limited Time Offer! 🎉

Select a license plan to complete your checkout:

* Payments are safely and privately processed using major cryptocurrencies. Following confirmation, the compiled .ex5 and .ex4 files are made available for immediate download.


Risk Warning: Financial trading carries substantial risk of capital loss. Expert Advisors operate based on historical modeling and algorithmic parameters; past performance does not guarantee future live trading outcomes. Please practice appropriate risk management and do not trade with funds you cannot afford to lose.


Discover more from FxMath Financial Solution

Subscribe to get the latest posts sent to your email.

Follow me on Twitter

About FxMath

FxMath Financial Solution is a financial software team developing end-to-end algo trading systems for quantitative hedge funds and institutional trading groups. Our system based on profitable mathematical models with highest possible profit and lowest drawn down.

Subscription

Subscribe to Trade Signals via Email

Enter your email address to subscribe to our free trading signals by email

Discover more from FxMath Financial Solution

Subscribe now to keep reading and get access to the full archive.

Continue reading