MT5 EA – Session Break + IFVG + Grid Strategy

MQL5 Asesores Expertos Fórex

Tarea técnica

I am looking for an experienced MQL5 developer to build a fully automated MT5 Expert Advisor based on Session Breaks and Inverted Fair Value Gap (iFVG) logic.

The EA must be coded professionally, optimized for backtesting, and written with clean, organized inputs and modular code.


Core Strategy

The EA should:

  1. Mark previous session highs and lows

  2. Wait for the current session to break the previous session high or low

  3. After the break, wait for the correct Fair Value Gap (FVG)

  4. Once the FVG is invalidated and becomes an Inverted FVG (iFVG), enter the trade at candle close

  5. Manage the trade using stop loss, take profit, optional grid, trailing stop, and filters

The EA must include configurable trade limits:

  • Maximum open trades at one time

  • Maximum trades per session

  • Maximum trades per day


Session Settings

The EA must support 4 sessions and allow all session times to be fully editable.

Default UTC session times:

  • Session 1: 02:00 – 07:00

  • Session 2: 07:00 – 15:00

  • Session 3: 15:00 – 20:00

  • Session 4: 20:00 – 02:00

Required:

  • User can set start hour and minute for each session

  • User can set end hour and minute for each session

  • Session 4 crossing midnight must work correctly

  • Automatic GMT offset detection so session times always remain based on UTC regardless of broker server time

  • Option to choose which sessions are allowed for trading

  • Option to show/hide session drawings

The EA must draw on chart:

  • Session box

  • Session high

  • Session low

  • Session labels

Range type must be wick-to-wick.


Session Break Logic

The EA must compare the current session with the previous session.

Rules:

  • If current session breaks previous session HIGH → only look for SELL setup

  • If current session breaks previous session LOW → only look for BUY setup

A session break should be considered valid if either:

  • Price wicks through the previous session high/low

  • Candle closes through the previous session high/low

After a valid break happens, the EA should only continue to look for the matching FVG setup.


Fair Value Gap (FVG) Logic

The EA must detect both bullish and bearish FVG.

Standard 3-candle FVG definition:

Bullish FVG:

  • Candle 1 high < Candle 3 low

Bearish FVG:

  • Candle 1 low > Candle 3 high

The FVG timeframe must always use the current chart timeframe.

Inputs required:

  • Minimum FVG size in points/pips

  • Maximum FVG age in candles

  • Use only new FVG after session break = true/false


IFVG Entry Logic

SELL Setup:

  1. Previous session high is broken

  2. Look for a bullish FVG

  3. When price closes back down through the bullish FVG, it becomes an IFVG

  4. Enter SELL at candle close

BUY Setup:

  1. Previous session low is broken

  2. Look for a bearish FVG

  3. When price closes back up through the bearish FVG, it becomes an IFVG

  4. Enter BUY at candle close

The entry must happen at candle close only.

Please include an input for:

  • IFVG confirmation method:

    • Wick through FVG

    • Candle close through FVG


Trade Management

The EA must include configurable trade limits.

Inputs:

  • Maximum open trades at one time

  • Maximum trades per session

  • Maximum trades per day

The EA should not open any new trades once any of these limits are reached.


Stop Loss Options

The EA must support 3 stop loss methods.

Option 1 – Current Session High/Low

  • SELL = current session high + extra buffer

  • BUY = current session low - extra buffer

Inputs:

  • Additional SL buffer in pips/points

Option 2 – Fixed Stop Loss

  • Fixed SL in pips

Option 3 – FVG Based Stop Loss

  • SELL = above bullish FVG + extra points

  • BUY = below bearish FVG + extra points

Inputs:

  • FVG SL buffer in pips/points


Take Profit Options

Option 1 – Risk Reward Based

TP must be based on stop loss size.

Examples:

  • 1 = 1:1

  • 2 = 1:2

  • 3 = 1:3

Option 2 – Fixed Take Profit

  • Fixed TP in pips


Grid Recovery System

The EA must include an optional grid system.

Grid levels can be calculated from the ORIGINAL TP distance.

Formula:

Grid Distance = Original TP Distance × Grid Distance Multiplier

Example:

  • Original TP distance = 100 pips

  • Grid Distance Multiplier = 0.5

  • New grid level every 50 pips against trade

Required inputs:

  • Enable Grid

  • Grid Distance Multiplier string

  • Grid Volume Multiplier string

  • Maximum Grid Levels

Volume logic:

  • Each new grid trade volume = previous trade volume × Grid Volume Multiplier

Example:

  • Trade 1 = 0.10

  • Grid 1 = 0.20

  • Grid 2 = 0.40

  • Grid 3 = 0.80


Basket TP Recalculation

When a new grid trade opens, the EA must recalculate a new shared TP for ALL open positions.

Important:

The total combined profit at the new TP must remain equal to the original target profit from the first trade only.

Example:

  • First trade target profit = $100

  • After additional grid positions are opened, move TP closer so total basket profit still equals $100

This shared TP must automatically update every time a new grid level opens.


Trailing Stop

The EA must support a standard trailing stop.

Inputs:

  • Enable trailing stop

  • Trailing trigger in pips

  • Trailing trigger as (%TP)

  • Trailing size (%TP)

  • Trailing step

Logic:

  • When trade reaches trailing trigger, begin trailing SL

  • Only move trailing SL after price moves by the trailing step


Trail at TP Option

The EA must also include a second trailing feature.

Rules:

  • Only if NO grid position was opened

  • If price reaches original TP directly

  • Instead of closing trade, EA can:

    • Remove TP

    • Start trailing stop

Required inputs:

  • Enable Trail At TP

  • Trail At TP Distance

  • Trail At TP Step

If a grid trade has been opened, then this feature should not activate.


Money Management

The EA must support two lot size modes.

Option 1 – Risk %

  • Risk based on stop loss size and account balance/equity

Inputs:

  • Risk %

Option 2 – Fixed Lot

Inputs:

  • Fixed Lot Size

Please ensure proper lot calculation according to broker minimum lot and lot step.


Filters

The EA must include the following optional filters.

1. Session Filter

User can choose which sessions are allowed to trade:

  • Session 1

  • Session 2

  • Session 3

  • Session 4

2. Trend Filter

Optional EMA filter.

Inputs:

  • Enable Trend Filter

  • EMA Period

  • EMA Timeframe

Rules:

  • BUY allowed only if price is above EMA

  • SELL allowed only if price is below EMA

3. Spread Filter

Inputs:

  • Maximum allowed spread in points

If current spread is above limit, no trade.

4. Day Filter

User can enable/disable trading for:

  • Monday

  • Tuesday

  • Wednesday

  • Thursday

  • Friday

Optional Saturday/Sunday support also preferred.

5. News Filter

The EA must support high-impact red-folder news filtering.

Required:

  • Detect High impact and Moderate impact news

  • Option to avoid trading only during the affected session

  • Option to avoid trading for the entire day if red-folder news exists that day

The EA should not open any new trades during blocked sessions or blocked days.


6. Maximum Drawdown Filter

The EA must include a maximum drawdown filter.

Inputs:

  • Maximum allowed drawdown %

Logic:

  • Drawdown must be calculated as a percentage of current account balance

  • If current floating drawdown exceeds the maximum allowed value, the EA must close all the trades

7. Broker Authentication

The EA must include a broker authentication / broker lock system.

Required:

  • EA should only work on specified broker names or server names

  • If broker does not match, EA must stop loading and show an error message

Additional Requirements
  • Clean and organized input panel

  • Input groups/categories

  • Magic number input

  • Comment input

  • Multi-symbol compatible preferred

  • Works on any time frame

  • Must work in Strategy Tester

  • Must work in visual backtest mode

  • EA should avoid duplicate trades

  • Proper error handling

  • No repainting logic

  • Source code (.mq5) required

  • Final compiled .ex5 required

  • Developer should explain where strategy settings can be modified


Deliverables

Please provide:

  • .mq5 source file

  • .ex5 compiled file

  • Instructions for setup and inputs

  • Bug fixes after the release, if any.

Please only apply if you have experience building:

  • IFVG logic

  • Grid systems

  • Advanced MT5 order management



Han respondido

1
Desarrollador 1
Evaluación
(264)
Proyectos
331
29%
Arbitraje
36
28% / 64%
Caducado
10
3%
Ocupado
2
Desarrollador 2
Evaluación
(21)
Proyectos
27
7%
Arbitraje
9
33% / 33%
Caducado
1
4%
Trabaja
3
Desarrollador 3
Evaluación
(12)
Proyectos
18
17%
Arbitraje
3
33% / 67%
Caducado
3
17%
Trabaja
4
Desarrollador 4
Evaluación
(62)
Proyectos
90
29%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabaja
5
Desarrollador 5
Evaluación
(454)
Proyectos
720
34%
Arbitraje
35
71% / 9%
Caducado
22
3%
Libre
6
Desarrollador 6
Evaluación
(46)
Proyectos
60
53%
Arbitraje
7
86% / 0%
Caducado
2
3%
Libre
7
Desarrollador 7
Evaluación
(25)
Proyectos
34
26%
Arbitraje
4
50% / 25%
Caducado
4
12%
Libre
8
Desarrollador 8
Evaluación
(2672)
Proyectos
3407
68%
Arbitraje
77
48% / 14%
Caducado
342
10%
Libre
Ha publicado: 1 ejemplo
9
Desarrollador 9
Evaluación
(49)
Proyectos
74
18%
Arbitraje
30
17% / 53%
Caducado
31
42%
Libre
10
Desarrollador 10
Evaluación
(81)
Proyectos
142
53%
Arbitraje
5
80% / 0%
Caducado
6
4%
Libre
11
Desarrollador 11
Evaluación
(10)
Proyectos
12
0%
Arbitraje
3
33% / 33%
Caducado
1
8%
Libre
12
Desarrollador 12
Evaluación
(8)
Proyectos
9
33%
Arbitraje
5
60% / 40%
Caducado
0
Libre
13
Desarrollador 13
Evaluación
(1)
Proyectos
1
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
14
Desarrollador 14
Evaluación
(169)
Proyectos
180
46%
Arbitraje
3
33% / 33%
Caducado
1
1%
Trabaja
15
Desarrollador 15
Evaluación
(32)
Proyectos
42
43%
Arbitraje
2
100% / 0%
Caducado
4
10%
Libre
16
Desarrollador 16
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
17
Desarrollador 17
Evaluación
(1)
Proyectos
2
0%
Arbitraje
1
0% / 100%
Caducado
1
50%
Libre
Ha publicado: 4 ejemplos
18
Desarrollador 18
Evaluación
(4)
Proyectos
8
0%
Arbitraje
3
33% / 67%
Caducado
4
50%
Libre
19
Desarrollador 19
Evaluación
(365)
Proyectos
441
55%
Arbitraje
22
50% / 14%
Caducado
30
7%
Trabajando
20
Desarrollador 20
Evaluación
(202)
Proyectos
263
22%
Arbitraje
23
52% / 17%
Caducado
0
Trabajando
21
Desarrollador 21
Evaluación
(59)
Proyectos
91
43%
Arbitraje
4
0% / 100%
Caducado
3
3%
Trabaja
22
Desarrollador 22
Evaluación
(13)
Proyectos
22
41%
Arbitraje
8
0% / 50%
Caducado
3
14%
Libre
23
Desarrollador 23
Evaluación
(298)
Proyectos
478
40%
Arbitraje
105
40% / 24%
Caducado
82
17%
Trabajando
Ha publicado: 2 ejemplos
24
Desarrollador 24
Evaluación
(9)
Proyectos
11
55%
Arbitraje
0
Caducado
0
Libre
25
Desarrollador 25
Evaluación
(4)
Proyectos
6
67%
Arbitraje
1
0% / 0%
Caducado
0
Trabaja
26
Desarrollador 26
Evaluación
(12)
Proyectos
17
35%
Arbitraje
5
40% / 20%
Caducado
1
6%
Trabaja
Ha publicado: 6 artículos, 34 ejemplos
27
Desarrollador 27
Evaluación
(16)
Proyectos
20
0%
Arbitraje
10
0% / 80%
Caducado
6
30%
Libre
28
Desarrollador 28
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
29
Desarrollador 29
Evaluación
(27)
Proyectos
43
7%
Arbitraje
18
6% / 78%
Caducado
26
60%
Libre
30
Desarrollador 30
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
31
Desarrollador 31
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
32
Desarrollador 32
Evaluación
(8)
Proyectos
14
21%
Arbitraje
2
0% / 50%
Caducado
3
21%
Trabaja
33
Desarrollador 33
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
34
Desarrollador 34
Evaluación
(271)
Proyectos
553
50%
Arbitraje
57
40% / 37%
Caducado
227
41%
Trabaja
35
Desarrollador 35
Evaluación
(22)
Proyectos
29
34%
Arbitraje
4
50% / 25%
Caducado
5
17%
Trabaja
36
Desarrollador 36
Evaluación
(6)
Proyectos
8
0%
Arbitraje
8
13% / 88%
Caducado
0
Libre
37
Desarrollador 37
Evaluación
(56)
Proyectos
70
59%
Arbitraje
4
75% / 25%
Caducado
1
1%
Trabajando
38
Desarrollador 38
Evaluación
(5)
Proyectos
6
50%
Arbitraje
0
Caducado
1
17%
Libre
39
Desarrollador 39
Evaluación
(44)
Proyectos
51
59%
Arbitraje
2
100% / 0%
Caducado
1
2%
Libre
Ha publicado: 5 ejemplos
40
Desarrollador 40
Evaluación
(14)
Proyectos
18
22%
Arbitraje
1
100% / 0%
Caducado
4
22%
Trabaja
41
Desarrollador 41
Evaluación
(45)
Proyectos
91
13%
Arbitraje
34
26% / 59%
Caducado
37
41%
Libre
42
Desarrollador 42
Evaluación
(16)
Proyectos
35
23%
Arbitraje
4
0% / 50%
Caducado
2
6%
Trabaja
43
Desarrollador 43
Evaluación
(258)
Proyectos
396
28%
Arbitraje
69
19% / 49%
Caducado
121
31%
Trabaja
44
Desarrollador 44
Evaluación
(7)
Proyectos
6
0%
Arbitraje
4
25% / 75%
Caducado
2
33%
Libre
45
Desarrollador 45
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
46
Desarrollador 46
Evaluación
(1)
Proyectos
1
0%
Arbitraje
2
0% / 0%
Caducado
0
Trabaja
47
Desarrollador 47
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
48
Desarrollador 48
Evaluación
(611)
Proyectos
711
33%
Arbitraje
45
49% / 42%
Caducado
14
2%
Trabaja
49
Desarrollador 49
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
50
Desarrollador 50
Evaluación
Proyectos
0
0%
Arbitraje
1
0% / 0%
Caducado
0
Trabaja
51
Desarrollador 51
Evaluación
(1)
Proyectos
2
0%
Arbitraje
0
Caducado
2
100%
Libre
Solicitudes similares
السلام عليكم ورحمة الله وبركاته، ​أبحث عن مبرمج MQL5 خبير ومتمكن جداً لتطوير روبوت تداول (Expert Advisor) محترف لمنصة MetaTrader 5 يعمل باستراتيجية هيدج محددة بصفقة واحدة فقط في كل اتجاه (1 Buy & 1 Sell Max) مع إدارة مخاطر صارمة. ​المواصفات والاستراتيجية المطلوبة: ​1. آلية الهيدج المحدود (Single Position Hedging Limit): ​الحد الأقصى للصفقات: يُسمح للروبوت بفتح صفقة شراء واحدة (1 Buy) وصفقة بيع واحدة (1 Sell) فقط كحد
A good trend predicting indicator is the one which can identify the trend change as soon as it happens on the chart. when a new candle is formed it should tell whether its going to go up or down. I have already seen a lot of repainting trend predictors so if your indicator is repainting then please don't bother contacting. I would like to see the demo version and then if satisfied , I would want the source code too
Looking for A verifiable, disciplined XAUUSD analyst with controlled drawdown, consistent stop-loss use, clear communication and the capacity to service a live community. To send daily London and New York signals exclusively in my channel on Telegram
Hey, I am looking for an experienced MQL5 developer to build a price-action EA for MT5 - XAUUSD and EURUSD on the 30M timeframe. Features required: Pattern recognition based on 3-candle structures and wick ratios. Proportional dynamic lot sizing based on account equity tiers. Time filters, Friday hard-close safeguard, and MT5 native calendar news filter (CPI/PPI lockout). FTMO risk controls (max spread, daily
Platform MetaTrader 5 (MT5) MQL5 Source Code Required Compatible with Exness MT5 both standard and cent accounts/ICMarket accounts Works on EUR/USD only (initial version) ⸻ Objective Develop a fully automated AI Expert Advisor based on ICT Smart Money Concepts (SMC). The EA must only execute high-probability trades that satisfy all required conditions before opening a position. The EA must avoid overtrading and
Bonjour, je recherche un développeur MQL5 expérimenté pour créer un Expert Advisor pour MetaTrader 5 basé sur une stratégie de trading intégrant des principes de gestion des risques rigoureux et d'intelligence financière. Le robot doit être capable de gérer plusieurs paires de devises et d'optimiser automatiquement les entrées et sorties en fonction de conditions de marché prédéfinies."
MT4/MT5 HFT EA us30 30 - 3000 USD
Hello everybody, I'm looking for an experienced MQL4/MQL5 developer to optimize a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5. The EA performs consistently and profitably on demo accounts, but when it is run on Raw and Standard live accounts under what appear to be the same trading conditions, it begins generating losses. I do not have the original source code (.mq4/.mq5); I only have the
I'm looking for an experienced NinjaTrader 8 (C#) developer to build a fully automated futures trading strategy. Please apply only if you have proven experience developing and testing NinjaTrader strategies. Project Overview Develop a fully automated NinjaTrader 8 strategy. Designed for Apex funded and evaluation accounts. Primary instruments: NQ/MNQ Futures (with flexibility to support other futures later). Trading
Hello I need to purchase the source code of an already built profitable mt5 EA with proven track recordIf you have something similar and you are open to selling the source code please apply to this post Please note I am not looking for a dev to build the product from scratch , but need something that is already built and have at least one year worth of track record
I need an Expert Advisor for MT5 on XAUUSD 1min timeframe using SMC concepts. STRATEGY RULES: SELL: 1. Identify previous day High/Low as liquidity 2. Entry only during London-NY session: 15:00-19:00 GMT+3 or broker clock. 3. If price sweeps previous day High and closes back below it 4. Check for bearish 1min FVG below sweep candle 5. Wait for BOS - lower low 6. Entry: Sell/buy at 50% of the FVG 7. SL: 10 pips above

Información sobre el proyecto

Presupuesto
300 - 1000 USD
Plazo límite de ejecución
a 14 día(s)