MT5 AlgoTrade Manager based on Time and Daily Profit/Loss

MQL5 Эксперты

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

Create a fully automated MetaTrader 5 (MT5) Expert Advisor (EA) in MQL5 based on the following exact trading strategy.

STRATEGY NAME:
Previous Day High/Low Daily Breakout Strategy

INSTRUMENTS:
1. XAUUSD — fixed lot size: 0.01
2. EURUSD — fixed lot size: 0.10

TIMEZONE:
All strategy times must be calculated in Indian Standard Time (IST / UTC+5:30).
The broker's server time may be different, so the EA must correctly convert broker/server time to IST. Do NOT assume broker server time is IST.

TIMEFRAME:
Use DAILY (D1) candles for determining the previous day's high and low.

CORE LOGIC:

1. At the end of each completed daily candle, identify:
   - Previous Day High (PDH)
   - Previous Day Low (PDL)

2. BUY CONDITION:
   A valid bullish setup occurs only when a completed daily candle:
   - breaks above the previous day's high, AND
   - CLOSES above the previous day's high.

   Example:
   Previous Day High = 2650
   Current daily candle trades above 2650 and finally closes at 2660.
   This is a valid BUY signal.

3. SELL CONDITION:
   A valid bearish setup occurs only when a completed daily candle:
   - breaks below the previous day's low, AND
   - CLOSES below the previous day's low.

   Example:
   Previous Day Low = 2630
   Current daily candle trades below 2630 and finally closes at 2620.
   This is a valid SELL signal.

IMPORTANT:
A wick/sweep alone is NOT a signal.

If price goes above the previous day's high but the daily candle closes back below the high:
→ NO BUY.

If price goes below the previous day's low but the daily candle closes back above the low:
→ NO SELL.

4. INSIDE/NO-BREAK CONDITION:
If the daily candle does not break and close outside the previous day's high/low:
→ NO TRADE.

Continue waiting for a future valid breakout and daily close.

5. ENTRY TIME:
After a valid daily breakout-and-close signal is confirmed, execute the trade at 04:00 AM IST on the next eligible trading day.

BUY:
Valid daily close above PDH → BUY at 04:00 IST.

SELL:
Valid daily close below PDL → SELL at 04:00 IST.

The EA must not enter before the signal candle has completely closed.

6. EXIT TIME:
Every position opened by this strategy must be closed automatically at exactly 06:00 PM IST on the same trading day.

There is NO overnight holding.

7. STOP LOSS:
Do NOT use a normal fixed stop loss.

8. TAKE PROFIT:
Do NOT use a fixed take-profit level.

The only normal exit is the mandatory 06:00 PM IST exit.

9. LOT SIZE:
XAUUSD = exactly 0.01 lot.
EURUSD = exactly 0.10 lot.

Do not automatically increase or decrease the lot size based on balance, equity, volatility, or previous results.

10. MULTIPLE TRADES:
Prevent duplicate entries for the same daily breakout signal.

Only one position per symbol should be opened for each valid signal.

If XAUUSD has a valid signal, manage XAUUSD independently.
If EURUSD has a valid signal, manage EURUSD independently.

11. SIGNAL VALIDATION:
The EA must use CLOSED daily candles only.

Never use the currently forming D1 candle to generate a signal.

Avoid all forms of:
- look-ahead bias
- repainting
- future-data usage
- duplicate signals

12. WEEKENDS / MARKET CLOSURES:
Do not attempt to open trades when the market is closed.

If 04:00 IST occurs on a weekend or a day when the symbol cannot be traded, handle the signal safely according to the next valid trading session.

Do not create duplicate trades because of a market closure.

13. TIME CONVERSION:
Implement robust IST conversion.

The strategy's 04:00 entry and 18:00 exit must always represent Indian Standard Time (UTC+5:30), regardless of the broker's server timezone.

Do not use local computer time as the strategy clock.

14. SAFETY / EMERGENCY PROTECTION:
Although the strategy itself does not use a normal stop loss, add optional account-level emergency protection as an input parameter.

Example inputs:
- EnableEmergencyEquityProtection = true/false
- MaxDailyLossPercent
- MaxAccountDrawdownPercent

These protections must be optional and clearly separated from the original strategy rules.

15. INPUT PARAMETERS:
Create editable MT5 inputs for:
- XAUUSD lot size (default 0.01)
- EURUSD lot size (default 0.10)
- Entry hour IST (default 04)
- Entry minute IST (default 00)
- Exit hour IST (default 18)
- Exit minute IST (default 00)
- Magic Number
- Maximum spread filter
- Emergency equity protection ON/OFF
- Maximum daily loss
- Maximum account drawdown

16. SPREAD FILTER:
Add an optional maximum-spread filter.

If the spread is above the configured maximum at the 04:00 IST entry:
→ Do not blindly enter at an unreasonable spread.

Log the reason clearly.

17. CHART DISPLAY:
Display useful information on the MT5 chart:
- Previous Day High
- Previous Day Low
- BUY signal
- SELL signal
- Entry price
- Exit price
- Signal date
- Entry time
- Exit time
- Current strategy status

Use clear labels and lines.

18. LOGGING:
The EA must write detailed messages to the Experts/Journal log for:
- daily candle confirmation
- PDH/PDL calculation
- valid BUY signal
- valid SELL signal
- rejected sweep
- no-trade condition
- scheduled entry
- executed entry
- rejected entry
- scheduled exit
- executed exit
- spread rejection
- market-closed condition
- emergency protection

19. BACKTESTING:
Make the EA fully compatible with MT5 Strategy Tester.

It must support:
- historical backtesting
- visual testing
- real tick testing where available
- adjustable date range

Display or log:
- total trades
- winning trades
- losing trades
- win rate
- gross profit
- gross loss
- net profit
- maximum drawdown
- average profit/loss
- profit factor

Do NOT claim or assume a specific win rate or profitability.

20. IMPORTANT STRATEGY RULE:
The algorithm must follow the strategy exactly.

DO NOT add:
- EMA
- RSI
- MACD
- Bollinger Bands
- Fibonacci
- order blocks
- liquidity indicators
- news filters
- additional technical indicators

unless they are added later as separate optional features.

The core strategy is ONLY:

PREVIOUS DAY HIGH/LOW
+
DAILY CANDLE BREAK
+
DAILY CANDLE CLOSE OUTSIDE THE LEVEL
+
NEXT ELIGIBLE DAY 04:00 IST ENTRY
+
06:00 PM IST EXIT
+
NO NORMAL STOP LOSS
+
NO FIXED TAKE PROFIT

Before providing the final MQL5 code, explain the exact signal and time-conversion logic briefly, then provide clean, compilable MQL5 code.

The code must be production-quality, modular, commented, and designed to avoid duplicate orders and look-ahead bias.

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

1
Разработчик 1
Оценка
(283)
Проекты
354
29%
Арбитраж
37
27% / 65%
Просрочено
10
3%
Загружен
2
Разработчик 2
Оценка
(111)
Проекты
183
25%
Арбитраж
25
16% / 76%
Просрочено
16
9%
Свободен
3
Разработчик 3
Оценка
(436)
Проекты
643
53%
Арбитраж
35
63% / 20%
Просрочено
6
1%
Работает
4
Разработчик 4
Оценка
(17)
Проекты
21
19%
Арбитраж
5
40% / 40%
Просрочено
0
Свободен
5
Разработчик 5
Оценка
(62)
Проекты
90
29%
Арбитраж
24
13% / 58%
Просрочено
7
8%
Работает
6
Разработчик 6
Оценка
(19)
Проекты
25
36%
Арбитраж
3
33% / 67%
Просрочено
3
12%
Работает
7
Разработчик 7
Оценка
(620)
Проекты
723
33%
Арбитраж
46
48% / 41%
Просрочено
14
2%
Занят
8
Разработчик 8
Оценка
(13)
Проекты
22
41%
Арбитраж
8
0% / 50%
Просрочено
3
14%
Свободен
9
Разработчик 9
Оценка
(71)
Проекты
103
20%
Арбитраж
6
0% / 83%
Просрочено
3
3%
Свободен
10
Разработчик 10
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
11
Разработчик 11
Оценка
(319)
Проекты
571
35%
Арбитраж
83
31% / 45%
Просрочено
206
36%
Свободен
12
Разработчик 12
Оценка
(180)
Проекты
194
46%
Арбитраж
4
50% / 25%
Просрочено
1
1%
Загружен
13
Разработчик 13
Оценка
(1)
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 1 пример
14
Разработчик 14
Оценка
(261)
Проекты
307
76%
Арбитраж
13
77% / 0%
Просрочено
5
2%
Работает
15
Разработчик 15
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 2 примера
16
Разработчик 16
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
17
Разработчик 17
Оценка
(1)
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
18
Разработчик 18
Оценка
(472)
Проекты
491
75%
Арбитраж
6
67% / 17%
Просрочено
0
Работает
19
Разработчик 19
Оценка
(83)
Проекты
96
31%
Арбитраж
9
22% / 56%
Просрочено
5
5%
Работает
20
Разработчик 20
Оценка
(16)
Проекты
30
40%
Арбитраж
3
33% / 67%
Просрочено
7
23%
Работает
21
Разработчик 21
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
22
Разработчик 22
Оценка
(19)
Проекты
22
18%
Арбитраж
9
33% / 44%
Просрочено
3
14%
Работает
Опубликовал: 1 пример
23
Разработчик 23
Оценка
(398)
Проекты
515
23%
Арбитраж
60
57% / 25%
Просрочено
60
12%
Работает
24
Разработчик 24
Оценка
(12)
Проекты
25
24%
Арбитраж
2
50% / 50%
Просрочено
2
8%
Свободен
25
Разработчик 25
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
26
Разработчик 26
Оценка
(1)
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 3 примера
27
Разработчик 27
Оценка
(7)
Проекты
6
0%
Арбитраж
4
25% / 75%
Просрочено
2
33%
Свободен
28
Разработчик 28
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
29
Разработчик 29
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
30
Разработчик 30
Оценка
(161)
Проекты
208
61%
Арбитраж
10
80% / 0%
Просрочено
0
Свободен
Опубликовал: 1 пример
31
Разработчик 31
Оценка
(52)
Проекты
65
40%
Арбитраж
15
27% / 60%
Просрочено
1
2%
Работает
32
Разработчик 32
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 1 пример
33
Разработчик 33
Оценка
(3)
Проекты
9
67%
Арбитраж
0
Просрочено
0
Работает
34
Разработчик 34
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
Похожие заказы
# SNRZ BOT — SESSION PROGRESS LOG Last updated: 2026-09-16 (local late-evening session) ## SAN BOT (new — cloned from SNRZ) - `MQL5\Experts\AutomatedOrderBot_SAN.mq5` / `.ex5` — v1.0, compiled 0 errors/0 warnings - Signal source: custom indicator "SAN" (InpSANName, buy buf 0 / sell buf 1, target bar 1), same SNRZ-style read, MA fallback if missing - Magic number 234567 (separate from SNRZ 123456 so both bots can run
Multi-Asset EA (XAUUSD / FRA40) with Time Filters, High-Impact News Avoidance, Advanced Risk/Lot Sizing, and H1 Breakout Strategy 1. RISK SETTINGS * Max Daily Loss Limit: (bool) Toggle true/false. If true, input double for max loss in currency (e.g., $500). If hit, close all positions and stop trading until next day. * Lot Sizing Mode: Dropdown menu: 1. Fixed Lots (e.g. 0.10); 2. Percentage Risk (%) based on Account
Subject: Looking for an Experienced MQL Developer for Long-Term Collaboration (Mechanical Strategy) Hello everyone, I am reposting my request from last year. Due to work commitments, I couldn't dedicate time to this project back then, but now I am fully ready to move forward. I am looking for a highly experienced, verified MQL4/MQL5 programmer to automate my trading strategy. About the project: Rule-based &
Should be as it but no alarms, also we need to add a deep search so he can see all the preves candles and a memory function so its not slowing down the indicator. for higher time frames daily 4h 1h around 365 days and for lower time frames we do up to 20k bars but both flexible so i can change it later. the memory is important so the indicator is not always recalculating everything when a new candle shows especially
Creating a bot using the Parabolic indicator with a simple interface.. I want a bot that uses the Parabolic SAR indicator only, with these orders attached to it. Boot name : HEMIN .FX Magic number : 000000 …………………………………………………. Trade behavior : regular OR inverse OR only long "buy" OR only short "sell" Timeframe : ………… Period: ……… ………………………………………………….. Lot size : ……………… Break even in points : …
I am looking for an experienced MQL5 EA developer to develop an MT5 EA by the observable trading behaviour from a supplied live XAUUSD trade history . The EA appears to use a simple grid/recovery/hedging strategy with alternating BUY/SELL positions and progressive lot sizes. I need the developer to Develop the EA for MT5 / XAUUSD . Reproduce the observed entry, grid/add-on, recovery/hedging, lot progression and
Project: Fix & Schedule My Dual Fibo Standard Fibonacci Bot I have an existing MQ4 expert advisor called "Dual Fibo Standard Fibonacci". It needs to process 1,000 clients. Right now it runs blindly with no schedule and takes way too long. I need you to optimize it so it runs like a professional business with a 50-100 batch printed stamp copy progress log. Please reply with your numbers for this simple layout: * Phase
Gold robot 30+ USD
Yes. This screen is asking you to write the Requirements Specification for your Gold/XAUUSD trading robot. Since you want your DEEPTHINK X10 institutional-style MT5 system , use this ready-to-paste specification: DEEPTHINK X10 GOLD ROBOT – MT5 EXPERT ADVISOR REQUIREMENTS Develop an advanced MetaTrader 5 Expert Advisor (EA) for XAUUSD (Gold) scalping based on a multi-factor DEEPTHINK X10 trading framework. 1. MARKET -
Need an MQL5 Expert Advisor for MT5 that automates my manual trading strategy. Entry logic: Enter only when trend direction, support/resistance level, and RSI all align (Triple Confirmation). Extra confluence from Smart Money Concepts (order blocks, Fair Value Gaps, BOS/CHoCH). Risk rules: 1% risk per trade, minimum 1:2 risk-reward, stop-loss at structure levels (not fixed pips). Must-haves: Works on Islamic
I am looking for a developer experienced in EAs, MT5 and trade management optimization to help me add an intelligent early-exit system to my existing XAUUSD trading robot. The EA is already fully functional and performs best on the M15 timeframe. The entry strategy, BUY/SELL logic, sessions and core structure are already implemented. The work should focus exclusively on adding early exits for trades that are

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

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

Заказчик

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