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.
Commandes similaires
Project Overview I have an existing MT5 Expert Advisor (EA) written in MQL5. The source code ( .mq5 ) will be provided. The underlying strategy is a trend-following system that performs well during trending market conditions, but requires professional quantitative research to improve its ability to identify and avoid highly sideways/range-bound market conditions. The objective of this project is not to build a new EA
I am looking for an experienced MQL5 Expert Advisor (EA) developer to analyze an existing trading setup and develop a similar automated trading robot. Project Overview I have access to a demo trading account where trades are being executed automatically. The trading results look very promising, but I do not know exactly what strategy, logic, indicators, or trade-management rules are being used. I will provide access
Most of the expert is already coded . Create a panel to show the Ratio for the Range . Trigger is based on ratio . Show Distribution / project starts after we clear Distribution
Modification of existing ea …. Add ema filter, add risk percentage per trade, and modify the pips per day filter. I already have the ea code I just need these things added and modifified
double CRiskManager::CalculateLotSize(double slPoints) { double balance = AccountInfoDouble(ACCOUNT_BALANCE); double riskMoney = balance * (m_riskPercent / 100.0); double tickValue = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE); double tickSize = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE); double pointValue = tickValue / tickSize; double lot = riskMoney / (slPoints * pointValue);
i share my strategy i need a bot trending bot fo mt5 . i attached the photo with this it help to make bot. it basicly 1 hours time frame base. i try but failed to make it
Title: Simple background trading bot for my Oanda account (v20 REST API) Overview Hi, I need a simple, lightweight event based standalone trading bot that connects directly to my Oanda account using broker’s standard REST API (V20 account) via VPS The bot just needs to look at group of 5 currency pairs (manually selectable and adjustable) in different 4 baskets, do some basic percentage math every period, and place
📄 وثيقة المواصفات الفنية لروبوت التداول (MQL5 EA Specification) 📌 1. ملخص المشروع والهدف * اسم المشروع: Gold Cent Grid-Hedge EA * المنصة: MetaTrader 5 (MQL5) * أداة التداول: الذهب (XAUUSD) * نوع الحساب: حساب سنت (Cent Account) * فكرة الاستراتيجية: تداول شبكة هيدج متوازنة (Grid-Hedging) تفتح صفقات تعزيز كل مسافة محددة، وتغلق الطرف الأكثر ربحاً عند تحقيق هدف مالّي مجمع بالدولار/السنت لإعادة هيكلة التوازن. ⚙️ 2
I need a developer who also understands trading. I have a Telegram copy-trading bot that reads signals from a Telegram channel via a Python script and converts them into trading orders. I want to create a program that analyzes Gold (XAUUSD) charts specifically and sends signals in this exact format: #XAUUSD BUY 4324-4321 TP 4327 TP 4330 TP 4334 TP 4339 TP 4344 TP 4354 TP 4364 SL 4311 If the # symbol is missing at the
Hi developer I want to convert my mt4 EA to mt5 EA . I have a mt4 ea with source code. i want developer to copy same mt4 code and create mt5 EA