candle pattern executor

candle pattern executor
Download ALL MT4 scripts (422)
YouTube Video Thumbnail



Similar MetaTrader Tools

candle pattern executor

Info

The candle pattern executor is a Script for MetaTrader 4 that this expert is based on the analysis of candle pattern combinations. the expert analyzes 10 patterns that can form on the chart and makes decisions based on them.

Usage

This tool is typically used for enhancing chart analysis and decision making.

Platform

This Script works exclusively on MetaTrader 4 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL4/Scripts folder via File ? Open Data Folder in MetaTrader 4.


How to Install and Use candle pattern executor

1. Installation: Move your script file into the MQL/Scripts directory and restart the platform.

2. Execution: Drag the script onto a chart; it will perform a one-time action, such as closing all open orders or clearing chart objects.

3. Editing: Use MetaEditor (F4) to modify code, click "Compile," and verify no errors appear in the terminal before running.

4. Removing: Scripts stop automatically, but you can remove them manually by right-clicking the chart and choosing "Remove Script."

Frequently Asked Questions

Q: How are scripts different from EAs? A: Scripts execute a single action and then stop; EAs monitor the market and trade continuously.

Q: Can I assign a hotkey to a script? A: Yes, right-click the script in the Navigator, select "Set Hotkey," and define your preferred keyboard shortcut.

Q: Why did my script stop? A: Scripts are designed to stop immediately after finishing their programmed command; this is normal behavior.

What this tool does

this expert is based on the analysis of candle pattern combinations.

Typical Use Case

This Script excels in automated trading and technical analysis on MetaTrader 4.

Compatible Platform & Setup

This Script works on MetaTrader 4. Place the file in the MQL4/Scripts folder and restart the terminal.

Description & Settings

Related: excandles-v2: candlestick pattern indicator - another powerful script for MetaTrader 4 traders.

this expert is based on the analysis of candle pattern combinations. the expert analyzes 10 patterns that can form on the chart and makes decisions based on them.

Also recommended: excandles indicator - similar script with strong performance on MetaTrader 4.


symbol
eurusd (euro vs us dollar)

period
4 hours (h4) 2026.01.03 00:00 - 2026.12.21 00:00 (2026.08.01 - 2026.12.21)

model
all ticks (based on all available periods with fractal interpolation of each tick)

bars in history
8968
simulated ticks
2481742
model quality
90.00%

initial deposit
1000.00
net profit
698.30
total profit
3541.98
total loss
-2843.68

profit factor
1.25
expected win
6.78

absolute drawdown
63.00
maximum drawdown
436.74 (26.60%)
relative drawdown
26.60% (436.74)

total trades
103
short positions (% winning)
53 (45.28%)
long positions (% winning)
50 (78.00%)

profitable trades (% of all)
63 (61.17%)
loss trades (% of all)
40 (38.83%)

largest
profitable trade
102.73
loss trade
-95.49

average
profitable trade
56.22
loss trade
-71.09

maximum
consecutive wins (profit)
7 (148.21)
consecutive losses (loss)
4 (-283.32)

maximum
consecutive profit (number of wins)
302.34 (3)
consecutive loss (number of losses)
-283.32 (4)

average
consecutive win
2
consecutive loss
1

the expert was optimized on data from 2026.08.01 to 2026.12.01, and the optimization test was verified on 2026 data with a 4-hour timeframe and a positive result was obtained.

You may also like: show candle size - excellent alternative for script users on MetaTrader 4.

Source Code

#property copyright "robotfx"
#property link "https://robotfx.org"
#define magic 612457
extern double lstoploss = 90;
extern double sstoploss =60;
extern double ltakeprofit = 80;
extern double stakeprofit = 100;
extern double ltrailingstop = 30;
extern double strailingstop = 100;
extern double lots = 0.10;

.......

Leave your opinion, ask a question, share some knowledge

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.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.