Sclab MQL5 Collection features a trading robot that uses a moving average to identify entries, supported by risk management tools including hard stop losses and take profits. The system includes logic for break-even triggers, trailing stops, and precise time-of-day filters for opening and closing positions. Developed as a series of educational studies, the repository includes separate modules for handling market ticks, rates, and order validation.
Read from Sclab-FechaPosicao.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
ma_periodo
int
20
Período da Média
ma_desloc
int
0
Deslocamento da Média
ma_metodo
ENUM_MA_METHOD
MODE_SMA
Método Média Móvel
ma_preco
ENUM_APPLIED_PRICE
PRICE_CLOSE
Preço para Média
magicNum
ulong
123456
Magic Number
desvPts
ulong
50
Desvio em Pontos
preenchimento
ENUM_ORDER_TYPE_FILLING
ORDER_FILLING_RETURN
Preenchimento da Ordem
lote
double
5.0
Volume
stopLoss
double
5
Stop Loss
takeProfit
double
20
Take Profit
gatilhoBE
double
2
Gatilho BreakEven
gatilhoTS
double
6
Gatilho TrailingStop
Show all 19 inputs
Name
Type
Default
Description
stepTS
double
2
Step TrailingStop
horaInicioAbertura
int
10
Hora de Inicio de Abertura de Posições
minutoInicioAbertura
int
30
Minuto de Inicio de Abertura de Pisoções
horaFimAbertura
int
16
Hora de Encerramento de Abertura de Posições
minutoFimAbertura
int
45
Minuto de Encerramento de Abertura de Posições
horaInicioFechamento
int
17
Hora de Inicio de Fechamento de Posições
minutoInicioFechamento
int
20
Minuto de Inicio de Fechamento de Posições
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone guilhermetabordaribas/MQL5 from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .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.
This repository provides a collection of Expert Advisors for MetaTrader 5 and Python trading scripts developed for an educational YouTube series. It features various technical indicator-based strategies, including MACD, Relative Strength Index, Stochastic, and Bollinger Bands. The included MQL5 files implement multi-ti
MT5CollectionIndicator crossoverMean reversionTrend following
This repository features a diverse collection of expert advisors and trading utilities for MetaTrader 4 and MetaTrader 5. It includes automated robots based on trendline analysis, session breakouts, and technical indicator crossovers using MACD, RSI, and Williams Percent Range. The library provides various tools for ri
This collection for MetaTrader 5 provides a library and several expert advisors optimized for Renko chart trading. It includes a primary automated robot that executes trades based on Renko bar signals, as well as specific examples for moving average and price crossovers. The included tools offer robust trade management
This collection of MetaTrader 5 expert advisors provides a series of educational templates and multi-symbol trading robots. Developed as a companion to coding tutorials, the repository includes frameworks for building strategies using entry triggers and multiple filters. The included programs feature automated risk man
This repository contains a large collection of over 100 expert advisors for the MetaTrader 5 platform, many of which appear to be generated using the Mission Automate tool. The library covers a wide variety of trading methodologies including range breakouts, Ichimoku cloud strategies, Heiken Ashi engulfing patterns, an
This collection features several expert advisors for the MetaTrader 5 platform, each built around a different technical indicator such as MACD, RSI, Parabolic SAR, and Ichimoku Kinko Hyo. The robots execute trades based on classic signal logic, including zero-line crossings and signal line crossovers. Users can configu