Trading robot · MT4

Khai Nui HFT

by pleump9

Khai Nui HFT is a trend-based trading robot for MetaTrader 4 that enters positions using Moving Average analysis.

GitHub stars1
Forks0
Last update2 years ago8 Aug 2024
LicenceNone stated

Overview

Users can configure the expert advisor to follow the prevailing trend or execute counter-trend trades by adjusting the trend toggle. It manages risk through fixed stop loss points and a trailing stop mechanism for both buy and sell directions. The code includes logic to limit the number of active trades per magic number. Despite the name implying high-frequency trading, the repository contains a basic technical strategy without any supporting documentation or instructions.

Details

Author

pleump9 on GitHub

Type

Trading robot

Platform

MetaTrader 4 (MQL4)

Strategy

Trend following, Mean reversion

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

EA files

Input parameters

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

NameTypeDefaultDescription
BuySettingstring----- Buy Orders Settings -----Buy Orders Settings
EnableBuybooltrueEnable Buy Orders
BuyLotSizedouble1Lot Size for Buy Orders
BuySL_Distanceint50Stop Loss Distance for Buy Orders (points)
BuyTrailing_Distanceint50Trailing Stop Distance for Buy Orders (points)
SellSettingstring----- Sell Orders Settings -----Sell Orders Settings
EnableSellbooltrueEnable Sell Orders
SellLotSizedouble1Lot Size for Sell Orders
SellSL_Distanceint50Stop Loss Distance for Sell Orders (points)
SellTrailing_Distanceint50Trailing Stop Distance for Sell Orders (points)
OtherSettingstring----- Other settings -----Other settings
isFollowTrendbooltrueTrue to follow the trend, false to trade against it
Show all 16 inputs
NameTypeDefaultDescription
MovingAverageTypeintMODE_EMAMoving Average Type (SMA, EMA, etc.)
MovingAveragePeriodint27Period for Moving Average
MagicNumberint123456Magic Number for Orders
Slippageint3Slippage (points)

How to install it

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

Heiken Ashi Naive

by EarnForex
17 stars

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. It 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

MT4MT5 Trading robot Trend followingMean reversion
Updated 1 year ago Apache-2.0 GitHub repository of Heiken Ashi Naive

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

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
11 stars

This MetaTrader 4 expert advisor automates trading by combining the Relative Strength Index (RSI) with Ichimoku Kumo signals. It scans every instrument listed in the Market Watch window to identify entries across multiple pairs simultaneously. The robot includes a built-in spread filter to avoid high-cost executions an

MT4 Trading robot Trend followingMean reversion
Updated 6 years ago None stated GitHub repository of RSI Ichimoku Trader Bot
10 stars

This MetaTrader 4 expert advisor implements a reversal and trend-following strategy based on SOMAT3 and IRC Triplets indicators. It evaluates price action across consecutive bars to identify entries and offers an optional trend filter for signal validation. The system manages risk using fixed lot sizing, initial stop l

MT4 Trading robot Trend followingMean reversion
Updated 6 years ago None stated GitHub repository of PhD Appsolute System

OwaisQuadri MT4 Code

by OwaisQuadri
6 stars

This MetaTrader 4 expert advisor executes trades based on momentum oscillators, trend filters, and price action patterns. It utilizes a Stochastic oscillator alongside multiple Exponential Moving Averages to identify entry points in alignment with the prevailing trend. The logic incorporates candlestick analysis, speci

MT4 Trading robot Indicator crossoverTrend followingMean reversion
Updated 6 years ago None stated GitHub repository of OwaisQuadri MT4 Code

More trading robots

Need a broker for MT4?

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

Compare brokers