RedFox Copier Pro includes sophisticated order management to prevent duplicates, validate orders before execution, and enforce risk limits. This ensures clean, controlled trading without manual intervention.
Key Features:
Duplicate order prevention (same symbol/direction)
Order validation (SL/TP/lot size checks)
Position limits (max orders per symbol/total)
Pending order management
Risk exposure limits
🔒 Duplicate Prevention
1. AllowDuplicateOrders
AllowDuplicateOrders = true | false
Controls whether multiple orders on same symbol/direction are allowed.
false (Recommended - Default)
Behavior: Blocks new orders if existing order on same symbol + direction exists.
Example:
When to use:
Signal provider sends same signal multiple times
Prevent over-exposure on one symbol/direction
Clean trading with one position per direction
Pros:
✅ Prevents accidental duplicate positions
✅ Controls risk exposure
✅ Cleaner order management
Cons:
❌ Can't add to winning positions (pyramiding)
❌ Misses additional signals on same direction
true (Allow Duplicates)
Behavior: Opens every signal regardless of existing orders.
Example:
When to use:
Pyramiding strategy (add to winners)
Layer orders feature enabled
Signal provider rarely duplicates
Warning: Can lead to over-exposure if not controlled with position limits!
📊 Position Limits
2. MaxOrdersPerSymbol
Controls maximum orders on each symbol (both directions combined).
Example with MaxOrdersPerSymbol = 2:
Configuration Examples:
Conservative (1 order):
Moderate (3 orders):
Aggressive (10 orders):
Unlimited:
When to use:
Prevent over-concentration on one symbol
Limit risk per instrument
Professional risk management
3. MaxTotalOrders
Controls maximum total orders across entire account.
Example with MaxTotalOrders = 10:
Configuration by Account Size:
Small Account ($500-$2,000):
Medium Account ($2,000-$10,000):
Large Account ($10,000+):
Why use this?
Margin management (prevent margin call)
Focus on best signals only
Reduce complexity
Server performance (too many orders = lag)
4. MaxOrdersPerDirection
Controls maximum orders per symbol AND direction.
Example with MaxOrdersPerDirection = 2:
Strategy Example (Hedging):
✅ Order Validation
5. MinLot / MaxLot
Purpose: Validate calculated lot size before opening order.
Example:
When to adjust:
Broker Limits:
Risk Management:
Note: This limit is per order. If you open 3 orders per signal (3 TP levels), each can be up to MaxLot.
6. MinSLPips / MaxSLPips
(Covered in SL/TP Configuration doc - see 03_SL_TP_CONFIGURATION.md)
Purpose: Reject orders with SL outside acceptable range.
Example:
7. SkipOrderWithoutTP
Purpose: Enforce TP requirement on all orders.
When true (Recommended):
When false:
When to use:
true: Automated trading, no manual intervention
false: You manually manage exits via Telegram commands
Set ALL limits appropriately based on account size
AllowDuplicateOrders = false // Block duplicates
MaxOrdersPerSymbol = 5 // But allow 5 per symbol?
// Conflict: Can only have 1 per direction, so max 2 total (BUY + SELL)
AllowDuplicateOrders = true
MaxOrdersPerSymbol = 5
// Now makes sense: Up to 5 orders per symbol
TimeOrderNext = 0
// Result: Signal repeats → 10 duplicate orders in 1 second
TimeOrderNext = 10-30
Balance: $1,000
MaxLot = 10.0
// Result: One order risks entire account + margin call
Balance: $1,000
MaxLot = 0.10-0.20 // Proportional to account
========== ORDER VALIDATION PASSED ==========
Symbol: EURUSD
Direction: BUY
Lot: 0.15
SL: 50 pips (within 5-200 range)
TP: 100 pips
Risk: $150 (1.5% of balance)
Total Risk: $450 (4.5% of balance)
Orders on EURUSD: 1/3
Total Orders: 5/15
==============================================
⚠️ ORDER REJECTED: Duplicate order
Symbol: GBPUSD BUY
Reason: AllowDuplicateOrders = false
Existing order: GBPUSD BUY #12345678
⚠️ ORDER REJECTED: Position limit reached
Symbol: XAUUSD
Current orders on XAUUSD: 3/3 (MaxOrdersPerSymbol)
⚠️ ORDER REJECTED: Total risk limit
Current Total Risk: $950 (9.5%)
This Order Would Risk: $100
Total Would Be: $1,050 (10.5%)
MaxTotalRiskPercent: 10%
/status
📊 ACCOUNT STATUS
Balance: $10,000
Total Orders: 8/15
Total Risk: $720 (7.2%)
EURUSD: 2 orders (BUY, SELL)
GBPUSD: 1 order (BUY)
XAUUSD: 3 orders (BUY×2, SELL×1)
USDJPY: 2 orders (SELL×2)
Max Total Risk: 10%
Available Risk: $280 (2.8%)