MT5 EA – Session Break + IFVG + Grid Strategy

MQL5 Esperti Forex

Specifiche

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



Con risposta

1
Sviluppatore 1
Valutazioni
(253)
Progetti
316
29%
Arbitraggio
34
26% / 65%
In ritardo
10
3%
Gratuito
2
Sviluppatore 2
Valutazioni
(19)
Progetti
23
9%
Arbitraggio
6
33% / 50%
In ritardo
1
4%
Caricato
3
Sviluppatore 3
Valutazioni
(10)
Progetti
14
7%
Arbitraggio
3
33% / 67%
In ritardo
1
7%
In elaborazione
4
Sviluppatore 4
Valutazioni
(60)
Progetti
87
29%
Arbitraggio
24
13% / 58%
In ritardo
7
8%
In elaborazione
5
Sviluppatore 5
Valutazioni
(446)
Progetti
705
34%
Arbitraggio
34
71% / 9%
In ritardo
22
3%
Gratuito
6
Sviluppatore 6
Valutazioni
(45)
Progetti
57
51%
Arbitraggio
6
83% / 0%
In ritardo
1
2%
In elaborazione
7
Sviluppatore 7
Valutazioni
(25)
Progetti
33
24%
Arbitraggio
3
33% / 33%
In ritardo
4
12%
In elaborazione
8
Sviluppatore 8
Valutazioni
(2655)
Progetti
3373
68%
Arbitraggio
77
48% / 14%
In ritardo
342
10%
Gratuito
Pubblicati: 1 codice
9
Sviluppatore 9
Valutazioni
(49)
Progetti
74
18%
Arbitraggio
30
17% / 53%
In ritardo
31
42%
Gratuito
10
Sviluppatore 10
Valutazioni
(81)
Progetti
139
52%
Arbitraggio
5
80% / 0%
In ritardo
6
4%
In elaborazione
11
Sviluppatore 11
Valutazioni
(7)
Progetti
8
0%
Arbitraggio
2
0% / 50%
In ritardo
1
13%
In elaborazione
12
Sviluppatore 12
Valutazioni
(8)
Progetti
9
33%
Arbitraggio
5
60% / 40%
In ritardo
0
Gratuito
13
Sviluppatore 13
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
14
Sviluppatore 14
Valutazioni
(143)
Progetti
152
41%
Arbitraggio
3
33% / 33%
In ritardo
1
1%
In elaborazione
15
Sviluppatore 15
Valutazioni
(32)
Progetti
42
43%
Arbitraggio
2
100% / 0%
In ritardo
4
10%
Gratuito
16
Sviluppatore 16
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
17
Sviluppatore 17
Valutazioni
(1)
Progetti
2
0%
Arbitraggio
1
0% / 100%
In ritardo
1
50%
Gratuito
Pubblicati: 4 codici
18
Sviluppatore 18
Valutazioni
(4)
Progetti
8
0%
Arbitraggio
3
33% / 67%
In ritardo
4
50%
Gratuito
19
Sviluppatore 19
Valutazioni
(362)
Progetti
434
54%
Arbitraggio
20
55% / 15%
In ritardo
30
7%
In elaborazione
20
Sviluppatore 20
Valutazioni
(188)
Progetti
244
20%
Arbitraggio
22
50% / 18%
In ritardo
0
In elaborazione
21
Sviluppatore 21
Valutazioni
(58)
Progetti
90
43%
Arbitraggio
4
0% / 100%
In ritardo
3
3%
In elaborazione
22
Sviluppatore 22
Valutazioni
(10)
Progetti
19
42%
Arbitraggio
7
0% / 57%
In ritardo
3
16%
In elaborazione
23
Sviluppatore 23
Valutazioni
(296)
Progetti
475
40%
Arbitraggio
105
40% / 24%
In ritardo
80
17%
Occupato
Pubblicati: 2 codici
24
Sviluppatore 24
Valutazioni
(6)
Progetti
7
71%
Arbitraggio
0
In ritardo
0
Gratuito
25
Sviluppatore 25
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
26
Sviluppatore 26
Valutazioni
(3)
Progetti
5
20%
Arbitraggio
2
50% / 0%
In ritardo
0
In elaborazione
Pubblicati: 1 articolo, 24 codici
27
Sviluppatore 27
Valutazioni
(16)
Progetti
20
0%
Arbitraggio
10
0% / 80%
In ritardo
6
30%
Gratuito
28
Sviluppatore 28
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
29
Sviluppatore 29
Valutazioni
(27)
Progetti
43
7%
Arbitraggio
18
6% / 78%
In ritardo
26
60%
Gratuito
30
Sviluppatore 30
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
IF ANYONE IS INTERESTED IN GETTING ANY KIND OF CUSTOM BOT FOR TRADING I WILL ADD THE STRATEGIES ACCORDING TO YOUR CHOICE MINE BEST BOT IS SCALPING AND HEDGING BOT YOU CAN CONTACT ME FOR SERVICES
I trade ES futures on the Ninja trader platform. I recently came across an indicator and wanted to check with you if you can build a similar indicator that works on Orenko or Ninja renko charts, and also combines support and resistance untouched. Below is the indicator, which will tell you market chop and to avoid. I want to include a support and resistance bar on the chart when there is no chop please let me know
Project Description: I have a fully working Pine Script for TradingView called MFHA 3-Step Market Structure Strategy V2 . I need it converted into MT5 , with the logic kept as close to the Pine version as possible. What I need: MT5 Indicator Exact oscillator logic Multi-timeframe logic using 4H, 15M, and 1M EMA filter MTF EMA dashboard RSI display Buy and sell visual signals Background state/flash behavior where
The scanner will scan all currency base on MACD Diverdgent, my strength indicator and my better volume indicator. All this would be across all time frame and all currency pairs
Darwish 50 - 100 USD
I want a bot that runs on any timeframe, but for now, I’ll set it on 1 minute. It should watch for buy and sell signals. Each time it opens a trade, as soon as it makes a small profit like 1, 2, or 3 dollars it closes, then checks for the next signal. If it sees a buy, it buys; if it sees a sell, it sells—just repeating the cycle, over and over, until I stop it
📢 Project Title:MT5 Expert Advisor (EA) – Advanced Renko Strategy (Full Automation) 📄 Project Description:I want to develop a fully automated MT5 Expert Advisor (EA) based on my existing TradingView Renko strategy.I already have a working Pine Script that generates Buy/Sell alerts with ATR and other logic. Now I need the same strategy to be fully converted into MT5 EA with built-in Renko logic (no external
Description: I need an MQL5 Expert Advisor for Gold (XAUUSD). I am a developer myself — I will read your code and I will know if it is a template. Do not apply if your proposal includes: Generic descriptions ("it will have TP, SL, trailing stop") — I already know that AI-generated code Copy-paste from existing free EAs Apply only if you can answer these before we start: What is the entry logic? Describe the exact
looking for a highly experienced mql5 developer to build a professional trading ea based on multi timeframe top down analysis and market structure concepts the system should combine higher timeframe context with lower timeframe execution and provide both precise logic and clean visual representation on chart ⸻ core requirements • implementation of multi timeframe logic higher timeframe bias combined with lower
I need an Expert Advisor (EA) for XAUUSD using a Grid + Martingale + Hedging strategy. Main features: • Open Buy & Sell at start (hedging) • Grid system with adjustable step (price-based levels) • Lot multiplier (martingale-style) • Fixed TP per trade + basket TP (close all in profit) • Continuous re-entry after TP • Risk management (max trades, max lot, equity stop) Additional requirements: • EA must include access
1. Trade Execution Timing The EA must execute trades exactly at 7:00 PM IST (Indian Standard Time) every trading day. Time conversion must be handled internally if the broker server time differs from IST. Execution should trigger only once per day (no duplicate trades). 2. Trade Type At 7:00 PM IST, the EA must: Open 1 Buy/Sell (Long/Short) position (configurable) 3. Order Execution Method Orders must be placed

Informazioni sul progetto

Budget
300 - 1000 USD
Scadenze
a 14 giorno(i)

Cliente

(5)
Ordini effettuati21
Numero di arbitraggi0