"Emergency Bailout" EA for MT4 needed

Experten

Auftrag beendet

Ausführungszeit 9 Tage
Bewertung des Kunden
I am happy! :-)
Bewertung des Entwicklers
Very responsible customer.

Spezifikation

I need an Expert Advisor for MetaTrader 4 (not MT5).

This EA will continuously monitor two values in MT4: Account "Balance" and account "Equity" (Equity changes as floating drawdown or gain of all open trades changes, while Balance only changes after a trade is closed).

When Equity falls below a given percentage of Balance (this percentage is provided as a parameter to the EA), then the EA will immediately close only those open trades which are currently negative (trades which at that time produce a floating negative drawdown, not in floating positive gain). Open trades which are in floating positive gain or pending orders will never be touched.

A status e-mail will be sent when trades are closed by the EA. This e-mail will list the trades closed as well as Balance and Equity before and after the close.

The EA needs to be programmed extremely careful and with reliability in mind. Closing of positions must be repeated until successful. After 5 minutes of trying, an error message on screen and via e-mail must be generated while the EA will continue trying to close the trades indefinitely (except when the condition for closing the trades is not present any more because the floating drawdown has reduced).

In essence, this EA will provide an automatic "emergency bailout" if one or more trades threaten to blow up the account, while leaving positive trades untouched. After closing all of the negative trades, the EA will continue to run and will be ready to close other trades if the condition to do so is met again.

Regards,

D.


Edit: To clarify the action of the EA, here is an example, step by step over time:


1. There are EUR 10,000 in the account, no trades. I have set the percentage parameter for your EA to 50 %. 

2. Some other EA (not your EA) opens 3 trades. After one day, 2 of these trades are negative (floating DD) and one trade is positive (floating gain). All 3 trades are still open. This is how the account now looks - note Balance and Equity:

Trade 1: - 2,000 EUR

Trade 2: - 3,000 EUR

Trade 3: + 2,000 EUR

Balance: 10,000 EUR, Equity: 7,000 EUR

Balance is unchanged because no trade had been closed. Equity however is only 7,000 now because of the combination of floating DD and floating gain from the open trades. What your EA now needs to do is continuously calculate how many percent the current Equity is from the current Balance. In this case, this is currently 70 %. Action will only be taken by your EA when this percentage falls below the percentage given in the parameter.

Let's see how that happens:

3. A day later, the DD of Trade 2 gets worse, now it looks like this:

Trade 1: - 2,000 EUR

Trade 2: - 5,001 EUR

Trade 3: + 2,000 EUR

Balance: 10,000 EUR, Equity: 4,999 EUR

Now your EA calculates that Equity is only 49 % of Balance. That's less than the given parameter of 50 %. Now the EA will take action: It will immediately close ALL trades in the account which are in floating DD. So it will close Trade 1 und Trade 2, while it leaves Trade 3 untouched. After this action, this is how the account will look like (of cause I am ignoring slippage etc.):

Trade 3: + 2,000 EUR

Balance: 2,999 EUR, Equity: 4,999 EUR

The percentage calculated by the EA is now at 166.69 % and far away from the given 50 %. The EA will continue to run and will take action any time again when Equity drops below 50 % of Balance.

Edit: The EA must not close only one negative trade and then reevaluate. When the condition to close is met, ALL negative trades must be closed. Only after all these trades have been closed, the EA will start to evaluate again. That's necessary because else the floating DD would be reduced after closing the first negative trade and the remaining negative trades may not be closed. 

Edit: The EA must check for the condition on every tick (not only once a day). 

Bewerbungen

1
Entwickler 1
Bewertung
(73)
Projekte
257
53%
Schlichtung
16
50% / 38%
Frist nicht eingehalten
83
32%
Frei
2
Entwickler 2
Bewertung
(564)
Projekte
845
73%
Schlichtung
15
53% / 13%
Frist nicht eingehalten
193
23%
Frei
3
Entwickler 3
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
4
Entwickler 4
Bewertung
(27)
Projekte
48
38%
Schlichtung
6
17% / 50%
Frist nicht eingehalten
30
63%
Frei
Veröffentlicht: 12 Artikel, 1 Beispiel
Ähnliche Aufträge
Hello Developer, I trade ONLY synthetics, ONLY Boom and Crash. No Forex, No XAUUSD, No EURUSD. EA Name: KEITY ROYALTY MARKETS: Only Deriv Boom and Crash. Total 20 markets: Boom 50, 99, 100, 150, 200, 300, 500, 600, 900, 1000 and Crash 50, 99, 100, 150, 200, 300, 500, 600, 900, 1000. Scan all 20 from ONE chart. MAIN LOGIC: 1. After a spike, counter goes to 0. EA must count ticks from history. On start, look back last
I am looking for an experienced MQL5 developer for the first milestone of a larger MetaTrader 5 project: a multi-symbol, multi-timeframe signal scanner with alerts. This milestone covers indicator integration only. There is no order placement or trade management at any stage. Scope of this milestone Read outputs from three custom indicators (provided as compiled files after selection and NDA) reliably via iCustom and
RA_BOT 2.0 36+ USD
//@version=4 study(title="UT Bot Alerts", overlay = true) // Inputs a = input(1, title = "Key Vaule. 'This changes the sensitivity'") c = input(10, title = "ATR Period") h = input(false, title = "Signals from Heikin Ashi Candles") xATR = atr(c) nLoss = a * xATR src = h ? security(heikinashi(syminfo.tickerid), timeframe.period, close, lookahead = false) : close xATRTrailingStop = 0.0 xATRTrailingStop := iff(src >
Andrew 50 - 200 USD
Hello, I am from Tanzania. I am looking for a professional MQL5 programmer from Tanzania who can help me develop and improve my automated MT5 trading robot. The project is called SMC XAVAGE AI, and it trades XAUUSD (Gold). I would like to discuss the project with you. Are you based in Tanzania? Would it be possible to arrange a meeting or a call? Thank you
Metafix 50 - 200 USD
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
Salman serhal 30 - 100 USD
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview
Hi Team We are looking to commission an Expert Advisor (EA) for MetaTrader 5 (MT5) to trade XAUUSD (Gold) . The EA requires tight risk management with a strict $2.00 Stop Loss and a $3.00 to $5.00 Take Profit target. The goal is to achieve a 60%+ Win Rate . Please propose or implement a strategy algorithm capable of meeting the following performance requirements on XAUUSD tick data: Target Performance: $\ge 60\%$ Win

Projektdetails

Budget