Lot Size & Risk Management Guide
π Overview
This section controls how the EA calculates lot sizes for each trade. You can choose between automatic lot sizing based on risk percentage, or fixed lot sizes.
βοΈ Settings Explained
1. Lot Size Calculation Mode
LotMode = AUTO_LOT | FIXED_LOTSIZE | LOT_BY_BALANCEAUTO_LOT: EA automatically calculates lot size based on your risk percentage and Stop Loss distance.
β Best for consistent risk management
β Adapts to different Stop Loss sizes
β οΈ Requires proper SL in signals
FIXED_LOTSIZE: Uses predetermined lot sizes regardless of risk.
β Simple and predictable
β Good for testing strategies
β οΈ Risk varies with SL distance
LOT_BY_BALANCE: Scales lot size with account balance.
2. Basic Risk Settings
Balance
Set to
0β EA uses your current MT4 account balanceSet to specific value β EA uses this for risk calculations
Useful for testing with virtual balance
MaxRiskPerTrade
Percentage of balance you're willing to risk per trade
Example: $10,000 balance Γ 1% = $100 risk per trade
Conservative: 0.5-1%
Moderate: 1-2%
Aggressive: 2-5%
LotDefault
Used when
LotMode = FIXED_LOTSIZEThis is your default lot for all trades
3. TP Level Configuration
MaxTPLevel
Sets the highest Take Profit level EA will use from signals.
Example:
Signal has: TP1, TP2, TP3, TP4, TP5
You set:
MaxTPLevel = TP3EA will only open orders for TP1, TP2, TP3
TP4 and TP5 are ignored
MaxOrdersPerSignal
1= Open only 1 order per signal3= Open up to 3 orders (for TP1, TP2, TP3)5= Open 5 orders (one for each TP level)
numberOpenOrderConfig
NUMBER_BY_TP_SIGNAL: Opens orders based on TP levels in signal
Signal has TP1, TP2, TP3 β Opens 3 orders
NUMBER_BY_CONFIG: Opens orders based on MaxOrdersPerSignal
Even if signal has 5 TPs, opens only
MaxOrdersPerSignalorders
4. Fixed Lot Per TP Level
Used when LotMode = FIXED_LOTSIZE
Example Scenario:
Signal: EURUSD BUY with TP1, TP2, TP3
EA opens:
Order 1: 0.03 lot β TP1
Order 2: 0.02 lot β TP2
Order 3: 0.01 lot β TP3
Total exposure: 0.06 lot
5. Auto Lot Risk Per TP Level
Used when LotMode = AUTO_LOT
How it works:
For each TP level, EA calculates:
Example:
Balance: $10,000
Risk per TP: 1%
SL Distance: 50 pips
Pip Value: $10/lot for EURUSD
Calculation for TP1:
6. AllowPendingForDualEntry
When signal has 2 entry prices:
true: Opens 1 market order at current price + 1 pending order at 2nd entryfalse: Opens only 1 market order, ignores 2nd entry
π Configuration Examples
Example 1: Conservative Trader
Result: Very low risk, takes profit at 3 levels with decreasing risk allocation.
Example 2: Aggressive Trader
Result: Higher risk, takes all 5 TP levels with front-loaded risk.
Example 3: Fixed Lot Scalper
Result: Simple setup, 0.10 lot per trade, only TP1.
Example 4: Balanced Pyramiding
Result: Classic pyramiding - larger position at closer TP, smaller at distant TP.
Example 5: Equal Risk Distribution
Result: Each TP level has equal 1.5% risk.
β οΈ Important Notes
Risk Calculation Formula
When using AUTO_LOT:
Key factors:
Balance: Higher balance β larger lots
Risk%: Higher % β larger lots
SL Distance: Larger SL β smaller lots (to maintain risk)
Pip Value: Varies by instrument (EURUSD β XAUUSD)
Common Mistakes to Avoid
β Setting MaxRiskPerTrade = 0 with AUTO_LOT
EA will fail to initialize
Must be > 0
β Total risk > account balance
Example: 5 orders Γ 2% each = 10% total risk
With losing streak, can blow account quickly
β Not considering correlation
Opening EURUSD, GBPUSD, AUDUSD at once
All may move together = multiplied risk
β Using AUTO_LOT without SL
EA cannot calculate lot size
Will skip order or use default
π‘ Best Practices
β
1. Start Conservative
β
2. Decrease Risk for Higher TPs
β
3. Test on Demo First
Run for 1-2 weeks
Verify lot sizes are reasonable
Check total exposure
β
4. Monitor Drawdown
Max drawdown should be < 20%
If exceeds, reduce risk%
β
5. Account for Leverage
Higher leverage β higher profit
Use proper risk% regardless of leverage
π― Quick Start Recommendations
Small Account ($500-$2000)
Medium Account ($2000-$10000)
Large Account ($10000+)
π Support
If you have questions about lot sizing:
Check your EA logs for lot calculation details
Test on demo account first
Contact support with specific scenarios
Remember: Good risk management = Long-term success! π
Last updated