XAUUSD_HedgeReplace_EA

MQL5 Эксперты Forex

Техническое задание

Complete Trading Strategy Summary for XAUUSD (Gold)
I want make a trading EA using MQL5 code 
I want to run that in MT5 

A. Initial Setup & Order Placement

Symbol: XAUUSD / XAUUSDm / XAUUSDc

On EA Start: Calculate and place two pending orders:

BUY STOP: Price = Ask + 0.125 | Lot Size = 0.01

SELL STOP: Price = Bid - 0.125 | Lot Size = 0.01

Magic Number: The EA will use a unique identifier to manage only its own trades and orders.

B. Core "Hedge & Replace" Logic

If BUY STOP is triggered:

Cancel the pending SELL STOP order.

Place a new SELL STOP at the original price level (Initial Price - 0.125) with the next Fibonacci lot size.

If SELL STOP is triggered:

Cancel the pending BUY STOP order.

Place a new BUY STOP at the original price level (Initial Price + 0.125) with the next Fibonacci lot size.

Fibonacci Lot Sequence: 0.01 -> 0.02 -> 0.03 -> 0.05 -> 0.08 -> 0.13 -> 0.21 -> 0.34 -> 0.55 -> 0.89 -> 1.44 -> 2.33 -> 3.77 -> 6.10 -> 9.87 -> 15.97 -> 25.84 -> 41.81 -> 67.65...

C. Exit Conditions & Risk Management

1. Dynamic Profit Target (Close All & Restart Cycle)
The EA will continuously monitor the total volume of all open positions and the total equity profit.

SMALL POSITIONS (Total Lots >= 0.01 and <= 0.10):

Profit Target: $0.20

Trailing Stop System
SMALL POSITIONS (Total Lots >= 0.01 and <= 0.10):
Trailing Stop activates once profit ≥ $0.20
"If profit drops $0.10 from peak, EA closes all trades"

MEDIUM POSITIONS (Total Lots > 0.10 and <= 0.30):

Profit Target: $3

Trailing Stop System
MEDIUM POSITIONS (Total Lots > 0.10 and <= 0.30):
Trailing Stop activates once profit ≥ $3
"If profit drops $1 from peak, EA closes all trades"

LARGE POSITIONS (Total Lots > 0.30):

Profit Target: $6

Trailing Stop System
LARGE POSITIONS (Total Lots > 0.30):
Trailing Stop activates once profit ≥ $6
"If profit drops $2 from peak, EA closes all trades"

•“If trailing stop is started close all  opposite direction trades (meaning close all Los position trades)
Hold profitable trades until trailing stop hit.
Close all and restart from beginning step.”

Action: If the total equity profit reaches or exceeds the target for the current volume bracket, the EA will close all open trades, delete all pending orders, and restart the cycle from the beginning (Step A).

2. Daily Profit Target (Stop Trading for the Day)

The EA will track the net profit gained today.

If the total profit for the day reaches $50.00, the EA will close all trades, delete all orders, and stop trading until the next day.

3. Maximum Drawdown (Stop Trading & Reset)

The EA will monitor the account balance and equity.

If the drawdown reaches 30% of the initial balance ((Balance - Equity) / Balance >= 0.30), it will close all trades, delete all orders, and stop trading (or send an alert, depending on your preference).

4. 19th Level Stop Loss (Emergency Exit & Restart)

The EA will track the progression of the Fibonacci sequence.

If the lot size for a new pending order reaches the 19th level in the sequence (67.65 lots), a hard stop loss will be set for that specific trade.

For a BUY trade, the Stop Loss will be placed at Entry Price - 0.250.

For a SELL trade, the Stop Loss will be placed at Entry Price + 0.250.

If this hard Stop Loss is hit, the EA will close all open trades, delete all pending orders, and restart the cycle from the beginning (Step A).

Points for Your Final Confirmation:
The Fibonacci sequence is correctly listed up to the 19th level.

The profit targets are based on total equity profit and total lot volume of all open trades.

The "restart" logic is the same for the Dynamic Profit Target and the 19th Level SL: close everything and start fresh with 0.01 lot BUY/SELL stops.

The Daily Target and Max Drawdown are more final and will halt trading completely for the day or until manual reset.

Откликнулись

1
Разработчик 1
Оценка
(45)
Проекты
46
24%
Арбитраж
34
9% / 85%
Просрочено
10
22%
Свободен
1
Разработчик 1
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
2
Разработчик 2
Оценка
(55)
Проекты
80
23%
Арбитраж
24
13% / 58%
Просрочено
7
9%
Работает
2
Разработчик 2
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
3
Разработчик 3
Оценка
(68)
Проекты
124
40%
Арбитраж
17
47% / 53%
Просрочено
31
25%
Загружен
4
Разработчик 4
Оценка
(98)
Проекты
106
28%
Арбитраж
3
33% / 33%
Просрочено
2
2%
Работает
5
Разработчик 5
Оценка
(16)
Проекты
19
21%
Арбитраж
0
Просрочено
1
5%
Свободен
6
Разработчик 6
Оценка
(77)
Проекты
240
73%
Арбитраж
7
100% / 0%
Просрочено
1
0%
Свободен
7
Разработчик 7
Оценка
(5)
Проекты
10
30%
Арбитраж
2
0% / 100%
Просрочено
1
10%
Работает
8
Разработчик 8
Оценка
(15)
Проекты
23
9%
Арбитраж
7
29% / 57%
Просрочено
2
9%
Свободен
9
Разработчик 9
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
10
Разработчик 10
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
11
Разработчик 11
Оценка
(304)
Проекты
544
35%
Арбитраж
77
31% / 42%
Просрочено
196
36%
Загружен
12
Разработчик 12
Оценка
(31)
Проекты
41
41%
Арбитраж
2
100% / 0%
Просрочено
4
10%
Свободен
13
Разработчик 13
Оценка
(365)
Проекты
507
40%
Арбитраж
159
17% / 74%
Просрочено
99
20%
Загружен
14
Разработчик 14
Оценка
(24)
Проекты
30
13%
Арбитраж
10
0% / 50%
Просрочено
8
27%
Загружен
15
Разработчик 15
Оценка
(294)
Проекты
469
39%
Арбитраж
100
41% / 23%
Просрочено
77
16%
Загружен
Опубликовал: 2 примера
16
Разработчик 16
Оценка
(1)
Проекты
1
0%
Арбитраж
0
Просрочено
0
Работает
17
Разработчик 17
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
18
Разработчик 18
Оценка
(270)
Проекты
552
49%
Арбитраж
58
40% / 36%
Просрочено
228
41%
Работает
19
Разработчик 19
Оценка
Проекты
1
0%
Арбитраж
1
0% / 0%
Просрочено
0
Свободен
20
Разработчик 20
Оценка
(5)
Проекты
6
0%
Арбитраж
0
Просрочено
0
Свободен
21
Разработчик 21
Оценка
(175)
Проекты
225
20%
Арбитраж
19
42% / 16%
Просрочено
0
Загружен
Похожие заказы
Greetings, I'm seeking a price quote for the following EA description. 1) Short positions are opened after trades that have closed below the open of the trade. 2) Long positions are opened after trades that have closed above the open of the trade. 3) The base lot size plus the spread is applied for every trade that opens after the take profit has been reached. 4) Double the lot size of the previous trade plus
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I need an MQL5 indicator that identifies reversals without repainting or placing signals with an offset. The goal is to minimize lag and reduce whipsaw trades. Desired results are similar to the attached image. Requirements: - No repainting - No signal offset - Emphasis on reducing lag - MQL5 compatible - Clear, concise code If you have the expertise to create a reliable, high-performance indicator, let's discuss
I'm looking for a skilled trader/developer to share a proven scalping strategy on M1-M5 timeframes without using Martingale, Grid trading, or Hedge. Requirements: - Minimum trade duration: 2 minutes - Lot size: <20 - Proof of skill: Provide MT4/MT5 trade history report (PDF/HTML) - No High Frequency Trades - GMT+1 timezone, flexible hours - Price negotiable, performance-based compensation possible If you're a
MT5 30 - 50 USD
I'm looking for an experienced MQL5 developer to help with backtesting, optimization, and VPS setup for a prop firm EA on XAUUSD (Gold). Scope of work - Backtest and optimize using high-quality tick data from Dukascopy or Polygon (2020–2025) - Perform Monte Carlo and Walk-Forward testing to optimize parameters like ATR multipliers and risk % - VPS installation and configuration for continuous MT5 operation - Apply
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I have an indicator i need automated i use it manually and it plots arrows. Can you automate it for my Ninjatrader8? Do you need to see file? Expert Ninjatrader Developer can Bid for this project
I want to create an SMC bot base on ICT and Market structure,the bot must be able to keep adding on more positions while started.The bot must have a perfect risk management
Hi, im not looking into developing a new EA. I am looking into purchasing an existing EA that can deliver such results like: mq5 source, 4‑year backtest (2022‑2025) report, equity curve, trade list, strategy description, and 1‑month demo access. Please without concrete prove of experience functioning existing EA working perfectly and as contained on my description, then we can't strike a deal. Thank you

Информация о проекте

Бюджет
30 - 50 USD
Сроки выполнения
до 10 дн.

Заказчик

Размещено заказов4
Количество арбитражей0