Modification of a trading tool EA

MQL4 Indicators Experts

Job finished

Execution time 4 hours

Specification

Hello,

the attached EA is a basic trading tool which was created to calculate how many units of an underlying instrument are purchased or sold based on where you put your stop & preset risk parameters on any given trades. Unfortunately and for some unknown reason it does not always calculate the exact TP and also misplaces the SL at times. I have no idea why this is so, but in regards to the TP I assume it has to do with the slippage involved on market orders. Instead of going through the process of recalculating every trade by hand and to make sure that the TP is correctly calculated I want those issues being fixed once and for good.  On top I want also the sell side of this EA being slightly modified. Since bids are only displayed on MT4, I want the spread being taken into account of the computing process too.

Here is how the EA works: It uses a vertical line to determine to its right hand side where the high and/or low of a price swing is and beneath or above where the stop is placed. A horizontal line is used as trigger line. When the bid crosses the horizontal line from below a purchasing order is issued and vice versa and the hidden stop is placed 1 tick above/below the area's high/low.

Since there are discrepancies in the calculation of the TP I want to make use only of the real time EXECUTED PRICE as reference!


The TP of a long trade should therefore be calculated as following:

((EXECUTED PURCHASING PRICE - stop) * TakeProfitFactor) + EXECUTED Purchasing Price = TP


The TP of a short trade should therefore be calculated as following:

(EXECUTED Selling Price - spread) -((EXECUTED SELLING PRICE - (stop + spread)) * TakeProfitFactor)  = TP


If necessary the TP has to be placed AFTER market entry or being modified, whatsoever is possible and feasible. Instead of me doing it per hand the EA should do it for me automatically!


In regards to the misplacement of the SL I am totally left in the dark. I have not the slightest idea why this is so! It happens totally on a random, unpredictable basis!


Who is willing & able to code this for me!


Many thanks in advance & all the best!




Files:

Responded

1
Developer 1
Rating
(43)
Projects
66
12%
Arbitration
12
58% / 42%
Overdue
1
2%
Free
2
Developer 2
Rating
(40)
Projects
55
35%
Arbitration
2
0% / 50%
Overdue
0
Free
3
Developer 3
Rating
(298)
Projects
427
26%
Arbitration
18
61% / 33%
Overdue
26
6%
Free
Published: 8 codes
4
Developer 4
Rating
(588)
Projects
1061
50%
Arbitration
39
28% / 41%
Overdue
49
5%
Working
Published: 1 article, 8 codes
Similar orders
I need a custom MT5 Expert Advisor with the following rules: Strategy: - Timeframe: M15 (adjustable input) - Indicators: - MACD (12,26,9) - SMA 200 as trend filter Entry rules (CLOSED candles only): - BUY: - MACD main crosses above signal on closed candle - Price close above SMA 200 - SELL: - MACD main crosses below signal on closed candle - Price close below SMA 200 General rules: - One trade at a time per
Hi everyone, I’m currently working on a private automated trading software designed specifically for XAUUSD (Gold) . This is not a signal service and not a high-frequency robot. The focus is on controlled risk, patience, and capital protection . Key points (shared briefly, not promotional): Trades one cycle at a time (no overtrading) Uses pure price behavior (no EMA, no indicators) Built-in break even and
Hey I am an experienced Seasoned forex trader looking a well automated reliable ea robot for metatrader 5, it must be a win win highly profitable algorithm trading system running 24/7 without any issue, working automatedly based trend market conditions with Optimal trading performance of massive trading returns, if you have such an amazing ready made mt5 robot, kindly reach out with both demo version and backtesting
📌 JOB DESCRIPTION – FULLY AUTOMATED TRADING SYSTEM I am looking for an experienced developer to build a fully automated end-to-end trading system for MetaTrader 5. This is not an indicator-based bot and not a discretionary or black-box AI system. The system must follow a strict, deterministic rule-based trading framework that is already defined. 🎯 PROJECT GOAL Build a system where: A backend continuously evaluates
Bot007 50 - 200 USD
*Bot Name:* SupportShield *Description:* SupportShield is a cutting-edge trading bot that uses advanced technical analysis to identify key support and resistance levels in the market. By leveraging these levels, the bot provides traders with actionable insights to make informed trading decisions. *How it works:* 1. *Support Level*: The bot identifies a support level, where the price tends to bounce back or
Option 1: Professional & Technical (Recommended) "MT5: Advanced Trade Management with Recursive Logic and Directional Flipping" Why it works: It sounds like a sophisticated management tool. "Recursive logic" signals that the EA needs to remember what happened in the previous trade. Option 2: The "Safety" Angle (Discrete) "Expert Advisor Developer Needed for Custom Risk Management & Sequential Order Execution" Why it
Good morning, i need to convert a robot from ex4 file to mq4 file. This current robot only works on démo. I need it to work on real account. That's why i need this modifivation. Thank you
I am looking for a German-speaking MQL4/5 developer to replicate an existing Expert Advisor with identical functionality. What I provide: - The original EA for testing - Videos demonstrating how it works - PDFs with documentation What I need: - An exact copy of the functionality - Clean, well-commented code - Brief consultations in German
EA with Zones 30+ USD
Good day! I have an indicator .mq5 this indicator calculates and draw zones on the chart. My request is to add these specific zones drawn and calculated exactly as the indicator in the EA. A replicate behavior of the zones from the indicator to the EA. Thank you
Task Title Implement Martingale Lot Scaling Sync Between Master and Slave MT4 Trade Copier Background I am using a local master–slave trade copier setup with: 1 Master MT4 4 Slave MT4 terminals Trades are currently copied correctly (entry, direction, symbol, SL/TP). Lot size handling currently copies either: the exact master lot, or a fixed base lot defined on the slave (e.g., always 0.01 or 1.0). Problem When the

Project information

Budget
30 - 100 USD