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

MQL5 Experts

Termos de Referência

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.


Respondido

1
Desenvolvedor 1
Classificação
(107)
Projetos
175
25%
Arbitragem
23
13% / 78%
Expirado
16
9%
Livre
2
Desenvolvedor 2
Classificação
(242)
Projetos
285
77%
Arbitragem
13
69% / 0%
Expirado
4
1%
Trabalhando
3
Desenvolvedor 3
Classificação
(160)
Projetos
169
44%
Arbitragem
3
33% / 33%
Expirado
1
1%
Carregado
4
Desenvolvedor 4
Classificação
(2665)
Projetos
3396
68%
Arbitragem
77
48% / 14%
Expirado
342
10%
Livre
Publicou: 1 código
5
Desenvolvedor 5
Classificação
(543)
Projetos
824
62%
Arbitragem
33
27% / 45%
Expirado
23
3%
Livre
Publicou: 1 código
6
Desenvolvedor 6
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
7
Desenvolvedor 7
Classificação
(279)
Projetos
376
72%
Arbitragem
19
32% / 47%
Expirado
14
4%
Livre
Publicou: 14 códigos
8
Desenvolvedor 8
Classificação
(5)
Projetos
10
10%
Arbitragem
2
0% / 50%
Expirado
2
20%
Trabalhando
9
Desenvolvedor 9
Classificação
(2322)
Projetos
2925
63%
Arbitragem
123
45% / 25%
Expirado
429
15%
Trabalhando
10
Desenvolvedor 10
Classificação
(8)
Projetos
11
0%
Arbitragem
7
29% / 71%
Expirado
2
18%
Trabalhando
11
Desenvolvedor 11
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
12
Desenvolvedor 12
Classificação
(47)
Projetos
55
33%
Arbitragem
15
27% / 60%
Expirado
1
2%
Trabalhando
13
Desenvolvedor 13
Classificação
(250)
Projetos
460
26%
Arbitragem
139
20% / 60%
Expirado
100
22%
Livre
14
Desenvolvedor 14
Classificação
(77)
Projetos
243
74%
Arbitragem
7
100% / 0%
Expirado
1
0%
Livre
Publicou: 1 artigo
15
Desenvolvedor 15
Classificação
(454)
Projetos
717
34%
Arbitragem
34
71% / 9%
Expirado
22
3%
Livre
16
Desenvolvedor 16
Classificação
(7)
Projetos
9
0%
Arbitragem
2
0% / 100%
Expirado
0
Livre
Publicou: 1 artigo
17
Desenvolvedor 17
Classificação
(434)
Projetos
635
54%
Arbitragem
32
56% / 22%
Expirado
6
1%
Carregado
18
Desenvolvedor 18
Classificação
(258)
Projetos
265
29%
Arbitragem
0
Expirado
3
1%
Livre
Publicou: 2 códigos
19
Desenvolvedor 19
Classificação
(62)
Projetos
90
29%
Arbitragem
24
13% / 58%
Expirado
7
8%
Trabalhando
20
Desenvolvedor 20
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
21
Desenvolvedor 21
Classificação
(27)
Projetos
29
38%
Arbitragem
0
Expirado
3
10%
Livre
22
Desenvolvedor 22
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
23
Desenvolvedor 23
Classificação
(21)
Projetos
27
41%
Arbitragem
4
50% / 50%
Expirado
1
4%
Trabalhando
24
Desenvolvedor 24
Classificação
(19)
Projetos
27
11%
Arbitragem
11
9% / 55%
Expirado
12
44%
Livre
25
Desenvolvedor 25
Classificação
(24)
Projetos
30
30%
Arbitragem
0
Expirado
2
7%
Trabalhando
26
Desenvolvedor 26
Classificação
(2)
Projetos
2
0%
Arbitragem
0
Expirado
0
Livre
27
Desenvolvedor 27
Classificação
(41)
Projetos
47
60%
Arbitragem
4
50% / 25%
Expirado
0
Trabalhando
28
Desenvolvedor 28
Classificação
(28)
Projetos
32
25%
Arbitragem
20
10% / 50%
Expirado
10
31%
Trabalhando
29
Desenvolvedor 29
Classificação
(199)
Projetos
255
21%
Arbitragem
23
48% / 17%
Expirado
0
Trabalhando
30
Desenvolvedor 30
Classificação
(4)
Projetos
5
0%
Arbitragem
1
100% / 0%
Expirado
1
20%
Carregado
Pedidos semelhantes
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

Informações sobre o projeto

Orçamento
30+ USD