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_BALANCE

AUTO_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 balance

  • Set 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_LOTSIZE

  • This 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 = TP3

  • EA will only open orders for TP1, TP2, TP3

  • TP4 and TP5 are ignored

MaxOrdersPerSignal

  • 1 = Open only 1 order per signal

  • 3 = 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 MaxOrdersPerSignal orders


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 entry

  • false: 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:

  1. Balance: Higher balance β†’ larger lots

  2. Risk%: Higher % β†’ larger lots

  3. SL Distance: Larger SL β†’ smaller lots (to maintain risk)

  4. 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:

  1. Check your EA logs for lot calculation details

  2. Test on demo account first

  3. Contact support with specific scenarios

Remember: Good risk management = Long-term success! πŸš€

Last updated