I need to Add Money Management System and Recovery System in my EA.

MQL5 Asesores Expertos

Tarea técnica

Money Management System

The Money Management System provides two modes for determining trade lot sizes: Fixed Lot Size and Variable Lot Size.
Inputs
Lot Size = Fixed or Variable
Recovery System = True or False
Compounding = True of False

1. Fixed Lot Size

In Fixed Lot Size mode, all trades are opened using a predefined lot size selected by the user through the EA inputs. The selected lot size remains constant for every trade.

The only exception is when the Recovery System is enabled. In such cases, recovery trades will use a different lot size calculation method based on the recovery settings.

2. Variable Lot Size

Variable Lot Size is based on a percentage-driven money management model. The lot size is automatically calculated using the following factors:

Account Balance Which is added in inputs not broker balance.

Trade Size (Stop Loss in pips)

Selected Gain Percentage (Gain means profit here we will focus on profit)

For example, if the selected gain percentage is 1%, the trade size is 10 pips, and the account balance is $1,000, the system will calculate the appropriate lot size required to achieve the specified target percentage.

The calculation will be based on selected balance that we will add manually in inputs.

If compounding is on then will be select on equity

Recovery System

The Recovery System is an optional feature that can be enabled or disabled through the EA inputs.

When enabled, any trade that closes in loss will activate Recovery Mode. The next trade will be treated as a recovery trade. If additional losses occur, all consecutive losses are accumulated and carried forward until the recovery cycle is completed.

Recovery trades continue until the total accumulated losses have been recovered.

Recovery Lot Size Calculation

The recovery target is calculated as:

Recovery Target = Total Previous Losses + Expected Profit from the Next Trade

If multiple consecutive losing trades occur, all losses are accumulated and included in the recovery calculation.

Example

l  Trade 1 Loss = -$50

l  Trade 2 Loss = -$30

l  Trade 3 Loss = -$20

l  Total accumulated loss = -$100

The next recovery trade will calculate its lot size based on recovering the $100 loss plus the profit target defined for the new trade.


Han respondido

1
Desarrollador 1
Evaluación
(107)
Proyectos
175
25%
Arbitraje
23
13% / 78%
Caducado
16
9%
Libre
2
Desarrollador 2
Evaluación
(242)
Proyectos
285
77%
Arbitraje
13
69% / 0%
Caducado
4
1%
Trabaja
3
Desarrollador 3
Evaluación
(160)
Proyectos
169
44%
Arbitraje
3
33% / 33%
Caducado
1
1%
Trabajando
4
Desarrollador 4
Evaluación
(2665)
Proyectos
3396
68%
Arbitraje
77
48% / 14%
Caducado
342
10%
Libre
Ha publicado: 1 ejemplo
5
Desarrollador 5
Evaluación
(543)
Proyectos
824
62%
Arbitraje
33
27% / 45%
Caducado
23
3%
Libre
Ha publicado: 1 ejemplo
6
Desarrollador 6
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
7
Desarrollador 7
Evaluación
(279)
Proyectos
376
72%
Arbitraje
19
32% / 47%
Caducado
14
4%
Libre
Ha publicado: 14 ejemplos
8
Desarrollador 8
Evaluación
(5)
Proyectos
10
10%
Arbitraje
2
0% / 50%
Caducado
2
20%
Trabaja
9
Desarrollador 9
Evaluación
(2322)
Proyectos
2925
63%
Arbitraje
123
45% / 25%
Caducado
429
15%
Trabaja
10
Desarrollador 10
Evaluación
(8)
Proyectos
11
0%
Arbitraje
7
29% / 71%
Caducado
2
18%
Trabaja
11
Desarrollador 11
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(47)
Proyectos
55
33%
Arbitraje
15
27% / 60%
Caducado
1
2%
Trabaja
13
Desarrollador 13
Evaluación
(250)
Proyectos
460
26%
Arbitraje
139
20% / 60%
Caducado
100
22%
Libre
14
Desarrollador 14
Evaluación
(77)
Proyectos
243
74%
Arbitraje
7
100% / 0%
Caducado
1
0%
Libre
Ha publicado: 1 artículo
15
Desarrollador 15
Evaluación
(454)
Proyectos
717
34%
Arbitraje
34
71% / 9%
Caducado
22
3%
Libre
16
Desarrollador 16
Evaluación
(7)
Proyectos
9
0%
Arbitraje
2
0% / 100%
Caducado
0
Libre
Ha publicado: 1 artículo
17
Desarrollador 17
Evaluación
(434)
Proyectos
635
54%
Arbitraje
32
56% / 22%
Caducado
6
1%
Trabajando
18
Desarrollador 18
Evaluación
(258)
Proyectos
265
29%
Arbitraje
0
Caducado
3
1%
Libre
Ha publicado: 2 ejemplos
19
Desarrollador 19
Evaluación
(62)
Proyectos
90
29%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabaja
20
Desarrollador 20
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
21
Desarrollador 21
Evaluación
(27)
Proyectos
29
38%
Arbitraje
0
Caducado
3
10%
Libre
22
Desarrollador 22
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
23
Desarrollador 23
Evaluación
(21)
Proyectos
27
41%
Arbitraje
4
50% / 50%
Caducado
1
4%
Trabaja
24
Desarrollador 24
Evaluación
(19)
Proyectos
27
11%
Arbitraje
11
9% / 55%
Caducado
12
44%
Libre
25
Desarrollador 25
Evaluación
(24)
Proyectos
30
30%
Arbitraje
0
Caducado
2
7%
Trabaja
26
Desarrollador 26
Evaluación
(2)
Proyectos
2
0%
Arbitraje
0
Caducado
0
Libre
27
Desarrollador 27
Evaluación
(41)
Proyectos
47
60%
Arbitraje
4
50% / 25%
Caducado
0
Trabaja
28
Desarrollador 28
Evaluación
(28)
Proyectos
32
25%
Arbitraje
20
10% / 50%
Caducado
10
31%
Trabaja
29
Desarrollador 29
Evaluación
(199)
Proyectos
255
21%
Arbitraje
23
48% / 17%
Caducado
0
Trabaja
30
Desarrollador 30
Evaluación
(4)
Proyectos
5
0%
Arbitraje
1
100% / 0%
Caducado
1
20%
Trabajando
Solicitudes similares
Hello, I have two Expert Advisors (EAs) that I'm migrating to my MQL5 VPS. I need a program that I can run on a separate chart or other interface to: - Allow EA #2 (with the magic number) to trade only during the Asian session. Therefore, EA #2 needs to be blocked during all other sessions. - Allow EA #1 to trade without restriction. Thank you
Labouchere System has many series and can transfer the Units to any other Series when needed (this function is very important). Building a dedicated SeriesManager class to handle all eight arrays would be very useful to make the unit transfers "atomic," so the logic is bulletproof and we never have to worry about data errors during the series transitions. The coders who really knows this cancellation sytem can apply
Project Overview I need an MQL5 developer to review and confirm their understanding of this project before providing a quote. Objective: Backtest an Opening Range Breakout (ORB) strategy on NAS100USD and generate detailed trade documentation. Requirements: Instrument NAS100USD only. Backtesting Run the ORB strategy on historical data. Target a minimum of 200 trades if the available data allows. Advise how much
Looking to buy profitable MT4/MT5 Expert Advisors (EAs). Requirements: • Fully automated • 6+ months backtest • 100+ trades • No martingale or grid systems Send: • Backtest report • Max drawdown • Markets traded • Brief strategy summary Only original EAs developed by you. Long-term collaboration available
Hi, We are an experienced team of quants with products top ranked in MQL5 but who needs to gain audience on 10K+ communities to advertise EA to get more traffic on mql5. Thanks
We are looking to purchase Expert Advisors (EAs) for MetaTrader 4 and MetaTrader 5. Requirements: -Minimum 6 months of history (12+ months preferred). -Forex pairs, Gold (XAUUSD), Indices, Commodities, or Crypto CFDs are all acceptable. -Fully automated. -No martingale. -No grid systems. -No lot multiplication or position size scaling based on previous wins or losses. -Not dependent on extremely low spreads/slippage
DESCRIPTION: I require an experienced MQL5 developer to build a fully automated, multi‑engine, multi‑asset trend‑following trading system for MetaTrader 5. The system includes: Multiple TrendEngine instances (one per symbol) A PortfolioController that manages all engines Volatility‑regime detection Dual‑timeframe confirmation ATR‑based breakout logic ATR‑based stop management Micropyramiding Risk‑weighted satellites
Description: I need a semi-automatic Expert Advisor (EA) developed for MetaTrader 5 (Hedging account, optimized for Exness Cent accounts) to manage my manual trades on Gold (XAUUSD) using a positive pyramiding trend-following strategy. Detailed Specifications: 1. Multi-Basket Management (Crucial): The EA does NOT open the initial trade. It waits for me to open a manual trade (Buy or Sell). If I open another manual
Live chart [ expert is not executing trades on xauusd ] , Deleting Existing Parameter not in use , Live Chart Adjustments Only , No Need to Change anything else , expert will be live testing Throughout
El 3aksiyat 0 35+ USD
//@version=6 indicator("منظومة El_3aksiiya 0 المتكاملة", overlay=true, max_labels_count=500, max_boxes_count=500, max_lines_count=500) // الألوان color_accum = color.new(#0000FF, 85) color_manip = color.new(#FFFF00, 80) color_dist = color.new(#FFC0CB, 80) color_elliot = #FF8C00 color_fib = #FFFF00 color_entry = #00FFFF color_tp = #00FF00 rsiVal = ta.rsi(close, 14) // نموذج AMD var int barCount = 0 if

Información sobre el proyecto

Presupuesto
30+ USD