EA for use on MT5, simple strategy based on the High and Low of candles

MQL5 Experts Strategy optimization

Specification

Hi, I need to make an EA for use on MT5, on a simple strategy based on the High and Low of candles. Below is the strategy where I should be able to change the variables (number of candles, candle frequency, hours, multiplier, etc):


Entry Long

--------------------

Open Position = 0

AND

CMP > Highest High of last 5 candles

--------------------


Exit Long

--------------------

Time > Entry Time + 5 hours

AND

CMP < Lowest Low of last 5 candles

--------------------

OR

--------------------

Time < Entry Time + 5 hours

AND

CMP < Lowest Low of last 5 candles

AND

CMP < Entry Price * 0.99

--------------------
OR
--------------------

Time < Entry Time + 5 hours

AND

CMP < Lowest Low of last 5 candles

AND

CMP > Entry Price

--------------------

 

Entry Short

--------------------

Open Position = 0

AND

CMP < Lowest Low of last 5 candles

--------------------


Exit Short

--------------------

Time > Entry Time + 5 hours

AND

CMP > Highest High of last 5 candles

--------------------

OR

--------------------

Time < Entry Time + 5 hours

AND

CMP > Highest High of last 5 candles

AND

CMP > Entry Price * 1.01

--------------------
OR
--------------------

Time < Entry Time + 5 hours

AND

CMP > Highest High of last 5 candles

AND

CMP < Entry Price

--------------------


At any point, only one of the two (Long or Short) entries should be active. 


Responded

1
Developer 1
Rating
(232)
Projects
289
27%
Arbitration
15
47% / 33%
Overdue
9
3%
Busy
2
Developer 2
Rating
(9)
Projects
12
25%
Arbitration
0
Overdue
1
8%
Free
3
Developer 3
Rating
(5)
Projects
7
43%
Arbitration
3
33% / 67%
Overdue
0
Free
4
Developer 4
Rating
(369)
Projects
475
24%
Arbitration
51
61% / 20%
Overdue
55
12%
Loaded
5
Developer 5
Rating
(304)
Projects
469
18%
Arbitration
29
48% / 24%
Overdue
30
6%
Busy
6
Developer 6
Rating
(52)
Projects
67
43%
Arbitration
1
0% / 100%
Overdue
3
4%
Free
7
Developer 7
Rating
(2598)
Projects
3279
67%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
8
Developer 8
Rating
(2253)
Projects
2840
62%
Arbitration
118
46% / 25%
Overdue
428
15%
Working
9
Developer 9
Rating
(109)
Projects
137
43%
Arbitration
8
38% / 38%
Overdue
6
4%
Free
10
Developer 10
Rating
(19)
Projects
23
48%
Arbitration
5
0% / 100%
Overdue
2
9%
Free
11
Developer 11
Rating
(42)
Projects
48
27%
Arbitration
4
25% / 25%
Overdue
0
Free
12
Developer 12
Rating
(6)
Projects
6
33%
Arbitration
4
0% / 100%
Overdue
0
Free
13
Developer 13
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
14
Developer 14
Rating
(16)
Projects
23
26%
Arbitration
1
0% / 0%
Overdue
2
9%
Free
15
Developer 15
Rating
(285)
Projects
337
51%
Arbitration
12
50% / 0%
Overdue
19
6%
Loaded
16
Developer 16
Rating
(51)
Projects
73
21%
Arbitration
11
18% / 27%
Overdue
6
8%
Loaded
17
Developer 17
Rating
(1118)
Projects
1804
61%
Arbitration
14
64% / 7%
Overdue
84
5%
Free
18
Developer 18
Rating
(150)
Projects
226
80%
Arbitration
18
33% / 44%
Overdue
11
5%
Working
Published: 24 articles, 1882 codes
19
Developer 19
Rating
(284)
Projects
459
39%
Arbitration
94
44% / 18%
Overdue
73
16%
Loaded
Published: 2 codes
20
Developer 20
Rating
(293)
Projects
524
35%
Arbitration
63
33% / 35%
Overdue
188
36%
Loaded
21
Developer 21
Rating
(77)
Projects
232
73%
Arbitration
6
100% / 0%
Overdue
1
0%
Free
22
Developer 22
Rating
(12)
Projects
9
33%
Arbitration
3
0% / 67%
Overdue
2
22%
Working
23
Developer 23
Rating
(270)
Projects
550
49%
Arbitration
56
39% / 36%
Overdue
227
41%
Working
24
Developer 24
Rating
(44)
Projects
53
38%
Arbitration
8
13% / 25%
Overdue
8
15%
Working
Similar orders
Mthizo trades 30 - 200 USD
- *Currency Pairs*: Major pairs such as EUR/USD, XAU/USD and GBP/USD - *Funding Currency*: South African Rand (ZAR) - *Initial Deposit*: R100 (may require additional deposit for live trading) - *Risk Management*: Basic risk management features, such as stop loss and take profit - *Strategy*: Pre-defined strategy based on Smart Money Concept principles - *Cost*: Approximately R100-R200 (one-time cost or
Job Description: I need a professional TradingView developer to build a custom TradingView indicator that replicates the logic of a TradingView indicator I use. The indicator should identify market structure, breaks of structure (BOS), and fair value gaps (FVGs) while displaying both current and higher timeframe data on the chart. ⸻ Key Features & Logic 1. Zones & Market Structure • Zone 1 = Market Structure (base
I need an Expert advisor based on AOX signal . it must have check and handing of trade operation..errors. The main criterin for opening and dosing a position : moving average direction the price is higher than the previous bar Trade lots is input parameter bar
I have a working strategy for Boom and Crash and need a programmer to build an MT5 Expert Advisor (EA) that trades on the 1-Minute timeframe . Key Requirements: Developer should have at least basic knowledge of Boom and Crash trading. EA must work only on candle ticks for Boom and Crash. The EA will receive trade alerts from my indicator and automatically open trades based on those alerts. No duplicate trades should
Here's a detailed description of a Trend Following and Mean Reversion strategy-based Expert Advisor (EA): Strategy Overview The EA will implement a hybrid strategy combining trend following and mean reversion techniques. It will identify trending markets, ride the trend, and also capitalize on mean reversion opportunities
I am looking for an experienced programmer to convert a TradingView strategy pine script to MT4 EA with all the adjustable input parameters . The code is about 60 lines
Manage my live forex account with a disciplined, low-risk approach that produces steady monthly income. My priority is capital protection, so each trade must be sized conservatively, anchored by firm stop-loss orders, and designed to keep drawdown minimal. High-risk tactics such as martingale, grid systems, or excessive leverage are off the table; a measured, rules-based strategy is essential. I will connect the
Indicator that finds zones. All details in word document Ask questions if need I’d also like to to change from finding bullish marker and main candles to bearish marker and main candles if price crosses past inputted price The document is showing zones for bullish price action. Id like to also change manually in setting for it to show bearish price action ( it will look for bullish candle markers and main) Zones
I already have an Expert Advisor coded in MQL4, but it refuses to trade anything other than its hard-coded symbol. I want that filter gone so the same strategy can fire on any instrument—forex, indices, metals such as XAUUSD—across any timeframe. The trading logic, money management and inputs must stay exactly as they are; I simply need universal symbol support. After the MT4 file is fixed and compiles cleanly, I
Description: Gildepak is a purchasing cooperative for packaging materials. We need a program to calculate and fairly distribute the annual bonus (received from preferred suppliers) among our member companies (partners and members). The program should work with a set of predefined tables and data flows, and it must be able to import and export Excel files. Main Tables: Member Companies Company ID Company Name Partner

Project information

Budget
30 - 75 USD
For the developer
27 - 67.5 USD