MA Crossover EA MT4 identifies entry points when price or technical indicators intersect and can exit positions when an opposite signal occurs. The EA provides trade management features, including traditional and virtual stop loss and take profit settings, trailing stops, and break-even functionality. Risk control is handled via multiple money management methods, such as fixed lots or percentage-based scaling. It also supports time-restricted trading and limits the maximum number of open trades.
Read from macross_ea.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
symbol
string
NULL
timeframe
int
0
lotsize
double
0.1
stoploss
int
0
takeprofit
int
0
virtual_sl
int
0
virtual_tp
int
0
max_slippage
int
50
order_comment
string
order_magic
int
12345
order_expire
int
0
market_exec
bool
false
Show all 40 inputs
Name
Type
Default
Description
money_management
MM
MM_FIXED_LOT
mm1_risk
double
0.05
mm2_lots
double
0.1
mm2_per
double
1000
mm3_risk
double
50
mm4_risk
double
50
breakeven_threshold
int
500
breakeven_plus
int
0
trail_value
int
20
trail_threshold
int
500
trail_step
int
20
exit_opposite_signal
bool
true
maxtrades
int
1
entry_new_bar
bool
true
wait_next_bar_on_load
bool
true
arrow_color_long
color
clrGreen
arrow_color_short
color
clrRed
long_allowed
bool
true
short_allowed
bool
true
start_time_hour
int
22
start_time_minute
int
0
end_time_hour
int
22
end_time_minute
int
0
gmt
int
0
ma1_period
int
14
ma1_shift
int
0
ma1_method
ENUM_MA_METHOD
MODE_SMA
ma1_price
ENUM_APPLIED_PRICE
PRICE_CLOSE
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone immy2good/ma-crossover-ea-MT4 from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
3Copy the filesCopy the .mq4 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
This MetaTrader 4 expert advisor functions as an automated trading robot using the Average Directional Index (ADX) to identify trend strength and direction. It executes trades based on ADX crossovers and specific level thresholds. The EA provides essential risk management tools, including stop loss, take profit, and a
SuperMao is an automated trading robot for MetaTrader 4 that executes trades based on technical indicator configurations. The repository includes variations of the strategy, specifically utilizing Ichimoku Kinko Hyo for trend identification and a combination of Bollinger Bands with MACD crossovers for momentum-based en
Adeline is a MetaTrader 4 expert advisor that executes trades based on a dual moving average crossover strategy. It monitors the 10-period and 40-period Simple Moving Averages, entering long or short positions when the fast line crosses the slow line. The robot manages exits using opposite signal crossovers, a fixed st
This MetaTrader 4 expert advisor is an automated trading system designed for technical analysis using trend and momentum indicators. It incorporates multiple exponential and simple moving averages, RSI with integrated smoothing periods, and MACD. The EA manages risk through dynamic lot sizing based on account percentag
MT4Trading robotIndicator crossoverTrend following
This expert advisor for MetaTrader 4 automates trading using five Exponential Moving Average periods to determine market direction. The developer notes an integration between C# and MQL4 for its operation. It manages trades with fixed stop loss and take profit parameters, ensuring each position has defined risk boundar
MT4Trading robotIndicator crossoverTrend following
This MetaTrader 4 expert advisor executes automated trades on the forex market by combining signals from various technical indicators. The logic incorporates Average Directional Index analysis across multiple timeframes, alongside Ichimoku and Stochastic oscillators. Users can configure lot sizing, take profit, and sto