Collection · MT4

Kastor Metatrader EA Collection

by matthewkastor

This collection for MetaTrader 4 provides a variety of expert advisors and utilities intended for automated trading and educational use.

High risk

GitHub stars161
Forks59
Last update3 years ago2 Mar 2023
LicenceGPL-3.0

Overview

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.

Details

Author

matthewkastor on GitHub

Type

Collection

Platform

MetaTrader 4 (MQL4)

Strategy

Indicator crossover, Martingale, Grid, Trend following

Markets

Forex

Timeframes

Any timeframe

Risk profile

  • Uses martingale lot scaling: losses can grow fast
  • Opens a grid of orders: exposure builds up in a trend

Topics

forexforex-tradingmetatraderexpert-advisorsalgo-tradingeducationexperimentalmt4mql4automated-trading

Input parameters

Read from MA Crossover.mq4. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
Allowed_Trade_DirectionENUM_ALLOWED_TRADE_DIRECTION2
HedgingAllowedboolfalse
Hidden_Tp_Slboolfalse
Leverage_Per_Positiondouble10
StopLoss_Percentdouble0
Trailing_StopLoss_Percentdouble0
TakeProfit_Percentdouble0
Slippageint10
Minimum_Free_Equity_Percentint50
Close_All_At_Minimum_Free_Equity_Reachedbooltrue
Average_Upboolfalse
Average_Downboolfalse
Show all 27 inputs
NameTypeDefaultDescription
Averaging_Step_Size_Percentdouble0
Averaging_Down_Step_Multiplierdouble1
Close_All_At_MA_Crossoverbooltrue
MA_Timeframe_PreviousENUM_TIMEFRAMES1440
MA_Timeframe_CurrentENUM_TIMEFRAMES1440
MA_Period_Previous_Addint10
MA_Period_Currentint42
MA_Shift_Previousint2
MA_Shift_Currentint0
MA_MethodENUM_MA_METHOD0
MA_Applied_PriceENUM_APPLIED_PRICE1
Start_DayENUM_DAY_OF_WEEK1Start Day
End_DayENUM_DAY_OF_WEEK5End Day
Start_Timestring00:00Start Time
End_Timestring24:00End Time

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone matthewkastor/Metatrader from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
  3. 3Copy the filesCopy the .mq4 file into Experts, and any .mqh files into the Include folder the code expects.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 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.

Similar expert advisors

EA MQL4 Collection

by Yumerain
151 stars

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

MT4 Collection Indicator crossoverTrend followingMartingale High risk
Updated 6 years ago None stated GitHub repository of EA MQL4 Collection

MQ4 Master Collection

by hairibaba
3 stars

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,

MT4 Collection Trend followingScalpingIndicator crossover High risk Archived
Updated 7 years ago None stated GitHub repository of MQ4 Master Collection
3 stars

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

MT4 Collection Indicator crossoverTrend followingGrid High risk
Updated 10 months ago Custom licence GitHub repository of Simple Forex Tools Collection
2 stars

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

MT4 Collection Indicator crossoverTrend followingMean reversion High risk

Oldea EA Collection

by sljxiaoxin
1 stars

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

MT4 Collection Indicator crossoverMartingaleGrid High risk
Updated 9 years ago None stated GitHub repository of Oldea EA Collection

Proper Bot

by kmugglet
1 stars

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

MT4 Collection Indicator crossoverGridMartingale High risk
Updated 7 years ago None stated GitHub repository of Proper Bot

More collections

Need a broker for MT4?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers