Utility · MT4 · MT5

Chart Pattern Helper

by EarnForex

This utility for MetaTrader 4 and 5 automates trade execution based on trader-defined chart patterns.

GitHub stars34
Forks15
Last update1 year ago8 Aug 2025
LicenceApache-2.0
Latest release1.151 year ago

Overview

Users draw trendlines, horizontal lines, or channels, which the expert advisor monitors to place pending breakout orders. It handles trade entries, stop losses, and take profits according to specific object naming conventions. Risk management features include percentage-based position sizing, spread compensation, and one-cancels-other logic. The EA does not identify patterns automatically and requires manual setup for each trade setup, focusing purely on execution and management.

Details

Author

EarnForex on GitHub

Strategy

Breakout

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.

Topics

chart-patternexpert-advisorforexforex-robotmetatradermetatrader-4metatrader-5mql4mql5mt4mt5trading-ordertrading-robot

Input Parameters

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

NameTypeDefaultDescription
UpperBorderLinestringUpperBorder
UpperEntryLinestringUpperEntry
UpperTPLinestringUpperTP
LowerBorderLinestringLowerBorder
LowerEntryLinestringLowerEntry
LowerTPLinestringLowerTP
BorderChannelstringBorder
EntryChannelstringEntry
TPChannelstringTP
OneCancelsOtherbooltrueOneCancelsOther: Remove opposite orders once position is open?
UseSpreadAdjustmentboolfalseUseSpreadAdjustment: Add spread to Buy entry and Sell SL/TP?
UseExpirationbooltrueUseExpiration: Use expiration on pending orders?
Show all 31 inputs
NameTypeDefaultDescription
DisableBuyOrdersboolfalseDisableBuyOrders: Disable new and ignore existing buy trades?
DisableSellOrdersboolfalseDisableSellOrders: Disable new and ignore existing sell trades?
PostEntrySLAdjustmentboolfalsePostEntrySLAdjustment: Adjust SL after entry?
UseDistantSLboolfalseUseDistantSL: If true, set SL to pattern's farthest point.
OpenOnCloseAboveBelowTrendlineboolfalseOpen trade on close above/below trendline.
SLLinestringSLStop-loss line name for trendline trading.
ThresholdSpreadsint10Threshold Spreads: number of spreads for minimum distance.
CalculatePositionSizebooltrueCalculatePositionSize: Use money management module?
UpdatePendingVolumebooltrueUpdatePendingVolume: If true, recalculate pending order volume.
FixedPositionSizedouble0.01FixedPositionSize: Used if CalculatePositionSize = false.
Riskdouble1Risk: Risk tolerance in percentage points.
MoneyRiskdouble0MoneyRisk: Risk tolerance in base currency.
UseMoneyInsteadOfPercentageboolfalse
UseEquityInsteadOfBalanceboolfalse
FixedBalancedouble0FixedBalance: If > 0, trade size calc. uses it as balance.
Magicint20200530
Slippageint30Slippage: Maximum slippage in broker's pips.
SilentboolfalseSilent: If true, does not display any output via chart comment.
ErrorLoggingbooltrueErrorLogging: If true, errors will be logged to file.

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone EarnForex/Chart-Pattern-Helper 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

7 stars

PR Pivots Expert Advisor is a technical tool for MetaTrader 4 that calculates and displays daily pivot points on the chart. Using price data from the previous trading day, including high, low, and close values, it plots the central pivot level along with three resistance and three support levels. The software uses grap

MT4 Utility Mean reversionBreakout
Updated 5 years ago None stated GitHub repository of PR Pivots Expert Advisor
1 stars

Tao Stock Simple Arrow is a MetaTrader 4 expert advisor that serves as a visual signal generator for price breakouts. The program identifies the highest and lowest price levels within the most recent 100 candles. If the current price breaks these established boundaries, it places buy or sell arrow objects directly on t

MT4 Utility Breakout
Updated 7 years ago None stated GitHub repository of Tao Stock Simple Arrow
1 stars

This MetaTrader 5 tool provides a semi-automatic interface for executing trades based on manual chart analysis. Users can configure trendlines and horizontal lines to trigger buy or sell orders upon price touch, breakout, or retest. The EA includes a graphical user interface to manage lot sizes and provides draggable o

MT5 Utility Breakout
Updated 4 years ago None stated GitHub repository of MT5 Line Trading EA

Position Sizer

by EarnForex
605 stars

This risk management tool for MetaTrader 4 and 5 calculates optimal lot sizes based on user-defined risk parameters, account balance, and currency. It provides a graphical user interface for setting entry, stop loss, and take profit levels visually on the chart. The expert advisor accounts for commissions, swaps, and m

MT4MT5 Utility
Updated 3 weeks ago Apache-2.0 GitHub repository of Position Sizer

Trading Panel

by Kashu7100
64 stars

This MetaTrader 5 tool acts as a discretion helper for manual traders to simplify order execution. It automates trade entries by applying calculated risk percentages and setting predefined stop loss and take profit values in pips. The utility features integrated trailing stop functionality, allowing users to define spe

MT5 Utility
Updated 2 years ago GPL-2.0 GitHub repository of Trading Panel

AR Trading Panel

by Andrukas8
37 stars

This MetaTrader 5 utility is a comprehensive manual trading panel and risk management suite. It simplifies order execution by calculating lot sizes based on a defined risk percentage of account equity. Users can manage trades via automated break-even points, multi-mode trailing stops including Fractals, Moving Averages

MT5 Utility SMC / ICT / price actionIndicator crossoverMulti-strategy
Updated 1 year ago None stated GitHub repository of AR Trading Panel

More utilities

Related on ForexR

Need a Broker for MT4/MT5?

Compare regulated brokers that support MT4/MT5, with spreads, minimum deposits and leverage side by side.

Compare MT5 brokers