Trading robot ยท MT5

Sliding Window MT5

by dhruuvsharma

This MetaTrader 5 expert advisor identifies scalping opportunities by analyzing candle data within a sliding window.

GitHub stars1
Forks0
Last update8 months ago5 Jan 2026
LicenceMIT

Overview

Sliding Window MT5 utilizes dynamic delta thresholds calculated through rolling means and Median Absolute Deviation (MAD) for both tick and volume data. Users can configure specific multipliers and minimum absolute thresholds for signal filtering. The EA includes an extensive time management system allowing for specific daily and hourly trading permissions. As a work in progress, it focuses on entry signal analysis based on volatility and volume fluctuations.

Details

Author

dhruuvsharma on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Scalping

Markets

Any symbol

Timeframes

M1-M5

Risk profile

  • Trades without a fixed stop loss

Input parameters

Read from SlidingWindow.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
WindowSizeint20Number of candles for trading window
TextSizeint8Text size for display
EnableTradingbooltrueEnable automated trading
EnableTickDynamicThresholdsbooltrueEnable dynamic tick thresholds
TickAnalysisWindowSizeint100Sliding window for tick threshold analysis
TickThresholdMultiplierdouble2.5MAD multiplier for tick thresholds
TickMinThresholdMultiplierdouble0.3Minimum tick threshold multiplier
TickMaxThresholdMultiplierdouble3.0Maximum tick threshold multiplier
TickMinAbsoluteThresholddouble100Minimum absolute tick threshold value
EnableVolumeDynamicThresholdsbooltrueEnable dynamic volume thresholds
VolumeAnalysisWindowSizeint100Sliding window for volume threshold analysis
VolumeThresholdMultiplierdouble2.5MAD multiplier for volume thresholds
Show all 40 inputs
NameTypeDefaultDescription
VolumeMinThresholdMultiplierdouble0.3Minimum volume threshold multiplier
VolumeMaxThresholdMultiplierdouble3.0Maximum volume threshold multiplier
VolumeMinAbsoluteThresholddouble80Minimum absolute volume threshold value
ShowThresholdWindowsbooltrueShow tick and volume analysis windows
TickWindowColorcolorclrBlueColor for tick analysis window
VolumeWindowColorcolorclrSkyBlueColor for volume analysis window
ThresholdWindowWidthint1Width of threshold window borders
EnableTimeFilterbooltrueEnable trading time filters
SundayTradingboolfalseAllow trading on Sunday
MondayTradingbooltrueAllow trading on Monday
TuesdayTradingbooltrueAllow trading on Tuesday
WednesdayTradingbooltrueAllow trading on Wednesday
ThursdayTradingbooltrueAllow trading on Thursday
FridayTradingbooltrueAllow trading on Friday
SaturdayTradingboolfalseAllow trading on Saturday
Hour00boolfalse00:00 - 01:00
Hour01boolfalse01:00 - 02:00
Hour02boolfalse02:00 - 03:00
Hour03boolfalse03:00 - 04:00
Hour04boolfalse04:00 - 05:00
Hour05boolfalse05:00 - 06:00
Hour06boolfalse06:00 - 07:00
Hour07booltrue07:00 - 08:00
Hour08booltrue08:00 - 09:00
Hour09booltrue09:00 - 10:00
Hour10booltrue10:00 - 11:00
Hour11booltrue11:00 - 12:00
Hour12booltrue12:00 - 13:00

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone dhruuvsharma/slidingwindow_mt5 from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts.
  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 Scalper XAUUSD

by francomascareloai
237 stars

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

MT5 Trading robot SMC / ICT / price actionIndicator crossoverScalping High risk
Updated 3 months ago Custom licence GitHub repository of EA Scalper XAUUSD

Nyao Scalper

by elrizwiraswara
173 stars

Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT

MT5 Trading robot ScalpingTrend followingMartingale High risk
Updated 3 months ago BSD-3-Clause GitHub repository of Nyao Scalper
42 stars

This Expert Advisor for MetaTrader 5 is specifically designed for XAUUSD trading on the M1 timeframe. It utilizes a hybrid strategy combining classic technical indicators like RSI, Moving Averages, and ATR with an OpenAI API integration for signal validation. The robot features an on-chart dashboard for telemetry and i

MT5 Trading robot ScalpingTrend followingAI / machine learning
Updated 5 months ago None stated GitHub repository of Gold EA MT5 With OpenAI

Bakome Gold Scalper

by BAKOME-Hub
25 stars

Bakome Gold Scalper is an automated trading solution for MetaTrader 5 specifically designed for the gold market. It executes trades based on Inner Circle Trader concepts, incorporating Fair Value Gaps, Order Blocks, Liquidity Sweeps, and Silver Bullet kill zones. The system limits trading to specific sessions, primaril

MT5 Trading robot SMC / ICT / price actionScalping

Scalpflip EA

by anthonycdp
25 stars

Scalpflip EA is an automated scalping robot for MetaTrader 5 that utilizes a multi-layered technical analysis approach. It offers three entry modes: trend-following, mean-reversion, and a smart mode that selects the strategy based on current market conditions. The system filters trades using the Relative Strength Index

MT5 Trading robot ScalpingTrend followingMean reversion
Updated 1 year ago None stated GitHub repository of Scalpflip EA

Trillex 10S EA

by NadirAliOfficial
24 stars

Trillex 10S is a MetaTrader 5 scalping expert advisor optimized for Gold (XAUUSD). It executes trades based on the alignment of a three-period Exponential Moving Average (EMA) stack and Parabolic SAR indicators. The system features a proprietary synthetic bar engine that processes price data into 5-second and 10-second

MT5 Trading robot ScalpingIndicator crossover

More trading robots

Need a broker for MT5?

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

Compare brokers