I need an experienced developer to modify my existing code EA for full functionality.

Job finished

Execution time 23 days

Specification

Hi, I've developed an Fratile brake and retest EA. I have not been able to backtest it since i cant get it to work. I need your help in checking the code and making sure that the code is intact and all functions will work as they are or perhaps add your improvements. Please see a detailed description of the EA below. Reachout to me and i will provide you with the full code. 


Fractal Breakout EA Overview

The Fractal Breakout EA is designed to execute trades based on fractal breakouts on specified timeframes. It utilizes fractals to identify potential breakout points and enters trades when prices retest these levels. The strategy is enhanced with several risk management and trading optimization features like martingale, trailing stops, and the ability to manage multiple entries per signal.

Inputs and Settings

  • StopLossPips and TakeProfitPips: Define the stop loss and take profit settings in pips.
  • InitialLotSize: Initial lot size for the first trade.
  • MartingaleFactor: Factor by which the lot size increases following a loss if the martingale feature is active.
  • UseMartingale: Boolean to activate/deactivate the martingale feature.
  • ClosePrevious: Boolean to determine whether to close previous trades when a new trade is opened.
  • UseAutoLot: Enables automatic lot size calculation based on account balance and risk.
  • RiskPercentage: Percentage of account balance risked per trade.
  • MaxEntriesPerSignal: Maximum number of concurrent entries allowed per trading signal.
  • TradingStartTime and TradingEndTime: Define the start and end times for trading to avoid low liquidity periods.
  • ProfitPipsForAdditionalEntries: Number of pips in profit required to trigger additional entries.
  • TrailStopStart and TrailStopDistance: Settings for the trailing stop feature.

Key Components

  • CFractals: A fractal indicator used to determine the fractal highs and lows around which trading decisions are made.
  • CTrade: An object to handle trade operations.
  • cumulativeLoss and martingaleActive: Variables to manage the state and calculations related to the martingale feature.

Functions

  • OnInit(): Initializes the EA, sets up the fractal indicator, and starts a timer for periodic execution of the trading logic.
  • OnTimer(): Main function called at regular intervals to check trading conditions based on the current market data and system settings.
  • ProcessEntries(): Processes trading signals based on fractal data and current price action, managing trade entries and exits.
  • PlaceTrade(): Executes trade entries for buy or sell based on signal conditions.
  • UpdateTrailingStop(): Adjusts the stop loss dynamically as the trade moves into profit to protect gains.
  • CheckForAdditionalEntries(): Evaluates conditions for making additional entries when a trade is in profit.
  • AdjustLotSize(): Adjusts the trading lot size according to the martingale strategy or resets it based on the strategy settings.
  • CalculateLotSize(): Calculates the lot size based on the risk percentage and account balance.
  • CheckMartingaleCondition(): Adjusts the martingale strategy based on the outcome of the last trade.
  • OnDeinit(): Cleans up resources when the EA is removed from the chart or the chart is closed.

Strategy Logic

  1. Fractal Detection: Uses fractals to detect significant breakout levels.
  2. Trade Execution: Enters trades when prices retest the detected fractal levels from the correct direction.
  3. Risk Management: Implements a trailing stop loss and a martingale feature for loss recovery.
  4. Additional Entries: Opens additional trades in profitable conditions to maximize gains.

Visual Features

The EA includes visual components on the chart that display:

  • Current total funds.
  • Number of open trades.
  • Daily profits and losses.

These features provide real-time insights into the EA's performance and help monitor trading activities directly on the chart.


Responded

1
Developer 1
Rating
(85)
Projects
175
44%
Arbitration
3
100% / 0%
Overdue
5
3%
Free
Published: 1 code
2
Developer 2
Rating
(6)
Projects
9
11%
Arbitration
5
40% / 20%
Overdue
2
22%
Free
3
Developer 3
Rating
(2)
Projects
5
0%
Arbitration
3
0% / 100%
Overdue
1
20%
Working
4
Developer 4
Rating
(279)
Projects
341
37%
Arbitration
6
50% / 17%
Overdue
7
2%
Free
Published: 5 codes
5
Developer 5
Rating
(252)
Projects
462
26%
Arbitration
139
20% / 60%
Overdue
100
22%
Free
6
Developer 6
Rating
(171)
Projects
195
42%
Arbitration
13
8% / 54%
Overdue
9
5%
Free
Published: 3 codes
7
Developer 7
Rating
(61)
Projects
83
45%
Arbitration
27
11% / 70%
Overdue
8
10%
Free
Similar orders
We’re looking for an investment partner to help fund AegisGoldAIPro , an algorithmic trading platform being developed for MetaTrader 5, initially focused on gold. We’re building a modular system that combines market-structure analysis with planned AI-assisted decision support, risk controls, and automated execution. What we are building is not just a basic trading robots that depend on only one indicator or strategy
Looking for a Complete Forex & Gold Signal System — Telegram Automation + Performance Tracking I’m looking for a complete automated trading signal solution for Forex pairs, including EUR/USD, GBP/USD and others, as well as gold (XAU/USD). Requirements: • An average of 2–3 quality signals per day across the selected instruments. Quality matters more than generating signals just to meet a quota. • A high win rate
PROJECT: Automatic Gold and Forex Trading Robot for MetaTrader 5 (MQL5) I want a fully automated Expert Advisor (EA) for MetaTrader 5 that can analyze the market and automatically open, manage and close trades on Gold and selected Forex currency pairs. TRADING INSTRUMENTS Gold: XAUUSD Forex: EURUSD, GBPUSD and USDJPY, subject to broker availability. Allow the user to enable or disable each trading symbol. Support
I need a robot that will grow small accounts to bigger amounts like this one in this link, https://youtu.be/d38pMbJihew?si=3NeIOVyrlwDr4X_o. Please click the link and watch how this EA grow small accounts. Then create a robot like that. I will test it on demo first then if it does what i want, i will take it. Please it must be simply to use. It must set targets, for example, once it reaches $500 profit, it must
Here is a professional, detailed requirements specification draft for your MQL5 freelance order based on your prompt: ​ Strategy Objective: Develop an automated Expert Advisor (EA) featuring a 1:3 Risk-to-Reward ratio optimized for a small starting budget. ​ Core Trading Logic: ​Execute automatic Buy and Sell trades using high-probability entry signals. ​Target a strict 90% theoretical win-rate structure through
i want to fix my gold martingale bot MT5. RSI 14 ENTRY 30 BUY 70 SELL Lot 0.02 0.04 0.07 TP 150 for all SL 90 30 30 once total daily profit is 200$ stop trading stop trading once 2 consecutives total losses stop trading if spread exceeded 30 and between hour 15 & 17 PM Move SL to breakeven point once the profit exceeded 50 from from breakeven thanks
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical
The purpose of this order is ONLY to test and implement my H1 POI (Point of Interest) identification logic correctly. I am not requesting the complete EA at this stage. I will provide the exact rules for identifying the H1 POI after selecting the developer. The developer must convert those rules into clear, deterministic MQL5 logic. Requirements: Analyze H1 candles according to the rules I provide. Identify and mark
Title: Fully Automatic MT5 Trading Bot (Expert Advisor) with Risk Management I want a fully automated trading robot (Expert Advisor) for MetaTrader 5, written in MQL5. The bot must automatically analyse market data, identify trading opportunities, execute BUY and SELL orders, manage open positions, and close trades according to predefined rules without requiring manual confirmation for each trade. Requirements
Hello, I’m looking for an experienced developer to research, build, test, and install a fully automated MetaTrader 5 trading bot for gold, XAUUSD. My total development and installation budget is $300, including all agreed work and fees. My goal is to pass a $100,000 FTMO US Two-Step Standard evaluation and sustainably maintain the funded account. I need a day-trading strategy that can buy in bullish markets and sell

Project information

Budget
35+ USD
Deadline
from 1 day(s)