Expert Advisor - Order Management

MQL4 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 2 días
Comentario del Cliente
Very professional. He sent a very detailed video of the EA, highlighting all my requirements. He worked very fast to fix a few details according to my needs. Highly recommended!
Comentario del Ejecutor
Great Customer. Clearly requirment, fast test and fast payment. Hope work with him again. thank for all.

Tarea técnica

I have a robot that always opens two trades simultaneously, with the same signal.

The stop loss is the same for both trades. The first trade is given a take profit and the 2nd trade doesn't have a take profit.
When the first trades reaches the take profit, it closes. At the same time, the 2nd trade moves the stop loss to breakeven.

If a certain condition happens meanwhile, both trades are closed.
Otherwise, if the first trade is already closed, the 2nd trade is closed when that condition appears.


TO DO:

  • Work with 4 and 5 digit brokers.
  • Move Stop Loss to breakeven on the 2nd order when price reaches a certain condition, or if first trade closed due to hitting take profit.
  • If certain condition happens before price reaches TP or SL, close both trades. Otherwise, if the first trade is already closed, the 2nd trade is closed when that condition appears.
  • For each signal, open only the two trades, even if the conditions that triggered the trade remain active. Only open a new set of trades in the next valid signal.
  • Check if the both trades really opened. If one the trades didn't open, retry next tick.
  • Open lot size based on percentage of balance (based on stop loss amount).

- If the lot size is odd, like 0.07, it'll round to the nearest, smaller, even number: 0.06 (and divide by 2, opening 0.03 for each trade).
- If the account does not have enough money for the risk percentage, open smaller lots. In extreme case (account is too small for the risk), open 0.01 for each of the two trades, but still, open the trades.
- If the account only accepts mini lots and not micro lots, and it cannot open the trades based on the risk, show error to user.

Example:
stop loss: 50 pips
balance: 1000
risk percentage: 2%

lot size: ((1000 * 0.02) / 50) / 10 = 0.04 lots. Each of the two trades will open with 0.02 lots.

 

Notes:

I have attached the current mq4 file. It doesn't work well and the entry/exit conditions are random, but it's only for you to get an idea.

I am only interested in the trade management part of the EA, as I'll write the entry conditions myself.

Han respondido

1
Desarrollador 1
Evaluación
(473)
Proyectos
709
56%
Arbitraje
45
31% / 31%
Caducado
115
16%
Libre
2
Desarrollador 2
Evaluación
(182)
Proyectos
342
42%
Arbitraje
118
12% / 73%
Caducado
104
30%
Libre
3
Desarrollador 3
Evaluación
(118)
Proyectos
201
42%
Arbitraje
44
9% / 68%
Caducado
47
23%
Libre
4
Desarrollador 4
Evaluación
(62)
Proyectos
140
46%
Arbitraje
19
42% / 16%
Caducado
32
23%
Libre
5
Desarrollador 5
Evaluación
(90)
Proyectos
159
61%
Arbitraje
40
18% / 63%
Caducado
70
44%
Libre
6
Desarrollador 6
Evaluación
(54)
Proyectos
164
43%
Arbitraje
43
47% / 16%
Caducado
58
35%
Libre
7
Desarrollador 7
Evaluación
(267)
Proyectos
542
50%
Arbitraje
55
40% / 36%
Caducado
225
42%
Trabajando
8
Desarrollador 8
Evaluación
(71)
Proyectos
254
53%
Arbitraje
16
50% / 38%
Caducado
83
33%
Libre
9
Desarrollador 9
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
Dear Freelancer, My name is startingfrom4 and am a member of mt5 community and i have purchased many indicator and EA here in mt5 community. However, right now i want to develop a simple EA but i do not have fund to do it. Please i beg a developer to please help me write the simple program for free and that is why i filled this freelancer form. Please help. Specification: I need a protection program that will
Necesito replicar en Metatrader las operaciones de un grupo de Telegram , operaciones sencillas con un solo TP, no hay cierre de parciales, únicamente dos órdenes breakeven y cerrar operaciones
Buenas , necesito una copiadora que replique mis operaciones en metatrader 4 o 5 a la plataforma MATCHTRADER , copiadora simple sin ningún extra más , necesito que se entregue está semana
Hello, I am looking for an Expert Advisor (EA) that can generate approximately 25% to 30% monthly returns on a capital of $1,000 with minimal risk. If you're interested in this project, please apply immediately with the following: An .ex5 file of the EA. A clear expiration date of 2 days. Suggested input parameters that you believe are optimal. Recommended trading pairs for the EA. I will conduct back testing and
I’m looking for a skilled developer to create an automated trading bot based on a strategy using Heikin Ashi candles and Two Supertrend lines . Preferred: Candidates with prior experience in developing bots using Heikin Ashi and code Supertrend lines. Here are the key requirements: 1. Supertrend Indicator Customization: - The Supertrend should be based on Heikin Ashi prices in stead of standard candlestick prices. -
Hello, I’m looking for a TradingView indicator that fits my forex trading needs. If you can create or customize one for me, please reach out. I'd appreciate your help! Thanks
Hello, I’m looking for a TradingView indicator that fits my forex trading needs. If you can create or customize one for me, please reach out. I'd appreciate your help! Best regards
Need top Professional programmer to code algorithm trading bot based on the ideas trading strategies I made for myself, you must be well experienced and can delivered the best quality solutions, you must be ready to pay quick reply and ensuring that you are capable to code exactly
Need top Professional programmer to code algorithm trading bot based on the ideas trading strategies I made for myself, you must be well experienced and can delivered the best quality solutions, you must be ready to pay quick reply and ensuring that you are capable to code exactly
I want someone who knows about grid martingale strategy very. I will send strategy when prove that you can do it well. The grid martingale strategy is a trading approach that combines elements of grid trading and the martingale strategy. It involves setting up a series of buy and sell orders at fixed price intervals, forming a "grid." When the price moves against your initial position, additional orders are placed

Información sobre el proyecto

Presupuesto
10 - 40 USD
IVA (23%): 2.3 - 9.2 USD
Total: 12.3 - 49.2 USD
Para el ejecutor
9 - 36 USD
Plazo límite de ejecución
de 1 a 7 día(s)