Use the Profits from other Positions to Close the Part of a Losing Trade

MQL5 Эксперты

Работа завершена

Время выполнения 10 дней
Отзыв от заказчика
Great developer who is able to solve difficult tasks. Will definitely use him again

Техническое задание

Instead of using of using a fixed stop loss, why risk mitigation approach is to partially close part of a position and move adjust the remaining positions to breakeven. This approach works in most scenarios but fails when the position does not return to the breakeven level.

In this scenario I would like to use the profits from my remaining trades to trim back by position in a losing one. 

As a result I would like the attached EA to perform the following:

1) If Dynamic Profit2 (Line 674) - essentially measures the floating loss and profit. When this reaches a certain level of drawdown (e.g. $250), for a symbol and a side e.g. US30 Shorts. Then this time will be recorded and so will the current balance of the account. 

Scenario 1:

Lets say the drawdown event (i.e. a symbol and side = $250 drawdown and 1 Lot) was the 3rd January 2022 at 07:01 and the balance was $10,500.


All the closed profit that has been made on the account from that point onwards will be used to Partially close the position in drawdown. 

For example, let us say that other symbols have have a profit of $100 (between 7:01 and 9:00), then that equivalent amount will be used to partially close the US30 sell position (that was at $250 drawdown at 7:01). Let's say that at 9:00 the floating drawdown on US30 is $300, then the position size (originally 1.0 Lots - we can assume this did not increase), will not be reduced to 0.66 Lots. 

Note: this scenario will occur each time a trade has closed in profit.


The time will not refresh every time the drawdown on US30 reaches $250 dollars (there will be a pause period for X minutes so that it does not refresh too much).


Scenario 2:

Let us say that it is 7:01 US30 Shorts are in $250 drawdown and the pause period (i.e. the pause until the drawdown needs to be checked again) is set to 120 minutes. And using the process the lots on US30 has reduced to 0.66 Lots. During this period 7:30 there is another position USDCHF that has just reached the drawdown level of $250. In this scenario, the drawdown reduction process will be carried out on the symbol that has more recently hit the drawdown / or the one that has the highest drawdown (whichever is easier to code).

The Partial Close will keep happening until the drawdown on the symbol reaches a certain level e.g. $100.


Note: 

Please check the screenshot provide for a visual representation 





Откликнулись

1
Разработчик 1
Оценка
(19)
Проекты
33
55%
Арбитраж
5
80% / 20%
Просрочено
3
9%
Свободен
2
Разработчик 2
Оценка
(54)
Проекты
102
23%
Арбитраж
12
25% / 17%
Просрочено
13
13%
Свободен
3
Разработчик 3
Оценка
(31)
Проекты
56
21%
Арбитраж
12
67% / 8%
Просрочено
2
4%
Свободен
Похожие заказы
Spikes EA 30 - 200 USD
Got you 🔥 You want a clear link name + eye-catching brand name (I’m guessing for trading or a forex page since you’ve been working on bots and strategies). Here are powerful name + link ideas 👇 🔥 Strong & Professional Names PipEmpire 🔗 pipempire.com 🔗 pipempirefx.com GoldWave Traders 🔗 goldwavetraders.com SmartEdge FX 🔗 smartedgefx.com QuantumPips 🔗 quantumpips.com CapeCapital FX (since you're in Cape Town
Spikes EA 30 - 200 USD
Got you 🔥 You want a clear link name + eye-catching brand name (I’m guessing for trading or a forex page since you’ve been working on bots and strategies). Here are powerful name + link ideas 👇 🔥 Strong & Professional Names PipEmpire 🔗 pipempire.com 🔗 pipempirefx.com GoldWave Traders 🔗 goldwavetraders.com SmartEdge FX 🔗 smartedgefx.com QuantumPips 🔗 quantumpips.com CapeCapital FX (since you're in Cape Town
Tradovate API to mt5 50 - 60 USD
Obtain indicator signals from tradovate use them to generate and control EA in mt5 Indicators include delta, volume , bid ask above x, big orders absorption. Stacked imbalance and failed auction. When their is confluence it make for entry and exit
hello people, i have this bot, it works, however i would like my own version similar as the developer isn't reliable and some things don't work Bitcoin Scalping Robot MT4 | Buy Trading Robot (Expert Advisor) for MetaTrader 4 i would like similar strategy with the addition of autolot sizes, obvs i have the set file
Hello, professional programmers! I'd like to request a special service. I need a trading bot like the one in the video, one that works on real accounts. My only request is that I don't pay any money until the bot is built and tested. Thank you very much
MT5 Manual Trade Panel 250 - 600 USD
MT5 Manual Trade Panel with Risk % Lot Calculation & User License System 11 hours ago MQL5 Experts Forex Trading robot/indicator debugging C++ Strategy modules Panels and dialog boxes Hello, I need a professional MT5 manual trading assistant panel (NOT auto trading EA). MAIN IDEA: A clean manual trading panel similar to TradingView long/short position tool inside MT5, designed mainly for Gold scalping (M5 /
Ai robot 30 - 50 USD
1️⃣ System Architecture An AI robot typically consists of the following subsystems: 🔹 1. Perception Layer Collects environmental data using: RGB / Depth cameras LiDAR Ultrasonic sensors IMUs (Inertial Measurement Units) Microphones Data is processed using: Computer Vision (e.g., object detection, SLAM) Signal processing Sensor fusion algorithms 🔹 2. Cognition / Intelligence Layer Implements AI models such as
As we were discuss privetly I would like also modification where the ea would close all charts under certain conditions and also to close positions. otherwise seems okay based on description but firstly would need to see demo version but cant download it
I'm looking for a good MT5 EA that is not martingale , Must work on real account, Looking mainly for Gold or Major Forex pairs or BTC. Willing to purchase the full source code if you have a woking EA that fits the criteria Must work on small standard accounts below 1000$ capital or cent accounts Looking to test it before purchase, or if you can show me a read only access account that would be great
Trailing Stop Based on Thresholds . Other Necessary Filters already Coded . Live Chart Only . The strategy already coded - needs a fresh new draft . To Start from Signal Trigger

Информация о проекте

Бюджет
60+ USD
Сроки выполнения
до 3 дн.