"Emergency Bailout" EA for MT4 needed

Esperti

Lavoro terminato

Tempo di esecuzione 9 giorni
Feedback del dipendente
Very responsible customer.
Feedback del cliente
I am happy! :-)

Specifiche

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). 

Con risposta

1
Sviluppatore 1
Valutazioni
(73)
Progetti
257
53%
Arbitraggio
16
50% / 38%
In ritardo
83
32%
Gratuito
2
Sviluppatore 2
Valutazioni
(564)
Progetti
845
73%
Arbitraggio
15
53% / 13%
In ritardo
193
23%
Gratuito
3
Sviluppatore 3
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
4
Sviluppatore 4
Valutazioni
(27)
Progetti
48
38%
Arbitraggio
6
17% / 50%
In ritardo
30
63%
Gratuito
Pubblicati: 12 articoli, 1 codice
Ordini simili
Hello I need an EA for MT4 The EA uses only indicator, which shows a buy arrow for buy signal , and a sell arrow for sell signal. Conditions to open a trade: Open BUY trade, when we have a buy arrow show up, CANDLE CLOSES , AND THE ARROW IS STILL THERE .Then open BUY TRADE Open SELL trade, when we have a sell arrow show up, CANDLE CLOSES , AND THE ARROW IS THIS THERE .Then open BUY TRADE Open Close on opposite
​ Indicators: Fast MA (Period 10, Exponential) and Slow MA (Period 50, Exponential). ​ Buy Signal: When Fast MA crosses above Slow MA. ​ Sell Signal: When Fast MA crosses below Slow MA. ​ Risk Management & Parameters: ​Customizable Lot Size (Default: 0.01). ​Stop Loss (SL) and Take Profit (TP) in pips. ​Trailing Stop options. ​Max Spread filter. ​ Platform: MetaTrader 5 (MQL5)
​ Indicators: Fast MA (Period 10, Exponential) and Slow MA (Period 50, Exponential). ​ Buy Signal: When Fast MA crosses above Slow MA. ​ Sell Signal: When Fast MA crosses below Slow MA. ​ Risk Management & Parameters: ​Customizable Lot Size (Default: 0.01). ​Stop Loss (SL) and Take Profit (TP) in pips. ​Trailing Stop options. ​Max Spread filter. ​ Platform: MetaTrader 5 (MQL5)
A robot 30+ USD
Je souhaite trouver un développeur pour réaliser ce travail et effectuer les paiements via cette application. Je m'engage à ne communiquer avec les candidats que par cette application, y compris par messageries tierces, correspondance personnelle ou courriel. Je comprends que toute personne ne respectant pas ces conditions sera interdite de publier des commandes sur la plateforme Freelance
I am looking for an experienced MQL5/MT5 developer to develop a custom Expert Advisor based on a complete technical architecture already prepared by the client. This is not a request to design a trading strategy from scratch . The strategy architecture, entry/exit concepts, filters, risk-management requirements and testing requirements are already documented. The main responsibility will be MQL5 development
EAs 100+ USD
To apply, you must already have your EA running on an active MT5 trading account connected to the market. The account must have genuine trading history that can be independently reviewed and verified. EA Requirements 1. Prop-Firm Compatible Risk Management - The EA must include daily and overall drawdown protection. - Required inputs: "MaxDailyLoss = 5%" "MaxTotalDrawdown = 10%" - Once either limit is
Strategy 40 - 60 USD
yo i have a strategy i would really like to turn into a signal bot basically please this is very technical and serious to me the strategy needs more time 1 time frame and the bot most be 100% accurate
Ready to use bot 100+ USD
seller must provide the following to be considered... i will answer to all who fit this description, and can purchase more than 1 EA... - brief strategy description - overall EA expectancy - 1 week limited trial version, with whatever settings you consider best (can be blocked on demo, i don't really care) - investor password from a reputable broker (if history is available... live / demo, same thing, doesn't really
I want you to develop a professional HFT trading robot for MT5/MQL5 , initially focused on XAUUSD . The robot should be designed for high-speed tick-level trading , analyzing real-time bid/ask movement, spread, tick velocity, momentum, volatility, price acceleration and short-term market microstructure to identify very short-term opportunities. The core strategy should be capable of opening 5–10+ positions in a
can you help me use a Tickblaze Algo NRBO on the NT platform? I have it somewhat set up, but I have other questions about running it & knowing how to operate it in NT. Thank you if anyone have experience in this kindly bib and let do it asap

Informazioni sul progetto

Budget