Harmonic Five identifies ABCD, Gartley, Bat, Butterfly, and Crab formations using Fibonacci geometry. The included expert advisor handles entries on fresh patterns and manages exits via a multi-take-profit system with breakeven logic. Risk management features include a daily loss halt and a latched equity kill-switch. Users can filter setups by pattern quality, trend alignment using an exponential moving average, and specific pattern types. Trading functionality is disabled by default.
Read from HarmonicTraderEA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpEnableTrading
bool
false
MASTER SWITCH (default OFF)
InpUseAggressive
bool
false
false=safe profile (aggressive=own capital only)
InpResetKillSwitch
bool
false
set true once to clear a latched equity-kill
InpKillMode
int
0
equity-kill: 0=latch until manual reset (live), 1=halt day + re-arm (research), 2=off (research only!)
InpMagic
long
990011
InpBars
int
800
InpDepth
int
5
InpTolPct
double
0.05
tighter = cleaner patterns
InpMinScore
double
0.65
only high-quality patterns trade
InpSplitExits
bool
false
50% at TP1 + BE runner to TP2. Backtest verdict: HURTS (T2-after-T1 only ~33%; runner EV < the sure half-bank it replace
InpTrendFilter
bool
false
EMA-trend gate. Backtest verdict: HURTS on XAUUSD M15 (blocks the profitable early reversals; win rate 69%->54%). Off by
InpTrendPeriod
int
200
EMA period for the trend filter
Show all 17 inputs
Name
Type
Default
Description
InpTradeABCD
bool
true
pattern-type switches (use scanner stats to choose)
InpTradeGartley
bool
true
InpTradeBat
bool
true
InpTradeButterfly
bool
true
InpTradeCrab
bool
true
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone AwareSet/Harmonic-Five from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
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.
This repository provides a collection of Expert Advisors for MetaTrader 5 and Python trading scripts developed for an educational YouTube series. It features various technical indicator-based strategies, including MACD, Relative Strength Index, Stochastic, and Bollinger Bands. The included MQL5 files implement multi-ti
MT5CollectionIndicator crossoverMean reversionTrend following
This repository is a collection of educational expert advisors for MetaTrader 5, developed as part of an introductory MQL5 programming series. It includes multiple standalone robots utilizing common technical indicators such as moving average crossovers, Bollinger Bands, and the Relative Strength Index. The primary exp
This repository contains a collection of MetaTrader 5 expert advisors, primarily focused on the ChildsPlay strategy derived from online trading forums. The main expert advisor uses multiple exponential moving averages and the Commodity Channel Index across two timeframes to identify trend-following entries. It implemen
This collection features several expert advisors for the MetaTrader 5 platform, each built around a different technical indicator such as MACD, RSI, Parabolic SAR, and Ichimoku Kinko Hyo. The robots execute trades based on classic signal logic, including zero-line crossings and signal line crossovers. Users can configu
This repository contains a diverse collection of automated trading robots for the MetaTrader 5 platform. The strategies range from trend-following systems using True Strength Index (TSI) and Moving Average crossovers to mean-reversion tools utilizing Relative Strength Index (RSI) and Bollinger Bands. Most experts inclu
This educational collection provides a foundation for building MetaTrader 5 expert advisors through a series of modular code snippets and a primary RSI-based trading robot. The included expert advisor executes trades based on Relative Strength Index overbought and oversold levels, supporting both live and closed candle
MT5CollectionMean reversionIndicator crossoverTrend following