Trading robot · MT5

Nyao Scalper

by elrizwiraswara

Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities.

High risk

GitHub stars173
Forks74
Last update3 months ago10 Jun 2026
LicenceBSD-3-Clause

Overview

Nyao Scalper 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 ATR-based trailing stops, a spread filter, and a dead-market filter. Notably, it includes an optional hedging chain that employs martingale lot scaling to recover losing positions. It is designed primarily for M1 and M5 timeframes on various forex pairs and CFDs.

Details

Author

elrizwiraswara on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Scalping, Trend following, Martingale, Breakout, Hedging

Markets

Forex

Timeframes

M1-M5, M15-H1

Risk profile

  • Uses martingale lot scaling: losses can grow fast
  • Holds opposite positions at once

Topics

auto-tradingexpert-advisormq5mt5scalping-bottrading-robotmeta-trader-5

Input parameters

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

NameTypeDefaultDescription
DirectionalBodyLookbackint10Lookback for directional body analysis
EMAFastPeriodint5EMA Fast Period
EMASlowPeriodint12EMA Slow Period
SlopeLookbackint3EMA Slope Lookback Bars (noise reduction)
RSIPeriodint8RSI Period
ATRPeriodint8ATR Period
ATRAvgLookbackint10ATR Average Lookback
MinVolRatioToTradedouble0.6Min ATR/AvgATR Ratio to Trade (0 = Disabled, blocks dead market)
ImpulseLookbackint3Impulse Lookback
ImpulseBoostWeightdouble1.0Impulse Boost Weight
SignalSmoothingCandlesint2Closed Candles for Weighted Average (1-10)
CurrentCandleBlenddouble0.40Current Candle Blend Factor (0.0-1.0)
Show all 40 inputs
NameTypeDefaultDescription
VelocityWindowdouble2.0Velocity Window (Score Delta)
RSIOverboughtint80RSI Overbought Level (Max Buy)
RSIOversoldint20RSI Oversold Level (Min Sell)
RSIMomentumBuyint60RSI Momentum Buy Trigger
RSIMomentumSellint40RSI Momentum Sell Trigger
TrendWeightdouble1.5Trend Alignment Initial Weight
SlopeWeightdouble1.5Trend Slope Confirmation Weight
MomentumBaseWeightdouble1.0Momentum Base Weight (RSI Sweet Spot)
MomentumTriggerWeightdouble0.5Momentum Trigger Weight (RSI Breakout)
BodyMomentumWeightdouble1.5Body Momentum Weight
ChopScoreHighdouble2.0Chop Score High (Strong Trend)
ChopScoreMeddouble1.0Chop Score Med (Weak Trend)
ChopScoreLowdouble0.0Chop Score Low (Chop Risk - no free points)
VolatilityScoreHighdouble1.0Volatility Score High
VolatilityScoreLowdouble0.0Volatility Score Low (no free points)
PeakScoreWeightdouble1.0Peak Breakout Score Weight
WickRejectionWeightdouble1.0Wick Rejection Penalty Weight
MinBodyRatiodouble1.5Min Body Ratio for Wick Calculation
EnableBuyOrdersbooltrueEnable Buy Orders
EnableSellOrdersbooltrueEnable Sell Orders
EnableNewBarEntryOnlybooltrueEvaluate/Open Entries Only on New Bar (stable signals)
EnableMaxSpreadFilterbooltrueBlock New Entries When Spread Too Wide
MaxSpreadPointsdouble0Max Spread in Points (0 = Auto: ATR-based)
MaxSpreadATRRatiodouble0.25Auto Spread Cap as Fraction of ATR (when MaxSpreadPoints = 0)
BaseLotSizedouble0.01Base Lot Size
MaxOpenOrdersint8Max Consecutive Open Orders
MaxTradesPerCandleint1Max Trades Per Candle (0 = Unlimited)
ConsecutiveCandleThresholdBoostdouble1.0Signal Threshold Boost Per Consecutive Trading Candle

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone elrizwiraswara/nyao_scalper_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

Prop Firm EA Fleet

by cgemise971
20 stars

Prop Firm EA Fleet is a collection of MetaTrader 5 robots designed for passing prop firm evaluations and managing funded accounts. The suite utilizes various strategies including market structure analysis, session range breakouts for London and New York sessions, and high-frequency scalping. It features strict risk man

MT5 Trading robot SMC / ICT / price actionBreakoutScalping High risk
Updated 9 months ago None stated GitHub repository of Prop Firm EA Fleet

Experienced FX Trader

by simonokwundue-ops
1 stars

This collection of Expert Advisors for MetaTrader 5 provides high-frequency scalping and multi-strategy automated trading across multiple currency pairs. The robots utilize a signal scoring system based on moving average crossovers, RSI momentum, Bollinger Band breakouts, and MACD signals. The suite includes a dedicate

MT5 Trading robot ScalpingBreakoutIndicator crossover
Updated 10 months ago None stated GitHub repository of Experienced FX Trader

Prem Gold Advisor

by Premkumar238
1 stars

Prem Gold Advisor is an automated MetaTrader 5 expert advisor specialized for XAUUSD (Gold) trading on the five-minute timeframe. It initiates trades using breakout levels placed at specific distances from the candle open. The strategy features a progressive scale-in mechanism, adding new orders as the price hits succe

MT5 Trading robot BreakoutTrend followingMartingale High risk
Updated 4 weeks ago None stated GitHub repository of Prem Gold Advisor

UltraHFT Expert Advisor

by NipunDilshanSenevirathne
1 stars

UltraHFT Expert Advisor is a high-frequency scalping robot for MetaTrader 5 that combines five strategy layers including EMA crossovers, RSI mean reversion, and volatility breakouts. It evaluates market conditions on every tick, entering trades when multiple signals align. The system employs strict risk controls with h

MT5 Trading robot ScalpingMean reversionTrend following High risk

Baby MT4 EA

by dolie
2 stars

This MetaTrader 4 expert advisor utilizes the SuperTrend and Bollinger Bands indicators to identify market entries. It monitors for trend changes, breakouts, corrections, and pullbacks. The EA incorporates several risk management tools, including a configurable stop loss, dynamic stop loss logic, and a trailing stop. I

MT4 Trading robot Trend followingBreakoutScalping High risk
Updated 9 years ago None stated GitHub repository of Baby MT4 EA

EA Scalper XAUUSD

by francomascareloai
236 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

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