trend catcher
Info
The trend catcher is a Expert Advisor for MetaTrader 4 that the ea looks for trend using three mas (period 200, 50, 25 or other) and opens orders using the parabolic sar indicator. there is martingale in an expert advisor, the lot is calculated in percents from a deposit depending on stop loss.
Usage
This tool is typically used for trend following strategies across multiple currency pairs.
Platform
This Expert Advisor works exclusively on MetaTrader 4 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL4/Experts folder via File ? Open Data Folder in MetaTrader 4.
How to Install and Use trend catcher
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
the ea looks for trend using three mas (period 200, 50, 25 or other) and opens orders using the parabolic sar indicator.
Typical Use Case
This Expert Advisor excels in trend following on MetaTrader 4.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 4. Place the file in the MQL4/Experts folder and restart the terminal.
Description & Settings
Related: lx eurjpy: an adaptive trend-following expert advisor - another powerful expert for MetaTrader 4 traders.
the ea looks for trend using three mas (period 200, 50, 25 or other) and opens orders using the parabolic sar indicator. there is martingale in an expert advisor, the lot is calculated in percents from a deposit depending on stop loss.
Also recommended: forces momentum: trend determination tool - similar expert with strong performance on MetaTrader 4.
entering the marketbuy: if current price is higher than point of parabolic sar indicator on a current candle, close price of the previous candle is lower than the previous point of parabolic sar indicator, МА is higher than the first slow МА, current price is higher than the second МА with other period.
sell: if current price is below than point of parabolic sar indicator on a current candle, close price of the previous candle is higher than the previous point of parabolic sar indicator, МА is lower than the first slow МА, current price is lower than the second МА with other period.
the expert advisor closes the order at the opposite signal.
stop loss and take profit
if auto_sl = true, then the stop loss is calculated automatically and is set on the point of parabolic sar indicator. you can apply the sl_koef coefficient which is multiplied by the distance in points between the level of opening the order and the point of the parabolic sar indicator. example: if the distance from the order price to the point of parabolic sar indicator is 20 points and sl_koef = 2, then an order will be opened with a stop loss of 40 points, if sl_koef = 0.5, the order will be placed with a stop loss of 10 points.
if auto_sl = false, stop loss will be fixed at the parameter sl in points.
if auto_tp = true, take profit is calculated automatically by the stop loss and multiplied by tp_koef. example: if tp_koef = 2, it means that the take profit will be twice of stop loss.
if auto_tp = false, the take profit is fixed at tp in points.
lot and martingale settings
order lot size is calculated by the percentage of the deposit, based on the risk setting and stop loss. example: the account balance is $1,000, stop loss is 100 points at risk = 1 (1 percent of the deposit) we can lose 10 currency units, the lot will be 0.01, at risk = 10 the lot will be 0.1.
if martin = true and the latest order is closed with a loss, the risk of the next trade will be increased by koef times.
if martin = false, then the ea will calculate the lot at the percentage of the current account balance.
breakeven and trailing stop
if the position profit reaches profit_level pips, then sl_plus pips of the profit will be put a stop loss.
if the position profit reaches profit_level2 pips, at trailingstop2 distance stop loss will be dragged by the price.
You may also like: starter trend-following expert advisor - excellent alternative for expert users on MetaTrader 4.
Source Code
#property copyright "robotfx"
#property link "https://robotfx.org"
#property version "1.01"
#property strict
input enum_timeframes candle_tf=period_current;
extern bool close_opposite_signal=true;
extern string a1="trade day of week settings";
extern bool monday=true;
extern bool tuesday=true;
extern bool wednesday=true;
.......
⚠ 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.