Use an array function to perform a task in my code (Fixed budget $30)

MQL4 Asesores Expertos Lo demás

Trabajo finalizado

Plazo de ejecución 6 días
Comentario del Cliente
Excellent work
Comentario del Ejecutor
Thank you

Tarea técnica

Hello, I need someone to help solve a shortfall in my code using (Array). It should be simple and I'll be happy if you can get it done in a few hrs.

THE ISSUE:

I have coded a Partial Closure function that is expected to close (x% lots) off every trade running on the account having a specified Magic No. only when the net profit of these trades hit a stated max DD of Account Balance. (Symbol of trades doesn't matter).


I have observed that the function sometimes closes a ticket by the (x% lots) and the before loop finishes, it again closes (x% lots) off the resultant position from the initial one probably because it sees this new resultant ticket just as one of the old trades. This makes everything random and I want a solution....


My solution:

Developer should create an Array so that when maxDD is hit, this Array is populated with all existing tickets. If the partial closure function starts, the loop should then handle only the tickets found in the Array. This way, I believe the problem could be solved.

I'll share my code with the selected dev. and am also open to any other ideas or solutions....thanks!

Han respondido

1
Desarrollador 1
Evaluación
(97)
Proyectos
135
52%
Arbitraje
4
50% / 50%
Caducado
0
Trabaja
2
Desarrollador 2
Evaluación
(408)
Proyectos
512
38%
Arbitraje
83
37% / 33%
Caducado
13
3%
Trabajando
3
Desarrollador 3
Evaluación
(135)
Proyectos
177
18%
Arbitraje
17
47% / 18%
Caducado
0
Trabaja
4
Desarrollador 4
Evaluación
(36)
Proyectos
45
2%
Arbitraje
6
33% / 17%
Caducado
1
2%
Libre
5
Desarrollador 5
Evaluación
(63)
Proyectos
90
52%
Arbitraje
10
40% / 30%
Caducado
7
8%
Libre
6
Desarrollador 6
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
7
Desarrollador 7
Evaluación
(257)
Proyectos
341
58%
Arbitraje
7
14% / 71%
Caducado
9
3%
Libre
8
Desarrollador 8
Evaluación
(300)
Proyectos
450
65%
Arbitraje
5
40% / 0%
Caducado
4
1%
Trabajando
9
Desarrollador 9
Evaluación
(58)
Proyectos
67
28%
Arbitraje
6
0% / 67%
Caducado
2
3%
Libre
Solicitudes similares
Preciso de um EA que abra ordens a mercado a partir de um indicador, Ele precisa obter take e stop loss fixos, spread máximo, horários de início e final das operações, meta e stop diário, martingale, painel e a função no script para que eu possa ceder o EA apartir do id do mt4 de terceiros
Hello Investors, I'm selling a profitable and stable expert advisor trading on the Gold (XAUUSD) pair using a cutting-edge scalping strategy. The EA is able to generate a stable monthly income without using martingale strategy, and with an optional cut loss in place. Particularly the average monthly gain can go from 2-3% (at a relatively low risk, with an historical max DD of 6%) to 20-30% (with an aggressive style
Hello, I have a strategy and I need a very good programmer who will create me an exprt or make me an indicator that will open positions for buy/sell limit (see picture below). The indicator/Expert will have to open positions (buy/sell limit) regarding the strategy and indicators (I will explain it more in collaboration). Below I will give pictures of what I mean. I will send a link to the telegram group where it
Atomic Analyst Indicator to EA. I have an mt4 indicator called Atomic Analyst. The indicator gives buy/sell signals as shown in the screenshot. I want to know if you can take this indicator, and create an EA that automatically takes the signals. The indicator puts in the SL and TP1, TP2, TP3, TP4, TP5 automatically. I would like the option to put in my lot size parameter and I would also like an automatic trail stop
can you help me with Ctrader i need modification on the linkhttps://docs.google.com/document/d/1fggk49xWbnwahtfOlE-U7G6muZB1FT8eWmftGiY7R-s/edit?usp=sharing can you assist with cTrader modifications to enhance functionality and improve performance. do text me if you a professional on it i will be looking forward to your response best regards
MT4 Expert Advisor 30 - 120 USD
EA sittings The EA utilises the concept of grid and hedging by creating a zone for recovering losing trades It is a continues trading EA without any stop loss. The EA initially aims to trade continually without the need to hedge. The EA enter the first trade following the direction of the moving average (when price is above or below the moving average), and only hedge when, the trade goes against the trend and reach
Would I honestly need is someone who can make a profitable EA for me that can at least make me around $80 a day starting with $50 and the EA must be able to work with exness the EA should automat trades 24/7. Broker = Exness Pairs = USD/JPY XAU/USD and etc Chart time frames = M1 M15 History = last month till last 6 months. Lot size 0.10 take profit at $2 stop
Hello i am seeking a skilled MetaTrader 5 (MQL5) developer to modify an existing Telegram signal copier. The goal is to enhance the copier's functionality, reliability, and user experience. kindly bid this job to get started immediately
Hello, I’m looking for assistance with creating or customizing a TradingView indicator to suit my trading needs. If you have experience in this area, please reach out. Your help would be greatly appreciated. Thanks
# MT4 Expert Advisor Development Rules ## Time Period Definition 1. Allow user to define a specific time period (e.g., 10:00 to 15:00). 2. Identify and store the high and low prices within this period. ## Price Breakout Detection 3. Monitor current price for breakouts above the period high or below the period low. ## Signal Confirmation (signals will be taken on m5 timeframe) 4. After a breakout, wait for a signal

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD
Plazo límite de ejecución
de 1 a 2 día(s)