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.
Moving average trend following or counter-trend modes
Integrated trailing stop for profit protection
Individual stop loss settings for buy and sell orders
Read from KhaiNuiHFT.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
BuySetting
string
----- Buy Orders Settings -----
Buy Orders Settings
EnableBuy
bool
true
Enable Buy Orders
BuyLotSize
double
1
Lot Size for Buy Orders
BuySL_Distance
int
50
Stop Loss Distance for Buy Orders (points)
BuyTrailing_Distance
int
50
Trailing Stop Distance for Buy Orders (points)
SellSetting
string
----- Sell Orders Settings -----
Sell Orders Settings
EnableSell
bool
true
Enable Sell Orders
SellLotSize
double
1
Lot Size for Sell Orders
SellSL_Distance
int
50
Stop Loss Distance for Sell Orders (points)
SellTrailing_Distance
int
50
Trailing Stop Distance for Sell Orders (points)
OtherSetting
string
----- Other settings -----
Other settings
isFollowTrend
bool
true
True to follow the trend, false to trade against it
Show all 16 inputs
Name
Type
Default
Description
MovingAverageType
int
MODE_EMA
Moving Average Type (SMA, EMA, etc.)
MovingAveragePeriod
int
27
Period for Moving Average
MagicNumber
int
123456
Magic Number for Orders
Slippage
int
3
Slippage (points)
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone pleump9/khai-nui-hft from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
3Copy the filesCopy the .mq4 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.
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
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
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
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
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
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