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

MQL5 EA

명시

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.


응답함

1
개발자 1
등급
(107)
프로젝트
175
25%
중재
23
13% / 78%
기한 초과
16
9%
무료
2
개발자 2
등급
(242)
프로젝트
285
77%
중재
13
69% / 0%
기한 초과
4
1%
작업중
3
개발자 3
등급
(160)
프로젝트
169
44%
중재
3
33% / 33%
기한 초과
1
1%
로드됨
4
개발자 4
등급
(2665)
프로젝트
3396
68%
중재
77
48% / 14%
기한 초과
342
10%
무료
게재됨: 1 코드
5
개발자 5
등급
(543)
프로젝트
824
62%
중재
33
27% / 45%
기한 초과
23
3%
무료
게재됨: 1 코드
6
개발자 6
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
7
개발자 7
등급
(279)
프로젝트
376
72%
중재
19
32% / 47%
기한 초과
14
4%
무료
게재됨: 14 코드
8
개발자 8
등급
(5)
프로젝트
10
10%
중재
2
0% / 50%
기한 초과
2
20%
작업중
9
개발자 9
등급
(2322)
프로젝트
2925
63%
중재
123
45% / 25%
기한 초과
429
15%
작업중
10
개발자 10
등급
(8)
프로젝트
11
0%
중재
7
29% / 71%
기한 초과
2
18%
작업중
11
개발자 11
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
12
개발자 12
등급
(47)
프로젝트
55
33%
중재
15
27% / 60%
기한 초과
1
2%
작업중
13
개발자 13
등급
(250)
프로젝트
460
26%
중재
139
20% / 60%
기한 초과
100
22%
무료
14
개발자 14
등급
(77)
프로젝트
243
74%
중재
7
100% / 0%
기한 초과
1
0%
무료
게재됨: 1 기고글
15
개발자 15
등급
(454)
프로젝트
717
34%
중재
34
71% / 9%
기한 초과
22
3%
무료
16
개발자 16
등급
(7)
프로젝트
9
0%
중재
2
0% / 100%
기한 초과
0
무료
게재됨: 1 기고글
17
개발자 17
등급
(434)
프로젝트
635
54%
중재
32
56% / 22%
기한 초과
6
1%
로드됨
18
개발자 18
등급
(258)
프로젝트
265
29%
중재
0
기한 초과
3
1%
무료
게재됨: 2 코드
19
개발자 19
등급
(62)
프로젝트
90
29%
중재
24
13% / 58%
기한 초과
7
8%
작업중
20
개발자 20
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
21
개발자 21
등급
(27)
프로젝트
29
38%
중재
0
기한 초과
3
10%
무료
22
개발자 22
등급
(1)
프로젝트
1
0%
중재
0
기한 초과
0
무료
23
개발자 23
등급
(21)
프로젝트
27
41%
중재
4
50% / 50%
기한 초과
1
4%
작업중
24
개발자 24
등급
(19)
프로젝트
27
11%
중재
11
9% / 55%
기한 초과
12
44%
무료
25
개발자 25
등급
(24)
프로젝트
30
30%
중재
0
기한 초과
2
7%
작업중
26
개발자 26
등급
(2)
프로젝트
2
0%
중재
0
기한 초과
0
무료
27
개발자 27
등급
(41)
프로젝트
47
60%
중재
4
50% / 25%
기한 초과
0
작업중
28
개발자 28
등급
(28)
프로젝트
32
25%
중재
20
10% / 50%
기한 초과
10
31%
작업중
29
개발자 29
등급
(199)
프로젝트
255
21%
중재
23
48% / 17%
기한 초과
0
작업중
30
개발자 30
등급
(4)
프로젝트
5
0%
중재
1
100% / 0%
기한 초과
1
20%
로드됨
비슷한 주문
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

프로젝트 정보

예산
30+ USD