patterns ea
Info
The patterns ea is a Expert Advisor for MetaTrader 5 that the expert advisor uses the indicator of thirty popular candlestick patterns:. several trading types can be used for opening positions.
Usage
This tool is typically used for automated trading on major forex pairs and gold.
Platform
This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use patterns ea
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
What this tool does
the expert advisor uses the indicator of thirty popular candlestick patterns:.
Typical Use Case
This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.
Description & Settings
Related: trade signals using reversal candlestick patterns in mql5 - another powerful expert for MetaTrader 5 traders.
the expert advisor uses the indicator of thirty popular candlestick patterns: .
Also recommended: trade signals based on 3 black crows/3 white soldiers reversal patterns with rsi confirmation - similar expert with strong performance on MetaTrader 5.
several trading types can be used for opening positions. positions of the set type are opened for each pattern. opening of positions can be enabled/disabled for each pattern separately or for a group of patterns: one-, two- and three-bar candlestick formations.the expert advisor is designed for working on hedging accounts. if you launch the ea on a netting account, a warning message will pop up and the ea will be unloaded.
the is not required for the ea operation, because calculations and search for patterns are implemented in a special class, which is connected to the ea and is located in the same folder.
the ea allows setting stop loss and take profit in points, which will be the same for all positions. if invalid stop loss and take profit values are specified, the ea will adjust the values to the minimum
stoplevel
allowed for the symbol.
the expert advisor will also adjust the lot in case an incorrect value is specified. if the lot is too large, the ea will adjust it in order to be able to open a position. if there is no money for opening even the minimum lot, the signal will be skipped.
please note that the expert advisor is designed for training purposes.
the expert advisor has 75 configurable parameters. here are the main 15 parameters:
enable one-bar patterns
- allow using one-bar candlestick patterns;
enable two-bar patterns
- allow using two-bar candlestick patterns;
enable three-bar patterns
- allow using three-bar candlestick patterns;
maximum of pips distance between equal prices
- the maximum distance between two compared prices (*);
draw pattern and descriptions
- show patterns and their descriptions on the chart;
font size
- the font size for pattern descriptions;
texts color
- the text color for pattern descriptions;
font name
- the font name for pattern descriptions;
experts magic number
- the unique identifier of the ea's positions;
mode of opening positions
- position opening mode (**);
lots
- the volume of positions to open;
stop loss in points
- the stop loss of a position in points, not used if 0;
take profit in points
- the take profit of a position in points, not used if 0;
slippage of price
- maximum allowable slippage when opening a position;
multiplier spread for stops
- spread multiplier applied in the calculation of a proper distance for stop orders (***).
the remaining 60 parameters are switches for patterns and position types, which should be opened according to these patterns.
* the accuracy of comparison in the pattern search - prices are considered equal if the difference between them is less than this number of points.
** the following six modes are available:
any position
always one position (swing)
only one buy position
many buy positions
only one sell position
many sell position *** for stop loss and take profit orders (as well as pending orders), there is a minimum allowed distance for placing such orders -
stoplevel
. i.e. stop loss and take profit (as well as pending orders) cannot be placed closer than this distance to the price. if
stoplevel
is zero, it does not mean its absence, it only means that
stoplevel
is floating. in this case, the minimum distance is usually equal to spread*, but sometimes even the double spread is not enough. so, this parameter allows specifying a custom multiplier for the spread used to calculate the minimum distance for placing stop orders.
mode of opening positions: always one position, the "outside" pattern opens sell. default values are used for other settings.
You may also like: Trade Signals Based on Bullish/Bearish Harami Candlestick Patterns Confirmed by MFI Indicator using MQL5 Wizard - excellent alternative for expert users on MetaTrader 5.
Source Code
/
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.