Expert Advisor: Dual Trend Following System with Dynamic Lot Sizing

Expert Advisor: Dual Trend Following System with Dynamic Lot Sizing
Download ALL MT5 experts (1731)
YouTube Video Thumbnail



Similar MetaTrader Tools

Expert Advisor: Dual Trend Following System with Dynamic Lot Sizing

Info

The Expert Advisor: Dual Trend Following System with Dynamic Lot Sizing is a Expert Advisor for MetaTrader 5 that this expert advisor (ea) integrates two independent trading systems that utilize trend-following indicators. It offers an option to dynamically adjust the size of future trades based on the outcomes of previous trades within the same system.

Usage

This tool is typically used for trend following strategies across multiple currency pairs.

Platform

This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use Expert Advisor: Dual Trend Following System with Dynamic Lot Sizing

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.

What this tool does

This Expert Advisor (EA) integrates two independent trading systems that utilize trend-following indicators.

Typical Use Case

This Expert Advisor excels in trend following on MetaTrader 5.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.

Description & Settings

Related: VPS Toolkit: Secure Order Sending and Restart-Safe State for Expert Advisors - another powerful expert for MetaTrader 5 traders.

This Expert Advisor (EA) integrates two independent trading systems that utilize trend-following indicators. It offers an option to dynamically adjust the size of future trades based on the outcomes of previous trades within the same system.

Also recommended: Automated Live Testing for Expert Advisors on Demo Accounts - similar expert with strong performance on MetaTrader 5.


Trading signals are generated upon the close of a bar, indicating a potential trend change, which is visualized by a color shift in one of the two included indicators.

To manage trade volumes, the EA incorporates specific input blocks. For instance, in the system employing the Braintrend2_v2 indicator, if the two most recent trades in the same direction were profitable, the EA will open the next trade in that direction with a lot size of 0.01. However, if at least one of the last two trades resulted in a loss, the position volume will be set to 0.1.

The input parameters for the trading system using AbsolutelyNoLagLwma are identical.

For the EA to function correctly, the compiled indicator files Braintrend2_v2.ex5 and AbsolutelyNoLagLwma.ex5 must be present in the \mql5\indicators folder within your terminal's data directory.

The EA's default inputs were used for the testing displayed below, including stop-loss orders.

Figure 1. Exemplary Trades on the Chart

Test Results for GBPJPY H6 over the Year 2026:

Figure 2. Testing Results Chart

You may also like: Programmatically Attach Expert Advisors with Custom Inputs to MetaTrader 5 Charts - excellent alternative for expert users on MetaTrader 5.

Source Code

/

.......

Leave your opinion, ask a question, share some knowledge

⚠ Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.