The primary EA, Optimal Close, integrates Bollinger Bands and Stochastic oscillators to analyze market conditions across multiple timeframes. It features a built-in trailing stop mechanism for exit management. Other utilities in the repository include scripts for tracking stop losses via moving averages and logging indicator values. The repository serves as a testing environment, and the documentation is minimal.
Read from optimal_close.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
TRAIL_STOP
double
100
BASE_INTERVAL
INTERVAL_INDEX
M15
BB_PERIOD
int
20
BB_DEVIATION
int
2
BB_SHIFT
int
0
BB_APPLIED_PRICE
ENUM_APPLIED_PRICE
PRICE_CLOSE
ST_K
int
5
ST_D
int
3
ST_S
int
3
ST_UP
int
80
ST_DOWN
int
20
ST_METHOD
ENUM_MA_METHOD
MODE_SMA
Show all 14 inputs
Name
Type
Default
Description
ST_APPLIED_PRICE
int
1
MA_METHOD
ENUM_MA_METHOD
MODE_LWMA
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone n3rd-bugs/mql4 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 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 collection for MetaTrader 4 contains over eighty expert advisors and scripts primarily focused on Bollinger Band breakout strategies. The repository includes numerous variations for fixed lot sizes and specific money management settings. The included logic covers price action relative to moving averages and volati
This repository contains a collection of MetaTrader 4 expert advisors developed for educational purposes and backtesting practice. It features several distinct trading strategies, including moving average crossovers, stochastic counter-trend setups, and pending order breakouts. The included scripts demonstrate essentia
This MetaTrader 4 collection provides several scripts designed to analyze price action and candlestick patterns. It includes modules for moving average crossovers, Bollinger Bands, and a specialized candlestick analysis tool. The software identifies specific formations such as hammers, dojis, and engulfing candles by c
This repository is a collection of MetaTrader 4 expert advisors and indicators focused on aggressive trading strategies. The primary expert advisor uses a grid-based approach with martingale lot scaling to manage positions. It features multiple entry logics, including Bollinger Bands, Exponential Moving Averages, and m
This repository offers a collection of MetaTrader 4 expert advisors focused on technical indicator triggers and price action. The suite includes tools for trading moving average crossovers, ADX momentum, and Stochastic oscillators. A dedicated EA identifies specific candlestick patterns such as Three White Soldiers and