Adjustable MA enters trades when a fast moving average crosses a slow moving average, requiring a user-defined minimum point difference to confirm the signal. The robot includes risk management features such as stop loss, take profit, and a trailing stop with an optional profit trigger. Users can restrict trading to specific hours and days of the week. It also offers basic money management, allowing for fixed lot sizes or calculation based on account margin. The developer notes this tool is primarily designed for backtesting different MA settings.
Read from Adjustable_MA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
Period_1
int
20
Period_2
int
22
MA_Method_Fast
ENUM_MA_METHOD
MODE_EMA
MA_Method_Slow
ENUM_MA_METHOD
MODE_EMA
MA_Price_Fast
ENUM_APPLIED_PRICE
PRICE_CLOSE
MA_Price_Slow
ENUM_APPLIED_PRICE
PRICE_CLOSE
MinDiff
int
3
MinDiff: Minimum difference in points between MAs
StopLoss
int
0
Stop-loss in points
TakeProfit
int
0
Take-profit in points
TrailingStop
int
0
Trailing stop in points
TrailingStopTriggerProfit
int
0
TrailingStopTriggerProfit: Profit in points to start trailing. 0 = start immediately.
TradeDirection
ENUM_TRADE_DIRECTION
TRADE_DIRECTION_BOTH
Show all 32 inputs
Name
Type
Default
Description
StartHour
int
0
Start hour (Server), inclusive, 0-23
StartMinute
int
0
Start minute, 0-59
EndHour
int
23
End hour (Server), inclusive, 0-23
EndMinute
int
59
End minute, 0-59
TradeOnMonday
bool
true
TradeOnTuesday
bool
true
TradeOnWednesday
bool
true
TradeOnThursday
bool
true
TradeOnFriday
bool
true
TradeOnSaturday
bool
true
TradeOnSunday
bool
true
CloseTradesOutsideTradingTime
bool
true
DoTrailingOutsideTradingTime
bool
true
Lots
double
0.1
UseMM
bool
false
LotsPer10000
double
1
LotsPer10000: Number of lots per every 10,000 of free margin.
Slippage
int
3
OrderCommentary
string
Adjustable MA
DisplayStatusComment
bool
false
Display comment-based status?
Magic
int
19472394
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone EarnForex/Adjustable-MA from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts or MQL5/Experts.
3Copy the filesCopy the .mq4 / .mq5 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.
EA31337 is a comprehensive multi-strategy trading robot and framework for MetaTrader platforms. It features dozens of pre-built strategies utilizing technical indicators like ATR, Moving Averages, and SuperTrend. The system manages entries and exits through a unique filtering system that monitors account metrics, volat
EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario
EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di
Ladino Bot is an open-source expert advisor for MetaTrader 5 that uses HiLo Activator indicators and moving average crossovers to identify trade entries. It features a triple-timeframe architecture, allowing users to align entries with higher-period trends. Risk controls include daily gain and loss caps, brokerage fee
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
Gold Trader EA is a multi-strategy expert advisor designed for trading XAUUSD on the MetaTrader 5 platform. It employs a fusion engine that combines up to 14 different technical analysis methods, including candlestick patterns, chart patterns, price action, and institutional levels. The system requires a user-defined n