Fractal-Based CHoCH/BOS Hedging EA (MT5)

MQL5 Experten

Auftrag beendet

Ausführungszeit 1 Minute
Bewertung des Entwicklers
Thank you!
Bewertung des Kunden
Fully aligned with my specification and available to talk. Will work again with Tzvetan!

Spezifikation

IMPORTANT:

Upon agreeing on a Project, I will be able to share as well:

1) Screenshot of the logics explained above for better understanding;

2) PineCode Script of the Indicator I use for Fractal Market Structure (so you can turn it into MQL5).

Summary

This Expert Advisor automates a hedging strategy based on market structure analysis using fractals. It identifies Break of Structure (BoS) for trend continuation and Change of Character (ChoCH) for potential reversals, and executes trades accordingly.

The EA is designed to work across all currency pairs and timeframes, including high-frequency 1-minute scalping. It opens a trend-aligned trade after a BoS and adds a hedged trade in the opposite direction upon ChoCH, managing drawdowns without stop losses.

Trades are closed based on a fixed take profit, and when profits are realized, they are used to trim opposing trades. The EA supports dynamic lot sizing based on equity growth and offers full visualization (arrows, labels, and on-screen dashboard) for transparency.

It includes robust error handling, retry logic and optional alerts. The strategy supports all major backtesting modes and is optimized for low-latency execution.

Key inputs are configurable, including fractal sensitivity, TP level, retracement filter, and lot scaling. The system is optimized for scalability, clarity, and performance in both manual and automated trading environments.


REQUIREMENTS SPECIFICATION FOR MQL5 EXPERT ADVISOR

Title: Fractal-Based CHoCH/BOS Hedging Strategy EA (Multi-Pair, Multi-Timeframe)


1. Trading Idea

The EA will detect market structure using fractal-based logic to identify:

- Break of Structure (BoS): trend continuation

- Change of Character (ChoCH): potential trend reversal


The EA trades using a hedging approach:

- It opens a position in the direction of the current trend (as determined by the last BoS).

- When a ChoCH occurs, it opens a hedged trade in the opposite direction.

- Trades are not closed when new ones are opened; they are trimmed based on take profit logic.


The strategy runs on all currency pairs and all timeframes, including 1-minute scalping charts.


2. Fractal Detection

- Uses fractal detection with a default lookback of 5 bars, configurable via input.

- A fractal is detected when a candle’s high is higher/lower than the two candles before and after.

- Recalculation frequency (on tick vs on bar close) is controlled by a boolean input.

- Fractal points and BoS/ChoCH events must be visualized on the chart with labels or arrows.


3. Signal Logic

Buy Signal:

- If no trade is open and the indicator confirms bullish market structure → open a Buy trade.

- If previous trade direction was bearish and a ChoCH to bullish occurs → open a Buy hedged trade.

- ChoCH is confirmed only on candle close above previous bearish fractal high.

- Optional retracement filter: configurable (0–3 opposite candles must form before breakout).


Sell Signal:

- If no trade is open and structure is bearish → open Sell trade.

- If a ChoCH to bearish occurs → open a Sell hedged trade.

- ChoCH is confirmed only on candle close below previous bullish fractal low.

- Retracement rule same as Buy.


4. Signal Lifetime

- A BoS or ChoCH signal is valid until it is invalidated by an opposite signal or replaced by a newer fractal structure.


5. Trade Entry Conditions

- All trades are placed at market after signal confirmation at bar close.

- No filters (RSI, time, volume) are used.

- The EA must support hedging and allow multiple trades in both directions.


6. Position Management

- Each trade has a fixed Take Profit (TP) of 10 pips, adjustable via input.

- No Stop Loss is used (hedging logic manages drawdown).

- If TP is hit and there’s no hedged trade, a new trade is placed in the same direction at that price level.

- If TP is hit and there is a hedged trade:

  - 50% of profit is used to reduce the volume of the opposite trade (trim loss).

- When a new ChoCH occurs, a new hedged trade is opened.

  - The new trade's lot size = 1 lot minus the already trimmed open hedge.


7. Lot Size Calculation

- Default: 1 lot, adjustable via input.

- Dynamic adjustment: if equity increases by 10%, increase lot size proportionally to maintain TP value growth.

- Initial capital input should define base profit expectation per 10 pips.


8. Error Handling

- Best practice handling:

  - Retry failed orders after 500ms (up to 3 times).

  - Log all order failures, price info, signal type, lot size.

  - Display error codes in Experts tab.

  - No spam alerts, but a log file with timestamped messages is required.

- Optionally: add terminal notification on failed order (optional toggle).


9. Other Features

- On-screen dashboard showing:

  - Total BOS and ChoCH events

  - Current trend (Bullish/Bearish)

  - Active Buy/Sell trade counts and directions

- Arrows and/or labels must appear for:

  - Bullish/Bearish fractals

  - BoS (green/red label)

  - ChoCH (labeled clearly)

- No need to separately enable/disable Buy or Sell since it’s a hedging EA.


10. Testing and Optimization

- Must support visual backtesting mode with all plotted elements.

- Must be testable in:

  - “Open price only”

  - “Every tick”

  - “Every tick based on real ticks”

- Should run on low timeframes (1M, 5M) without lag.

- Compatible with high-frequency use cases (scalping).


Example of the iput Parameters Overview

| Parameter                  | Type       | Description                                     |

|---------------------------|------------|-------------------------------------------------|

| FractalLength             | Integer    | Bars to look back for fractal detection         |

| UseTickRecalculation      | Boolean    | Use tick-by-tick vs bar-close for detection     |

| InitialLotSize            | Float      | Starting lot size                               |

| TP_Pips                   | Integer    | Take profit in pips                             |

| RetracementCandles        | Integer    | 0–3 required opposite candles before BoS/ChoCH  |

| DynamicLotAdjustment      | Boolean    | Enable/disable 10% equity-based lot scaling     |

| EnableNotifications       | Boolean    | Alert user on trade error                       |

| EnableDashboard           | Boolean    | Show dashboard with structure and trend info    |


Bewerbungen

1
Entwickler 1
Bewertung
(253)
Projekte
316
29%
Schlichtung
34
26% / 65%
Frist nicht eingehalten
10
3%
Frei
2
Entwickler 2
Bewertung
(255)
Projekte
262
30%
Schlichtung
0
Frist nicht eingehalten
3
1%
Frei
Veröffentlicht: 2 Beispiele
3
Entwickler 3
Bewertung
(15)
Projekte
19
16%
Schlichtung
5
40% / 40%
Frist nicht eingehalten
0
Frei
4
Entwickler 4
Bewertung
(60)
Projekte
87
29%
Schlichtung
24
13% / 58%
Frist nicht eingehalten
7
8%
Arbeitet
5
Entwickler 5
Bewertung
(51)
Projekte
69
35%
Schlichtung
4
25% / 75%
Frist nicht eingehalten
0
Frei
6
Entwickler 6
Bewertung
(271)
Projekte
553
50%
Schlichtung
57
40% / 37%
Frist nicht eingehalten
227
41%
Arbeitet
7
Entwickler 7
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
8
Entwickler 8
Bewertung
(1)
Projekte
4
0%
Schlichtung
5
20% / 40%
Frist nicht eingehalten
2
50%
Frei
9
Entwickler 9
Bewertung
(10)
Projekte
14
43%
Schlichtung
0
Frist nicht eingehalten
3
21%
Frei
10
Entwickler 10
Bewertung
(16)
Projekte
35
23%
Schlichtung
4
0% / 50%
Frist nicht eingehalten
2
6%
Arbeitet
11
Entwickler 11
Bewertung
(187)
Projekte
243
20%
Schlichtung
22
50% / 18%
Frist nicht eingehalten
0
Arbeitet
12
Entwickler 12
Bewertung
(77)
Projekte
243
74%
Schlichtung
7
100% / 0%
Frist nicht eingehalten
1
0%
Frei
Veröffentlicht: 1 Artikel
13
Entwickler 13
Bewertung
(7)
Projekte
13
15%
Schlichtung
13
23% / 46%
Frist nicht eingehalten
3
23%
Frei
Veröffentlicht: 24 Artikel
14
Entwickler 14
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
15
Entwickler 15
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
16
Entwickler 16
Bewertung
(7)
Projekte
11
0%
Schlichtung
4
0% / 100%
Frist nicht eingehalten
2
18%
Arbeitet
17
Entwickler 17
Bewertung
(45)
Projekte
91
13%
Schlichtung
34
26% / 59%
Frist nicht eingehalten
37
41%
Frei
18
Entwickler 18
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
19
Entwickler 19
Bewertung
(5)
Projekte
5
60%
Schlichtung
0
Frist nicht eingehalten
0
Frei
20
Entwickler 20
Bewertung
(162)
Projekte
287
34%
Schlichtung
18
22% / 61%
Frist nicht eingehalten
42
15%
Arbeitet
21
Entwickler 21
Bewertung
(12)
Projekte
12
17%
Schlichtung
2
0% / 50%
Frist nicht eingehalten
1
8%
Frei
22
Entwickler 22
Bewertung
(6)
Projekte
5
0%
Schlichtung
2
50% / 50%
Frist nicht eingehalten
2
40%
Arbeitet
23
Entwickler 23
Bewertung
(25)
Projekte
29
21%
Schlichtung
20
10% / 50%
Frist nicht eingehalten
8
28%
Arbeitet
24
Entwickler 24
Bewertung
(360)
Projekte
432
54%
Schlichtung
20
55% / 15%
Frist nicht eingehalten
29
7%
Arbeitet
25
Entwickler 25
Bewertung
(4)
Projekte
7
43%
Schlichtung
0
Frist nicht eingehalten
2
29%
Frei
26
Entwickler 26
Bewertung
(322)
Projekte
499
67%
Schlichtung
5
40% / 0%
Frist nicht eingehalten
4
1%
Frei
Veröffentlicht: 8 Beispiele
Ähnliche Aufträge
Seeking developer service to code an EA. Interested developer must have good experience and understanding on how ORB and FVG works, and agreed to the terms below : 1. Shall demonstrate a fully functional EA that operates as specified in the requirement and function automatically as requested in real-time environment (forward test - demo/live), regardless of good results obtained in strategy-tester. Backtesting
Hey guys, looking for a crazy good EA / Indicator that can either help me for futures trading (eg. Topstep, Lucid Trading etc) https://t.me/nqsniperz - telegram Or looking for a CFD EA that i can run on personal accounts Budget is very high and negotiable. https://t.me/nqsniperz
I’m looking to partner with an experienced developer who has a proven, working EA that delivers stable and consistent monthly performance . A bit about me: I run an active trading community and a TikTok channel that consistently drives targeted traffic and potential clients into my ecosystem. I’m now looking to collaborate with the right developer to scale EA distribution and monetisation together . What I’m Looking
am looking for an experienced MQL5 developer to build a high-frequency trading Expert Advisor (EA) for XAUUSD (Gold) on M1 and M5 timeframes . The EA must include advanced execution logic, dynamic pending orders, risk management, and news/session filters. Clean, efficient, and well-documented code is required. Strategy type: Scalping (fast trades, quick profit). Very fast execution logic (optimized for speed). Goal
Title: MT5 EA Needed – Prop‑Firm Compliance Tool (SL/TP at Entry, 60‑Second Hold, Daily Profit Cap, 0.5% XAUUSD Risk) Description: I need an MT5 Expert Advisor that enforces prop‑firm compliance rules for Instant Funding accounts. The EA must NOT trade automatically — it should only monitor and control my manual XAUUSD trading. I trade all sessions, so there should be no time restrictions. MY TRADING STYLE (Important
​1. Project Overview ​ Asset: XAUUSD (Gold) ​ Timeframe: M1 (1-Minute) for execution; M5/M15 for trend filtering. ​ Objective: Execute high-frequency scalps during peak liquidity (London/NY overlap) to capture 10–30 pip movements with high precision. ​ Core Logic: The "Poverty Bot" strategy relies on Mean Reversion combined with Momentum Burst (Price Action + RSI/EMA filters). ​2. Strategy Logic (The "Poverty"
I need any highly profitable robot which can trade small account like 50-100USD and any currency pair(s) The robot should avoid trading around news time and have good risk management. It should use any strategy which is profitable and not those unacceptable by brokers. Demo versions will be required before selection
Hi, I hope you doing Greate, Let me share details , so the original EA already working but you can check and verify everything fine.First you verify that all original EA features are working correctly then add a user dashboard showing the number of detected zones, buy sell both none status, and an on off button. also ensure mitigated zones disappear properly and that trades follow the zone rules, and integrate the
I need a high-speed Expert Advisor (EA) for MT5 designed specifically for XAUUSD (Gold) scalping. The bot should focus on fast entries and quick profits with high efficiency. Main requirements: 1. Symbol: XAUUSD (Gold only). 2. Platform: MetaTrader 5. 3. Strategy type: Scalping (fast trades, quick profit). 4. The bot should open trades frequently based on fast market movements. 5. Small Take Profit (quick profit
Gold_m1_ob_bot. 30+ USD
import MetaTrader5 as mt5 import pandas as pd import time from datetime import datetime # ================== CONFIG ================== SYMBOL = "XAUUSD" TIMEFRAME = mt5.TIMEFRAME_M1 LOT = 0.01 MAX_OBS = 12 # keeps signals frequent ATR_PERIOD = 14 IMPULSE_FACTOR = 1.5 # strong candle = impulse SESSION_START = 8 # GMT (London open) SESSION_END = 20 # GMT (NY close) MAX_SPREAD = 30 #

Projektdetails

Budget
200 - 300 USD
Ausführungsfristen
von 1 bis 5 Tag(e)