Expert Advisor for XAUUSD based on 10$ price movement cycle strategy

Job finished

Execution time 11 minutes
Feedback from employee
Excellent customer. Clear specifications and fast payment. Thank you.

Specification

I need an Expert Advisor for MetaTrader 5 (MQL5) to trade XAUUSD based on a simple price movement cycle.

Strategy logic:

• The EA opens a Buy and a Sell at the same time (one pair per cycle).  
• Only ONE Sell position must exist at any time.  
• Every Buy must be opened together with a Sell.

Cycle rules:

• Step movement = 10 USD in gold price.  
• CycleEntryPrice = the OPEN PRICE of the last cycle BUY order.

• If price goes up +10 USD from CycleEntryPrice:  
  - Close the cycle Buy  
  - Close the Sell  
  - Immediately open a new Buy + Sell cycle  
  - Update CycleEntryPrice to the new Buy open price.

• If price goes down −10 USD from CycleEntryPrice:  
  - Close the Sell (profit)  
  - Immediately open a new Buy + Sell cycle  
  - Update CycleEntryPrice to the new Buy open price.

Additional rules:

• Maximum Buy positions = 16  
• When Buy positions reach 16 → EA must enter FREEZE mode.  
• In FREEZE mode: no new orders and no cycle actions. Existing positions remain untouched.

• EA must correctly detect existing positions after terminal restart.  
• Use MagicNumber to manage positions.  
• Prevent repeated executions using CooldownSeconds.

Technical requirements:

• MQL5 only.  
• Deliverables must include EX5 and full MQ5 source code so I can modify the EA later if needed.  
• Code should be clean and well structured (state machine logic preferred).

Price gap behavior:

If price jumps more than 10 USD (for example 20 USD), the EA may execute multiple cycles accordingly in a controlled loop.

Please contact me if you need clarification.

Responded

1
Developer 1
Rating
(33)
Projects
36
33%
Arbitration
5
0% / 80%
Overdue
0
Working
Published: 2 codes
2
Developer 2
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(217)
Projects
369
33%
Arbitration
34
41% / 29%
Overdue
108
29%
Free
Published: 1 code
4
Developer 4
Rating
(2668)
Projects
3400
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Working
Published: 1 code
5
Developer 5
Rating
(6)
Projects
4
0%
Arbitration
5
0% / 100%
Overdue
0
Free
6
Developer 6
Rating
(28)
Projects
30
37%
Arbitration
0
Overdue
3
10%
Working
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
(545)
Projects
827
62%
Arbitration
33
27% / 45%
Overdue
23
3%
Working
Published: 1 code
9
Developer 9
Rating
(200)
Projects
257
21%
Arbitration
22
50% / 18%
Overdue
0
Loaded
10
Developer 10
Rating
(382)
Projects
493
23%
Arbitration
60
55% / 25%
Overdue
57
12%
Loaded
11
Developer 11
Rating
(1304)
Projects
1732
49%
Arbitration
54
69% / 15%
Overdue
38
2%
Working
12
Developer 12
Rating
(2325)
Projects
2928
63%
Arbitration
124
44% / 26%
Overdue
429
15%
Working
13
Developer 13
Rating
(1)
Projects
1
0%
Arbitration
3
0% / 100%
Overdue
1
100%
Free
14
Developer 14
Rating
(454)
Projects
718
34%
Arbitration
34
71% / 9%
Overdue
22
3%
Free
15
Developer 15
Rating
(40)
Projects
44
59%
Arbitration
2
100% / 0%
Overdue
1
2%
Working
Published: 5 codes
16
Developer 16
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
(3)
Projects
5
20%
Arbitration
1
100% / 0%
Overdue
2
40%
Free
18
Developer 18
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
19
Developer 19
Rating
(510)
Projects
977
74%
Arbitration
27
19% / 67%
Overdue
100
10%
Free
Published: 1 article, 6 codes
20
Developer 20
Rating
(2)
Projects
2
100%
Arbitration
0
Overdue
0
Working
21
Developer 21
Rating
(3)
Projects
1
100%
Arbitration
3
0% / 100%
Overdue
0
Free
22
Developer 22
Rating
(48)
Projects
56
34%
Arbitration
15
27% / 60%
Overdue
1
2%
Working
23
Developer 23
Rating
(6)
Projects
5
0%
Arbitration
4
25% / 75%
Overdue
2
40%
Free
24
Developer 24
Rating
(363)
Projects
436
54%
Arbitration
22
50% / 14%
Overdue
30
7%
Loaded
25
Developer 25
Rating
(73)
Projects
257
53%
Arbitration
16
50% / 38%
Overdue
83
32%
Free
26
Developer 26
Rating
(597)
Projects
690
33%
Arbitration
43
44% / 44%
Overdue
12
2%
Loaded
27
Developer 27
Rating
(512)
Projects
551
53%
Arbitration
13
69% / 15%
Overdue
3
1%
Free
28
Developer 28
Rating
(10)
Projects
14
43%
Arbitration
0
Overdue
3
21%
Free
29
Developer 29
Rating
(31)
Projects
38
53%
Arbitration
2
50% / 50%
Overdue
3
8%
Free
30
Developer 30
Rating
(20)
Projects
26
38%
Arbitration
6
33% / 50%
Overdue
0
Free
31
Developer 31
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
32
Developer 32
Rating
(74)
Projects
84
64%
Arbitration
5
100% / 0%
Overdue
9
11%
Free
33
Developer 33
Rating
(20)
Projects
27
30%
Arbitration
4
50% / 25%
Overdue
4
15%
Working
34
Developer 34
Rating
(2)
Projects
7
0%
Arbitration
3
0% / 33%
Overdue
1
14%
Working
35
Developer 35
Rating
(3)
Projects
3
0%
Arbitration
0
Overdue
0
Free
36
Developer 36
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
37
Developer 37
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
38
Developer 38
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Hello, I have a tradingview buy/sell indicator that also tells when to exit the trades with labels and everything. The indicator is of course manual and I want this to be automated into an MT5 bot. In return for this project you will get the indicator and bot for free! The indicator is simple yet very powerful/profitable. It works on all timeframes and pairs. It tells you when to buy/sell and when to "book profit"
I need a simple bot for opening range. Simple Entry / Exit rules, to be able to customize the timeframe, time zone (entry candle) and other normal settings like size, etc
Nyctrad1 30+ USD
Free link free land free land free land free land free free land free land free things free land free land free land free land free land free land free land free Finch I will do it
Title Professional AI Automation Trading Bot for Forex & Crypto Solution Language Python (preferred) or MQL5 depending on integration requirements. Categories Expert Advisor (EA) for MetaTrader 5 Automated trading strategies AI/ML-based signal generation Risk management automation Required Skills Strong knowledge of MQL5/Python Experience with MetaTrader API integration Machine learning model deployment
BullyMax Pro 30+ USD
"Act as an expert MQL5 algorithmic trading developer. I want you to create a profitable and efficient Expert Advisor for MetaTrader 5. Do not write the code yet; read the following trading rules, analyze them, and ask me any clarifying questions if needed. Timeframe: [e.g.15 minutes Chart] Entry Logic: [e.g.MACD + RSI + REVERSAL PRICE ACTION. Enter buy when Macd line crosses above the signal line ,RSI above 30 and
I want an indicator that displays the risk reward ratio of each chart candle as a sub window histogram. If the candle closes above the open the histogram displays a green bar above zero the size of which is dependant on the size of the RRR. If the candle closes below the open the histogram displays a red bar below zero the size of which is dependant on the size of the RRR. My attempt that does not work is attached
Hi, I am looking for an experienced MQL5 developer to modify an existing, fully functional MetaTrader 5 Expert Advisor (Source code .mq5 Version 2.62 will be provided). Brief Overview of the EA: It executes trades based on 4 custom Supply/Demand levels (R1, R2, S1, S2) which are inputted manually . It uses two custom indicators for confirmation: SPA (Price Action filter) and AMG (Volume/Momentum filter). The code
I really like this platform. I am interested in trading and need funds for it. I enjoy both crypto and forex trading.I"really appreciate this platform. I am keen on trading and am looking for trading funds. I enjoy trading in both cryptocurrency and forex."
Titan Quantum Algo Engine V2 is an advanced MT5 Expert Advisor designed to identify high-probability market opportunities using trend analysis, breakout detection, and intelligent risk management. The EA automatically executes trades, manages stop-loss and take-profit levels, and helps traders maintain disciplined trading with optimized entry and exit strategies
The striker robot 30 - 2000 USD
I would like a trend and pullback strategy for the robot timeframe:15 minutes(m15) or 1 hour(h1) indicators:50 EMA (Exponential Moving Average)/200 EMA/RSI (14) BUY SET UP 1.Confirm The Trend .50 EMA must be above 200 EMA .Price must be above both EMAs 2.Wait for a pullback .Do not buy when the price shoots up. .Wait for the price to come back near the 50 EMA 3.Confirm entry .ENTER BUY WHEN: .A bullish candlestick

Project information

Budget
150 - 300 USD
Deadline
from 3 to 7 day(s)