The primary component is a moving average crossover robot that opens positions based on trend direction. It features risk management tools including percentage-based stop losses, take profits, and trailing stops, as well as an equity protection mechanism. The repository also includes a martingale-based EA, a multi-pair position closer, and a trading trainer. Advanced options allow for position averaging and trade scheduling to filter sessions.
Moving average crossover strategy with trend bias
Percentage-based risk management and equity protection
Averaging and position scaling with step multipliers
Integrated trade scheduling for specific days and hours
Includes martingale and multi-pair management utilities
Read from MA Crossover.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
Allowed_Trade_Direction
ENUM_ALLOWED_TRADE_DIRECTION
2
HedgingAllowed
bool
false
Hidden_Tp_Sl
bool
false
Leverage_Per_Position
double
10
StopLoss_Percent
double
0
Trailing_StopLoss_Percent
double
0
TakeProfit_Percent
double
0
Slippage
int
10
Minimum_Free_Equity_Percent
int
50
Close_All_At_Minimum_Free_Equity_Reached
bool
true
Average_Up
bool
false
Average_Down
bool
false
Show all 27 inputs
Name
Type
Default
Description
Averaging_Step_Size_Percent
double
0
Averaging_Down_Step_Multiplier
double
1
Close_All_At_MA_Crossover
bool
true
MA_Timeframe_Previous
ENUM_TIMEFRAMES
1440
MA_Timeframe_Current
ENUM_TIMEFRAMES
1440
MA_Period_Previous_Add
int
10
MA_Period_Current
int
42
MA_Shift_Previous
int
2
MA_Shift_Current
int
0
MA_Method
ENUM_MA_METHOD
0
MA_Applied_Price
ENUM_APPLIED_PRICE
1
Start_Day
ENUM_DAY_OF_WEEK
1
Start Day
End_Day
ENUM_DAY_OF_WEEK
5
End Day
Start_Time
string
00:00
Start Time
End_Time
string
24:00
End Time
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone matthewkastor/Metatrader 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, and any .mqh files into the Include folder the code expects.
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 repository provides a diverse library of expert advisors and technical indicators for MetaTrader 4. The collection includes robots utilizing moving average crossovers, MACD trend-following signals, and mean-reversion strategies based on Bollinger Bands. A notable inclusion is a Martingale robot that scales lot siz
This repository provides a collection of MetaTrader 4 expert advisors and utility tools. It includes diverse trading strategies ranging from M1 scalping and Heiken Ashi trend following to swing-based approaches. The codebase features a robust trade management framework with classes for order execution, error handling,
This MetaTrader 4 collection contains various expert advisors, including a primary strategy based on EMA 50/200 crossovers and RSI filtering. The main EA manages entries through trend confirmation and provides risk controls such as stop loss, take profit, and trailing stops. It includes features for breakeven activatio
This repository functions as a large collection of over 170 MetaTrader 4 expert advisors provided in source code format for further development. The library includes various automated trading robots based on popular technical indicators such as Heiken Ashi, RSI, Stochastic, and MACD crossovers. The included files utili
This repository provides a collection of MetaTrader 4 expert advisors, with a primary focus on the Dreamguy MaCrossMarti system. The EA initiates trades based on fast and slow moving average crossovers, utilizing a long-period moving average for trend filtering. It manages positions through a grid-based approach and ma
Proper Bot is a MetaTrader 4 expert advisor that utilizes a triple moving average crossover for trend detection combined with a manual grid management system. It filters entries based on volume and specific price levels. When a trade moves against the initial position, the EA opens additional orders at predefined point