Skip to content
Forex Indicator System Thailand
Back to marketplace
PatternEAMedium

Chart Pattern Helper (EA that trades your drawn lines)

Semi-automatic EA that places pending orders from the lines and channels you draw on the chart, for breakout patterns

Chart Pattern Helper (EA that trades your drawn lines) on an MT5 chart
Example on an MT5 chart

Download this EA for free

Download right away. Nothing to fill in.

Version
1.15
Published
11/21/2026
File size
103 KB

Open source, Apache License 2.0, by EarnForex.com. See licences

Version history

  1. 1.15Current11/21/2026 · 103 KB

    First release on this site.

How to use

Draw the lines on the chart and name the objects to match UpperBorderLine, UpperEntryLine, UpperTPLine, LowerBorderLine, LowerEntryLine, LowerTPLine (or Border, Entry, TP for channels). Then drag the EA onto the same chart and enable Algo Trading. The chart text lists which lines and price levels the EA found.

Check the entry, stop-loss and take-profit levels in the chart text before letting the EA run. You can stop the EA at any time; pending orders already placed stay until they are deleted or expire. Use DisableBuyOrders or DisableSellOrders to trade one side only. If there is no Border line and CalculatePositionSize is off, the EA places orders without a stop-loss.

Parameters

NameDefaultDescription
UpperBorderLineUpperBorderName of the line (horizontal or trendline) used as the upper border of the pattern. It sets the stop-loss for the buy side.
UpperEntryLineUpperEntryName of the line used as the buy entry level.
UpperTPLineUpperTPName of the line used as the buy take-profit level.
LowerBorderLineLowerBorderName of the line used as the lower border of the pattern. It sets the stop-loss for the sell side.
LowerEntryLineLowerEntryName of the line used as the sell entry level.
LowerTPLineLowerTPName of the line used as the sell take-profit level.
BorderChannelBorderName of the channel object used as the pattern border, instead of separate lines.
EntryChannelEntryName of the channel object used for the entry levels.
TPChannelTPName of the channel object used for the take-profit levels.
OneCancelsOthertrueRemove the opposite pending order once one side has been opened.
UseSpreadAdjustmentfalseAdd the spread to the buy entry and to the sell SL/TP, to compensate for chart objects being drawn at the Bid price.
UseExpirationtrueSet an expiration time on pending orders. The EA turns this off itself if the broker does not support it.
DisableBuyOrdersfalseDo not place new buy orders and ignore existing ones.
DisableSellOrdersfalseDo not place new sell orders and ignore existing ones.
PostEntrySLAdjustmentfalseAfter the breakout candle closes, adjust the stop-loss to be more precise. This makes the sized risk less exact.
UseDistantSLfalsePlace the stop-loss at the farthest point of the pattern instead of the border line.
OpenOnCloseAboveBelowTrendlinefalseOpen a market order when a candle closes above or below the trendline, instead of placing a pending order.
SLLineSLName of the horizontal line used as the stop-loss in trendline trading.
ThresholdSpreads10Minimum distance, in multiples of the spread, used in trendline mode.
CalculatePositionSizetrueSize the lot from the risk setting and the stop-loss distance. If off, FixedPositionSize is used.
UpdatePendingVolumetrueRecalculate the lot of pending orders when the lines or the stop-loss change.
FixedPositionSize0.01Fixed lot size, used when CalculatePositionSize is false.
Risk1Risk per order as a percentage of the account.
MoneyRisk0Risk per order as a money amount. Used when UseMoneyInsteadOfPercentage is on.
UseMoneyInsteadOfPercentagefalseUse MoneyRisk (money amount) instead of Risk (percentage).
UseEquityInsteadOfBalancefalseUse equity instead of balance as the base for the risk calculation.
FixedBalance0If above 0, this value is used as the balance for lot sizing instead of the real balance.
Magic20200530Magic number that separates this EA's orders from other orders.
Slippage30Maximum accepted slippage.
SilentfalseIf on, no status text is shown on the chart.
ErrorLoggingtrueWrite errors to a log file.

Defaults are the values shipped with the EA, not a recommendation. Results depend on the market and on each account. Past results do not guarantee future results. Trading carries a high risk of loss.

How to install

  1. Download the .ex5 file.
  2. In MT5, choose File > Open Data Folder.
  3. Copy the file into the MQL5\Experts folder.
  4. Right-click Expert Advisors in the Navigator window and choose Refresh (or restart MT5).
  5. Drag it onto a chart, adjust the Inputs, turn on Allow Algo Trading, then click OK.

Description

This EA does not find patterns by itself. You draw lines or channels on the chart and name them as set in the input parameters, for example UpperEntry, UpperTP, LowerBorder, and the EA places and manages orders from those objects. It only handles breakout setups, not pullbacks.

It works in two modes. If price is between the upper and lower entry lines it places one or two stop orders. If price is above the upper entry or below the lower entry it places a single limit order. When you drag a line the EA adjusts the pending order, and if you delete or rename the line the order is cancelled.

By default the lot is sized from a risk percentage and the stop-loss distance, or you can use a fixed lot. The stop-loss comes from the border line, or from the farthest point of the pattern, and the take-profit comes from the TP line.

Banners from the Exness partner programme

Exness banner: gold spreads*

FXIDTH is an independent IB partner of Exness. This channel is not owned or operated by Exness.*Spreads may fluctuate and widen due to factors including market volatility, news events, market open/close, and others.*Processing times may vary depending on the chosen payment method.

FVG (Fair Value Gap zones) on an MT5 chart
IndicatorPattern

FVG (Fair Value Gap zones)

An indicator that draws boxes on the chart over the price gap across three candles (Fair Value Gap), coloured by direction

Main chart

Version 1.03Free download