Trading robot · MT4 · MT5

Heiken Ashi Naive

by EarnForex

Heiken Ashi Naive is a trading robot for MetaTrader 4 and 5 that executes trades based on Heiken Ashi candle characteristics, including body length and wick presence.

GitHub stars17
Forks3
Last update1 year ago8 Aug 2025
LicenceApache-2.0
Latest release1.033 years ago

Overview

Heiken Ashi Naive evaluates candle sequences to enter positions and can be configured to either follow the trend or operate in an inverted mode for mean-reversion. Risk is controlled through ATR-based position sizing, although the system lacks hard stop loss and take profit parameters, relying on signal reversals for exits. The repository includes a Z-Score version for filtering trades based on statistical virtualization.

Details

Author

EarnForex on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4) and MetaTrader 5 (MQL5)

Strategy

Trend following, Mean reversion

Markets

Forex

Timeframes

Any timeframe

Risk profile

  • Trades without a fixed stop loss

Topics

backtestchartexpert-advisorforexforex-robotforex-tradingheiken-ashimetatradermetatrader-4metatrader-5

Input parameters

Read from HAN_Z-Score.mq4. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
InvertedbooltrueInversion: If true, sells on Bullish signals, buys on Bearish.
Lotsdouble0.1Lots: Basic lot size
MMboolfalseMM: If true - ATR-based position sizing
ATR_Periodint20
ATR_Multiplierdouble1
Riskdouble2Risk: Risk tolerance in percentage points
FixedBalancedouble0FixedBalance: If >= 0, will use it instead of actual balance.
MoneyRiskdouble0MoneyRisk: Risk tolerance in base currency
UseMoneyInsteadOfPercentageboolfalse
UseEquityInsteadOfBalanceboolfalse
OrderCommentarystringHAN
Slippageint100Slippage: Tolerated slippage in points
Show all 15 inputs
NameTypeDefaultDescription
Magicint1520122013Magic: Order magic number
MuteboolfalseNo output about virtual trading
FileNamestringHAN_vt.dat

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone EarnForex/Heiken-Ashi-Naive from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts or MQL5/Experts.
  3. 3Copy the filesCopy the .mq4 / .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

EA31337 Libre

by EA31337
252 stars

EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario

MT5 Trading robot Multi-strategyTrend followingMean reversion
Updated 1 year ago GPL-3.0 GitHub repository of EA31337 Libre

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

Basic Bollinger Bands EA

by terencebeauj
21 stars

This MetaTrader 5 expert advisor utilizes the Bollinger Bands and Parabolic SAR indicators to execute trades based on market volatility. It functions as an entry-level algorithmic trading template, allowing users to modify strategy logic or optimize parameters using the MT5 Strategy Tester. The bot manages risk through

MT5 Trading robot Mean reversionTrend following

Ubot

by kudzaiprichard
15 stars

Ubot is an automated trading system for MetaTrader 4 that utilizes the Traders Dynamic Index (TDI) indicator to execute market entries. It identifies specific technical patterns described as sharkfin and squeeze setups to determine trend direction and volatility. The expert advisor features advanced trade management to

MT4 Trading robot Trend followingMean reversion
Updated 2 years ago Custom licence GitHub repository of Ubot

MonsterFX Reliable Trader

by NadirAliOfficial
12 stars

This MetaTrader 5 expert advisor combines automated Forex trading with a Discord notification system via a Python Flask webhook. It executes a dual-timeframe strategy using EMA crossovers, a 200-period trend filter, RSI, and VWAP on the M5 and M15 charts. The EA manages trades with ATR-based stop loss and take profit l

MT5 Trading robot Indicator crossoverTrend followingMean reversion

Support Resistance EA

by jblanked
11 stars

This MetaTrader 4 expert advisor executes trades based on a combination of Relative Strength Index and Moving Average indicators to identify key entry levels. It includes multiple order management features such as a trailing break-even stop and a four-stage partial profit-taking system. Risk management is handled throu

MT4 Trading robot Trend followingMean reversionMartingale High risk
Updated 3 years ago None stated GitHub repository of Support Resistance EA

More trading robots

Need a broker for MT4/MT5?

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

Compare brokers