MT5 AlgoTrade Manager based on Time and Daily Profit/Loss

MQL5 Experten

Spezifikation

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.

Bewerbungen

1
Entwickler 1
Bewertung
(283)
Projekte
354
29%
Schlichtung
37
27% / 65%
Frist nicht eingehalten
10
3%
Beschäftigt
2
Entwickler 2
Bewertung
(111)
Projekte
183
25%
Schlichtung
25
16% / 76%
Frist nicht eingehalten
16
9%
Frei
3
Entwickler 3
Bewertung
(436)
Projekte
643
53%
Schlichtung
35
63% / 20%
Frist nicht eingehalten
6
1%
Arbeitet
4
Entwickler 4
Bewertung
(17)
Projekte
21
19%
Schlichtung
5
40% / 40%
Frist nicht eingehalten
0
Frei
5
Entwickler 5
Bewertung
(62)
Projekte
90
29%
Schlichtung
24
13% / 58%
Frist nicht eingehalten
7
8%
Arbeitet
6
Entwickler 6
Bewertung
(19)
Projekte
25
36%
Schlichtung
3
33% / 67%
Frist nicht eingehalten
3
12%
Arbeitet
7
Entwickler 7
Bewertung
(620)
Projekte
723
33%
Schlichtung
46
48% / 41%
Frist nicht eingehalten
14
2%
Überlastet
8
Entwickler 8
Bewertung
(13)
Projekte
22
41%
Schlichtung
8
0% / 50%
Frist nicht eingehalten
3
14%
Frei
9
Entwickler 9
Bewertung
(71)
Projekte
103
20%
Schlichtung
6
0% / 83%
Frist nicht eingehalten
3
3%
Frei
10
Entwickler 10
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
11
Entwickler 11
Bewertung
(319)
Projekte
571
35%
Schlichtung
83
31% / 45%
Frist nicht eingehalten
206
36%
Frei
12
Entwickler 12
Bewertung
(180)
Projekte
194
46%
Schlichtung
4
50% / 25%
Frist nicht eingehalten
1
1%
Beschäftigt
13
Entwickler 13
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
14
Entwickler 14
Bewertung
(261)
Projekte
307
76%
Schlichtung
13
77% / 0%
Frist nicht eingehalten
5
2%
Arbeitet
15
Entwickler 15
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 2 Beispiele
16
Entwickler 16
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
17
Entwickler 17
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
18
Entwickler 18
Bewertung
(472)
Projekte
491
75%
Schlichtung
6
67% / 17%
Frist nicht eingehalten
0
Arbeitet
19
Entwickler 19
Bewertung
(83)
Projekte
96
31%
Schlichtung
9
22% / 56%
Frist nicht eingehalten
5
5%
Arbeitet
20
Entwickler 20
Bewertung
(16)
Projekte
30
40%
Schlichtung
3
33% / 67%
Frist nicht eingehalten
7
23%
Arbeitet
21
Entwickler 21
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
22
Entwickler 22
Bewertung
(19)
Projekte
22
18%
Schlichtung
9
33% / 44%
Frist nicht eingehalten
3
14%
Arbeitet
Veröffentlicht: 1 Beispiel
23
Entwickler 23
Bewertung
(398)
Projekte
515
23%
Schlichtung
60
57% / 25%
Frist nicht eingehalten
60
12%
Arbeitet
24
Entwickler 24
Bewertung
(12)
Projekte
25
24%
Schlichtung
2
50% / 50%
Frist nicht eingehalten
2
8%
Frei
25
Entwickler 25
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
26
Entwickler 26
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 3 Beispiele
27
Entwickler 27
Bewertung
(7)
Projekte
6
0%
Schlichtung
4
25% / 75%
Frist nicht eingehalten
2
33%
Frei
28
Entwickler 28
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
29
Entwickler 29
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
30
Entwickler 30
Bewertung
(161)
Projekte
208
61%
Schlichtung
10
80% / 0%
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
31
Entwickler 31
Bewertung
(52)
Projekte
65
40%
Schlichtung
15
27% / 60%
Frist nicht eingehalten
1
2%
Arbeitet
32
Entwickler 32
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
33
Entwickler 33
Bewertung
(3)
Projekte
9
67%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
34
Entwickler 34
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
# 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

Projektdetails

Budget
30 USD
Ausführungsfristen
bis 300 Tag(e)

Kunde

Veröffentlichte Aufträge1
Anzahl der Schlichtungen0