EA based on Candlestick Closure

MQL5 Experts

Specification

EA Specification (Updated with Risk Control Options)

1. General Concept

The Expert Advisor (EA) should open trades at the close of a candlestick, based on:

  • The market bias (user-defined: Buy or Sell only).

  • The timeframe selected by the trader.

The EA should include a dashboard panel on the chart that allows the trader to interact with and control the EA’s behavior.


2. Dashboard / User Interface

The on-chart dashboard should include:

  1. Market Bias Selection – Buy Only / Sell Only.

  2. Global TP and SL – in pips or price levels.

  3. Number of Positions per Signal – how many trades to open per valid signal.

  4. Floating PnL Display – real-time sum of EA trades.

  5. Close All Trades Button – closes all EA trades instantly.


3. Trading Logic

  • Check conditions at candle close.

  • If bias = Buy → open defined number of Buy trades.

  • If bias = Sell → open defined number of Sell trades.

  • Each trade uses Global TP/SL (unless overridden by risk-control options).

  • No opposite trades allowed.


4. Inputs / Parameters

  • Lot size (fixed).

  • Global Take Profit (pips/price).

  • Global Stop Loss (pips/price).

  • Number of positions per signal (integer).

  • Magic Number (to identify EA trades).

  • Maximum number of trades allowed (optional risk limit).


5. Trade Management

  • Each trade uses the configured TP/SL.

  • Close All” button closes all EA trades (Magic Number filter).

  • Floating PnL displayed on dashboard in real-time.


6. Additional Risk-Control Options (Optional Enhancements)

The EA can include the following advanced trade management options for handling multiple positions:

  1. Staggered Take Profit (Partial Exit)

    • Allow the trader to set different TP levels for multiple trades opened in the same signal.

    • Example: If 3 Buy trades are opened, TP1 = 20 pips, TP2 = 40 pips, TP3 = 60 pips.

    • Helps secure profits gradually while leaving positions to run.

  2. Break-Even Function

    • After X pips in profit (user-defined), automatically move SL to entry price (or entry + buffer).

    • Applies to all open positions or individually.

  3. Trailing Stop

    • Option to enable a trailing stop (user can define step and distance).

    • This replaces fixed SL once activated.

  4. Equity-Based Exit

    • A global condition to close all trades if account profit/loss reaches a certain threshold.

    • Example: Close all when floating profit ≥ $100, or when floating loss ≥ $50.

  5. Max Drawdown Protection

    • Prevent new trades from being opened if floating loss exceeds a user-defined percentage of account balance/equity.


7. Additional Notes

  • Dashboard updates dynamically.

  • No automatic bias detection — trader sets Buy/Sell manually.

  • EA must work on both MQL4 and MQL5 (or be specified for one platform).



Responded

1
Developer 1
Rating
(462)
Projects
907
76%
Arbitration
25
16% / 68%
Overdue
99
11%
Free
Published: 1 article, 6 codes
2
Developer 2
Rating
(8)
Projects
10
20%
Arbitration
0
Overdue
0
Busy
3
Developer 3
Rating
(230)
Projects
286
27%
Arbitration
14
50% / 36%
Overdue
9
3%
Loaded
4
Developer 4
Rating
(14)
Projects
15
0%
Arbitration
1
0% / 0%
Overdue
0
Working
5
Developer 5
Rating
(13)
Projects
17
18%
Arbitration
3
67% / 0%
Overdue
0
Free
6
Developer 6
Rating
(75)
Projects
123
43%
Arbitration
12
33% / 50%
Overdue
17
14%
Working
7
Developer 7
Rating
(50)
Projects
73
21%
Arbitration
11
18% / 27%
Overdue
6
8%
Working
8
Developer 8
Rating
(395)
Projects
574
53%
Arbitration
30
53% / 23%
Overdue
7
1%
Loaded
9
Developer 9
Rating
(109)
Projects
137
43%
Arbitration
8
38% / 38%
Overdue
6
4%
Free
10
Developer 10
Rating
(427)
Projects
751
49%
Arbitration
62
16% / 48%
Overdue
136
18%
Loaded
11
Developer 11
Rating
(325)
Projects
535
67%
Arbitration
52
21% / 38%
Overdue
169
32%
Working
Published: 1 code
12
Developer 12
Rating
(368)
Projects
472
24%
Arbitration
51
61% / 20%
Overdue
53
11%
Loaded
13
Developer 13
Rating
(36)
Projects
38
11%
Arbitration
2
50% / 50%
Overdue
2
5%
Working
14
Developer 14
Rating
(302)
Projects
466
18%
Arbitration
29
48% / 24%
Overdue
29
6%
Loaded
15
Developer 15
Rating
(6)
Projects
6
17%
Arbitration
2
0% / 0%
Overdue
1
17%
Loaded
16
Developer 16
Rating
(8)
Projects
12
0%
Arbitration
22
0% / 77%
Overdue
4
33%
Free
17
Developer 17
Rating
(5)
Projects
4
25%
Arbitration
1
0% / 100%
Overdue
0
Free
18
Developer 18
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
19
Developer 19
Rating
(11)
Projects
11
0%
Arbitration
4
25% / 50%
Overdue
2
18%
Free
20
Developer 20
Rating
(4)
Projects
2
0%
Arbitration
1
0% / 0%
Overdue
1
50%
Working
21
Developer 21
Rating
(84)
Projects
115
70%
Arbitration
5
80% / 0%
Overdue
11
10%
Free
22
Developer 22
Rating
(51)
Projects
69
35%
Arbitration
1
100% / 0%
Overdue
0
Free
23
Developer 23
Rating
(3)
Projects
3
0%
Arbitration
0
Overdue
0
Busy
24
Developer 24
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
25
Developer 25
Rating
(2596)
Projects
3275
67%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
26
Developer 26
Rating
(291)
Projects
521
36%
Arbitration
62
34% / 35%
Overdue
187
36%
Loaded
27
Developer 27
Rating
(279)
Projects
330
51%
Arbitration
12
42% / 0%
Overdue
18
5%
Loaded
28
Developer 28
Rating
(43)
Projects
65
11%
Arbitration
12
58% / 42%
Overdue
1
2%
Free
29
Developer 29
Rating
(2248)
Projects
2835
62%
Arbitration
118
46% / 25%
Overdue
428
15%
Free
30
Developer 30
Rating
(287)
Projects
293
70%
Arbitration
2
100% / 0%
Overdue
0
Free
Published: 1 code
31
Developer 31
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
32
Developer 32
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
33
Developer 33
Rating
(156)
Projects
280
35%
Arbitration
14
29% / 50%
Overdue
42
15%
Free
34
Developer 34
Rating
(450)
Projects
560
26%
Arbitration
22
41% / 36%
Overdue
85
15%
Free
Published: 6 codes
35
Developer 35
Rating
(77)
Projects
232
73%
Arbitration
6
100% / 0%
Overdue
1
0%
Free
Similar orders
I need an MQL4 developer to create two projects on MT4. The first is a grid trading EA that should not use martingale, but allow customizable settings such as grid step, lot size, maximum trades, take profit, stop loss, trading hours, and include risk management features. The second is a reverse trade copier that mirrors trades from one MT4 account to another in the opposite direction (for example, if the master
I'm seeking a highly skilled MQL5 developer to backtest and optimize an existing Expert Advisor (EA) for consistent and stable performance on XAUUSD (Gold), M5 timeframe . Project Scope: Conduct detailed backtesting using high-quality, accurate historical data Perform advanced optimization of key parameters: Risk settings Stop Loss / Take Profit Trailing stop Lot sizing Other relevant EA settings Ensure robust
Hello, I’m currently looking to hire a professional and experienced developer to help create a custom trading bot (Expert Advisor) for the MetaTrader platform (MT5). What I Need: I’m looking for someone who can: Develop a fully automated trading bot based on my strategy (which I will provide in detail)
Hello, I’m looking for an MQL5 or MQL4 EA that trades EURUSD (optionally other majors or XAUUSD). The broker applies a 4-pip spread on EURUSD and higher on other symbols. The sole objective is to generate at least 45–60 lots of volume within 2 weeks or max one month (more is better; a bonus is paid for every additional 10 lots traded). The account has 1000 USD starting balance. Capital preservation is not required
I need help building a successful trading strategy on QuantConnect. The goal is to achieve a sharp ratio greater than 2 and returns above 100% per annum, with the strategy scripted and backtested on the platform. Scope of work - Develop a trading strategy with a sharp ratio greater than Ensure returns exceed 100% annually. - Draft and backtest the strategy using QuantConnect platform. Additional information Build &
Hello, I run a service providing Expert Advisors (EAs) and trading tools to clients, and I am looking for a skilled developer to partner with on a long-term basis. The key requirements include: MT4/MT5 Development – Creating new EAs, editing existing ones, and managing licensing. TradingView Indicators – Developing and modifying indicators with licensing solutions. As my client base grows, there will be a steady flow
1. Project Overview Name : BB Channel Trading EA Objective : Execute reversal trades based on price action (engulfing patterns and liquidity sweeps) at the extremes defined by Bollinger Bands. Trades will be taken when price breaks volatility bounds, indicating potential exhaustion and reversal. 2. Functional Components 2.1 Bollinger Bands Channel Purpose : Identify overbought and oversold zones. Indicator : Custom
I am looking for an experience MQL4 developer for making a profitable prop firm compatible MT4 gold scalper EA on a 5 Minute time frame. The EA should have a win rate of not less than 90% on back testing. The EA should be able to pass all prop firm challenges like Funded Next, FTMO, Funding Pips within 1-2 weeks. The EA should also work on live funded account. Any strategy can be used to develop the EA. Proper risk
I’m looking for a profitable Expert Advisor (EA) — the real beast that can deliver strong results on MT4/MT5. If you have a proven EA with good performance and risk management, kindly reach out with details and results
Description: I'm looking for an experienced MQL5 developer to build a fully automated Expert Advisor (EA) for trading the MNQ100 Micro E-mini Nasdaq futures on MetaTrader 5 , specifically tailored for use on a funded prop firm account . The EA will be running unattended, so it must have reliable built-in risk management and strict protections to comply with typical prop firm rules (such as daily loss limits, max

Project information

Budget
50 - 100 USD
Deadline
from 1 to 3 day(s)

Customer

Placed orders1
Arbitrage count0