SELECTIVE ABSOLUTE DRAWDOWN MANAGER EA for MT4

MQL4 Asesores Expertos

Tarea técnica

SELECTIVE ABSOLUTE DRAWDOWN MANAGER EA or Selective ADM EA v1 for Metatrader 4. mq4 and ex4 files.


The idea of this EA it´s to manage the absolute drawdown of a complete trading account where different trading EA are running in differents symbols or magic numbers.

So how should it work?

Example:

I have a trading account with 4 symbol. Each symbol have 4 different trading bots.  So i open a fifth chart to install this new management EA. This new management EA will track the absolute drawdown of the entire trading account and when the absolute drawdown it´s more than 8% he will close all orders and pending orders ONLY from a symbol or from a magic number with the highest absolute drawdown value.

Simulation:

First time "cycle":
EA1 symbol EURUSD.cz  Magic Number= 2021  ADD= 1.01%
EA2 symbol EURAUD.cz  Magic Number= 2022  ADD = 4.77%
EA3 symbol USDCHF.cz  Magic Number= 2023  ADD = 0.34%
EA4 symbol GBPCAD.cz  Magic Number= 2024  ADD = 1.88%
Selective ADM EA running in EURUSD.cz but could be running in all kind of symbols.
Close specific open orders and pending orders when ABSOLUTE DRAWDOWN of the entire account  it´s x % of total balance = 8

In this situation when the entire account have a absolute drawdown of 8%, the Selective ADM EA close all orders and all pending orders ONLY in the symbol EURAUD.cz Magic Number= 2022 because it´s the highest (4.77%).
After close all orders and pending orders the EA2 should continue working and start open new trades.
The others EA must working normally. 
So the the new absolute drawdown now is 1.01 + 4.77 - 4.77 + 0.34 + 1.88 = 3.23% 

Some hours after we have a new situation:
Second time "cycle":
EA1 symbol EURUSD.cz  Magic Number= 2021  ADD= 1.80%
EA2 symbol EURAUD.cz  Magic Number= 2022  ADD = 1.15%
EA3 symbol USDCHF.cz  Magic Number= 2023  ADD = 2.47%
EA4 symbol GBPCAD.cz  Magic Number= 2024  ADD = 2.58%
Selective ADM EA running in EURUSD.cz but could be running in all kind of symbols.
Close specific open orders and pending orders when ABSOLUTE DRAWDOWN of the entire account  it´s x % of total balance = 8

In this situation when the entire account have a absolute drawdown of 8%,  the Selective ADM EA close all orders and all pending orders ONLY in the symbol GBPCAD.cz Magic Number= 2024 because it´s the highest (2.58%).
After close all orders and pending orders the EA4 should continue working and start open new trades.
The others EA must working normally. 
So the the new absolute drawdown now is 1.80 + 1.15 + 2.47 + 2.58 - 2.58 = 5.42% 


So in a trading week we can have several times or "cycles". If we have a week with low volatility maybe we have 0 or 1 times close trades "cycle" 
but if we have high volatility in the markets the Selective ADM EA will work more and we will have several times "cycles". 

General details about EA:

To calculate absolute drawdown balance and inicial deposit are the same.

This EA should working in all types of trading accounts (cent, micro, ECN, PRO...).

Maximum currency pairs to track = 16.

The EA should run in Forex Commodities (metals and energy) Indexes, Shares and Cryptocurency markets.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

INPUTS TABLE SUGGESTION (13 imputs in total):

MAIN:
Symbols to operate = (example: EURUSD.cz,EURAUD.cz,USDCHF.cz,GBPCAD.cz)
Magic numbers to operate = (example: 2021,2022,2023,2024)
Suffix of the currency pairs  = (example: EURUSD.cz = .cz)
Count commission and swap = True / False
Refresh interval in seconds = from 0.1 to 10.
Enable autotrading after close orders and pending orders in a specify symbol or magic number = True / False
(note: after close orders in a specify symbol or magic number the EA should restart and start new trades)


CONDITION:
Close specific open orders and pending orders when ABSOLUTE DRAWDOWN of the entire account  it´s x % of total balance = value from 00.01 to 99.99


ACTIONS (when the value of the condition is fulfilled):
Close all orders and all pending orders ONLY from the SYMBOL with the HIGHEST ABSOLUTE DRAWDOWN = True / False
Close all orders and all pending orders ONLY from the MAGIC NUMBER with the HIGHEST ABSOLUTE DRAWDOWN = True / False
Close all orders and all pending orders ONLY from the COMMENT with the HIGHEST ABSOLUTE DRAWDOWN = True / False

MISCELLANEOUS:
Send eMail when the value of the condition is fulfilled = True / False 
Send push notification when the value of the condition is fulfilled = True / False

Send alerts when the value of the condition is fulfilled = True / False

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

TESTING AFTER CODING:

When the developer finnish his work must test it one week from sunday to saturday before send to the client or if he haven´t condition to do that the client have 2 weeks to test the coding.
This job only be finnish and close after 2 weeks of testing without any issues. If the client find any issue the developer should fix as soon as possible.
After 2 weeks of testing the developer send the mq4 file and the client close successfully this job.

Note: To remmenber what is the absolute drawdown please open jpg attached.


Archivos adjuntos:

JPG
AbsoluteDD.jpg
115.7 Kb

Han respondido

1
Desarrollador 1
Evaluación
(365)
Proyectos
499
39%
Arbitraje
27
56% / 4%
Caducado
53
11%
Libre
2
Desarrollador 2
Evaluación
(174)
Proyectos
297
24%
Arbitraje
19
37% / 5%
Caducado
22
7%
Ocupado
3
Desarrollador 3
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
4
Desarrollador 4
Evaluación
(59)
Proyectos
87
17%
Arbitraje
3
0% / 0%
Caducado
2
2%
Libre
5
Desarrollador 5
Evaluación
(42)
Proyectos
88
14%
Arbitraje
34
26% / 56%
Caducado
36
41%
Trabajando
Solicitudes similares
* "Robot, revisa el calendario económico. Si hay un anuncio de la Reserva Federal que pueda afectar el mercado de divisas, pausa las operaciones y espera confirmación de la tendencia."
Necesito un bot que me pueda poner un takeprofit y un stoploss automáticamente y que me limite la cantidad de operaciones que puedo hacer en un día. Quiero que la relación riesgo beneficio sea de 1:3 y que la máxima cantidad de stoploss que me pueda poner sea del 1% del capital de mi cuenta
Buenas necesito el desarrollo de un bot con una estrategia simple, en este caso seria para operar noticias de medio y alto impacto, por lo que tambien se aceptaran sugerencias por parte del desarrollador, como aliciente si la sugerencia del desarrollador es una mejora hacia la estrategia la cual fuese efectiva, se daria un dinero a parte de lo que cueste el proyecto. EL PRECIO DEL PROYECTO NO ES NEGOCIABLE, YA QUE NO
Hola, busco alguien con experiencia en MQL5 para modificar un EA existente, esta 90% terminado solo necesito agregar al código una calculadora de lotaje funcional, con la cual estoy teniendo muchos problemas, el EA es simple, trabaja con RSI y SMA. I'm looking for someone with experience in MQL5 to modify an existing EA. It's 90% finished. I just need to add a functional lot calculator to the code, which I'm having a
Looking for a Developer to Create a Profitable and Secure Forex Expert Advisor (EA) Objective: I need an optimized scalping EA to trade during the New York session and London session with high accuracy, low drawdown, and a consistent return of at least 1% daily. Key Requirements: ✅ No Martingale or Grid. ✅ Each trade must have a defined SL and TP. ✅ Maximum drawdown: No more than 10% of the account. ✅ Customizable
Hola, hablo español. Necesito un elemento (bot, script, código, etc.) que me permita volver a poner en $000,00 el equity, balance de cualquier MT4-DEMO… Es decir que la deje como nueva en materia de fondeo. Al fondear la MT4 y lograr una ganancia en esa DEMO, necesito un dispositivo que cuando YO lo active, regrese a CEROS el equity y balance de esa misma DEMO. Cuánto cobras por este trabajo? Hello, I speak Spanish
Hola, quiero modificar y organizar mejor un EA que tengo para MT4 poniéndole unas mejoras, para poder pasar las pruebas de fondeo. Cuando estén las mejoras también quiero compilar el mismo EA para MT5. Solo tengo el código y el EA en M QL4 por un encargo que hice. Es ponerle las siguientes mejoras: GESTIÓN DEL RIESGO: 1.Máxima pérdida diaria en %. 2. Máxima ganancia diaria en % 3. Balance inicial cuenta
drán índices de grupos de parámetros. //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit () { // Load strategy parameter sets int totalParams = LoadParams(fileName_, params); // If nothing is loaded, report an error if (totalParams == 0 ) {

Información sobre el proyecto

Presupuesto
100+ USD
IVA (23%): 23 USD
Total: 123 USD
Para el ejecutor
90 USD
Plazo límite de ejecución
de 1 a 21 día(s)