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
A fairly simple bot, which you will have probably made most of this 100 times before, the only slight difference is the stop loss close logic, I want a hard stop, that will be logged at the brokers side as a fail safe, but then a soft stop, that only closes the trade if the candle closes beyond the soft stop price, based on the time frame I specify. (this avoids trades being stopped out by wicks). Any additional
Hi, I have four trading strategy's that work on tradingview. But these scripts i have are having problems being translated into ACSIL for Sierra Charts. I have being using AI to translate the scripts, but keep hitting a road block. The scripts load on the charts, but without any data being logged. I hope you can help, I just want to confirm the positive results on tradingview are no fluke and are correct on Sierra
HELLO EVERYONE , I NEED AAN INDICATORE AND EA ON STOCHESTIC OSSILATOR, WHICH CAN GIVE ME ALERT WHEN SIGNAL APEARS, INDICAOTRE I CAN SHOW ON TRADING VIEW , EXACTLTY THAT INDICATORE I NEEDED.INDICATORE NAME ON TRADING VIEW( JL STOCHESTIC DIVERGENCE ALERT).. THANK YOU
//+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ #property strict // Inputs input int EMA_Fast = 9; input int EMA_Slow = 21; input int RSI_Period = 14; input double Lots = 0.1; input int StopLoss = 20; // وقف خسارة (بـ نقاط) input int TakeProfit = 40; // هدف (بـ نقاط)
Menga faqat XAUUSD uchun maxsus MT5 ekspert maslahatchisi kerak . MUDDAT VA DAVOMI EA M5 vaqt oralig'ida ishlaydi Faqat bitta savdo kuni mantig'i KUNDALIK ZONA MANTIQI Har bir yangi savdo kunining boshida EA FAQAT birinchi yopilgan 5 daqiqalik shamni olishi kerak . Ushbu shamning eng yuqori va eng past nuqtalari o'zgarmas qo'llab-quvvatlash/qarshilik zonasini hosil qiladi . Bu zona kun davomida siljimasligi, qayta
Lo oking for an expert that manages other expert s according to market condition and equity curve , including : Turn ON/OFF experts in certain market conditions(indicator based), equity reach certian level , close all orders and restart ea again. Main chart with basic account statistic information needed, including status information of each experts Experts must be separated to more than 2 groups, each group of
Need a EA developer in conversion's I have a MT4 EA but I need it to be converted and to work in MT5 Nothing has to be removed Nothing has to be added Simply Make sure that when a copy is made in MT5 that the EA works the exact same way as it works in MT4 Its not a hard EA, AI can do this around %90 but there is a few lines in MT5 that AI do not understand and I have 0 coding skills NOT A
I have the Strategy and full spec any developer can run test to confirm. I need a developer to code it Claude AI has never given a score 11/10. "4.4 PROFIT FACTOR EA - CLAUDE AI CERTIFIED Scorpio Sniper Elite v1.4 - COMPLETE production spec ready: • 60% win rate | $100-190 daily expectancy • 50yr Monte Carlo validated • CLAUDE AI robustness certified [ATTACH ONLY: YOUR 11/10 CERTIFICATE
EA gold sniper 30 - 150 USD
I need an EA specialized for scalping XAUUSD, with short TP and SL in the range of 20–50 pips (equivalent to 2–5 gold price units). No DCA Martingale, no holding/averaging down positions, no grid trading, and no simultaneous buy and sell orders. The strategy and methodology will be yours, and I also require the full source code upon completion
Need EA Scalping Gold Xau 500 - 1000 USD
I need an EA specialized for scalping XAUUSD, with short TP and SL in the range of 20–50 pips (equivalent to 2–5 gold price units). No DCA Martingale, no holding/averaging down positions, no grid trading, and no simultaneous buy and sell orders. The strategy and methodology will be yours, and I also require the full source code upon completion

Project information

Budget
30 - 100 USD