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
Оценка
(30)
Проекты
55
22%
Арбитраж
12
67% / 8%
Просрочено
2
4%
Свободен
Похожие заказы
I’m looking for a custom MT4 or MT5 server setup that looks and feels exactly like a live trading account but gives me full control over the environment. What I need: • A private MT4/MT5 server that connects to the official MT4/MT5 desktop terminal • Live market price feed (real-time quotes for realism) • Ability to: • Create and manage accounts • Set or change balance, equity, margin • Manually add/edit/close trades
Create a ZigZag indicator, which is constructed based on extreme values determined using oscillators. It can use any classical normalized oscillator, which has overbought and oversold zones. The algorithm should first be executed with the WPR indicator, then similarly add the possibility to draw a zigzag using the following indicators
I'm looking for a developer to create a trading bot based on order blocks. Entry: on OB via the indicator CODE Exit and Money Management copied from: https://www.mql5.com/en/market/product/55393?source=Site +Market+MT4+Search+Rating006%3adark+venus CODE Goal so I can do multiple iframes But otherwise EURUSD in M1
Hello I’m looking for a custom MT4 or MT5 server setup that looks and feels exactly like a live trading account but gives me full control over the environment. What I need: • A private MT4/MT5 server that connects to the official MT4/MT5 desktop terminal • Live market price feed (real-time quotes for realism) • Ability to: • Create and manage accounts • Set or change balance, equity, margin • Manually add/edit/close
What I Need I'm looking for solid MQL4/5 and Pine Script developers for ongoing projects. No agencies, no middlemen - just skilled devs who know their stuff. The Deal ~5 projects per month to start Fair pay - I don't lowball good work Per-project rates - we'll agree on price upfront You Should Know MQL4/5 programming (EAs, indicators, scripts) Pine Script for TradingView How trading actually works How to write clean
Sierrachart 30+ USD
Hello, I am new to sierra chart, but very familiar with trading space. I dont want to spend time learning through online videos and want to get to what i want quickly. I need help from someone who knows sierra chart inside and out to help me get setup futures NQ market, chart, footprint, order flow, DOM etc. I will provide you my userid password and you can set it up for me and also let me know exactly what needs
Hallo, ich suche einen erfahrenen MT5-Programmierer, der mir einen Key Structure Range Indikator auf Basis von 3er-Fractals erstellt, inkl. Buffers für spätere EA-Nutzung. Pflichtenheft - Key Structure Range Indikator für MT5 (EA-ready): Projektbezeichnung: "Key Structure Range Indikator für MT5 (EA-ready)" 1. Plattform - MetaTrader 5 (MT5) - Unterstützte Timeframes: M1 bis H12 2. Kerneigenschaften (unbedingt
I'm looking for a developer to maintain and improve an existing trading system based on MT4 (MQL4) and Python . 📌 Communication must be in Polish (written or spoken). The developer doesn’t need to be based in Poland. ✅ What’s already working: A fully functional MT4 Expert Advisor : opens trades based on signals, shifts Stop Loss at TP1, TP2, TP3, reacts to Break Even (BE) signals, A Python script : listens to
Strategy Purpose: Place a trade immediately at the close of a Renko candle or wait for close of 1 st, 2nd or 3rd renko candle (user defined) when color changes (trend reversal) for placing entry, with a confirmation that previous trend had at least 1, 2 (user defined) number of continues same-color bricks. User Inputs (Customizable Parameters): 1. EntryOnCandlenumber = 1 o Enter on 1st, 2nd, 3rd or same-color candle
Hi, I’m looking for a custom MT4 or MT5 server setup that looks and feels exactly like a live trading account but gives me full control over the environment. What I need: • A private MT4/MT5 server that connects to the official MT4/MT5 desktop terminal • Live market price feed (real-time quotes for realism) • Ability to: • Create and manage accounts • Set or change balance, equity, margin • Manually add/edit/close

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

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