Order Management & Validation Guide

📋 Overview

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.


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


⏱️ Pending Orders Management

8. AllowPendingOrders

Controls whether EA opens pending orders (Buy Stop, Sell Limit, etc.).


true (Allow Pending Orders)

Behavior: Opens pending orders when signal specifies entry price.

Signal Example:

EA Action:

When to use:

  • Signal provider sends breakout strategies

  • Want automated entry at specific levels

  • Professional pending order strategies


false (Block Pending Orders)

Behavior: Skips all pending order signals.

Signal Example:

EA Action:

When to use:

  • Only want market execution

  • Don't trust pending order signals

  • Reduce complexity


9. TimeOrderNext

Purpose: Prevent rapid-fire duplicate orders from signal provider.

Example with TimeOrderNext = 10:

Configuration:

Strict (30 seconds):

Moderate (10 seconds):

Permissive (3 seconds):

Disabled:

When to use:

  • Signal provider sometimes duplicates

  • Telegram connectivity issues cause message repeats

  • Protect against network glitches


🎯 Risk Exposure Validation

10. MaxRiskPerTrade

(Covered in Lot Size & Risk Management doc - see 01_LOT_SIZE_AND_RISK_MANAGEMENT.md)

Purpose: Limit risk amount per order.

Example:


11. MaxTotalRiskPercent

Purpose: Limit total exposure across all open orders.

Example:

Configuration:

Conservative:

Moderate:

Aggressive:

Why important:

  • Prevents over-exposure during high signal volume

  • Drawdown protection

  • Forces position selectivity


💼 Real-World Configuration Examples

Example 1: Conservative Single Position

Goal: Only one position per symbol, strict limits.

Configuration:

Result:

  • Max 5 symbols traded

  • 1 position per symbol

  • 1% risk each = 5% total exposure

  • No duplicates possible


Example 2: Pyramiding Strategy

Goal: Add to winners, up to 3 positions per symbol.

Configuration:

Result:

  • Can open 3 BUY + 3 SELL per symbol = 6 total per symbol

  • Up to 15 total orders (5 symbols × 3 orders)

  • Each risks 1%, max 15% total exposure


Example 3: High Volume Trading

Goal: Trade many signals, diversified portfolio.

Configuration:

Result:

  • Up to 30 orders (15 symbols × 2)

  • Low risk per trade (0.5%)

  • Controlled total exposure (10%)


Example 4: Strict Risk Management

Goal: Absolute control, no exceptions.

Configuration:

Result:

  • Every limit enforced

  • Maximum protection

  • Clean, controlled trading


Example 5: Aggressive Scalping

Goal: Many quick trades, accept more orders.

Configuration:

Result:

  • High frequency trading

  • Many small positions

  • Market orders only

  • Fast execution


⚠️ Common Mistakes

Mistake 1: Unlimited Everything

Bad:

Risk: 50+ orders on one symbol, 100% account risk, margin call!

Good:


Mistake 2: Conflicting Settings

Bad:

Good:


Mistake 3: No Time Buffer

Bad:

Good:


Mistake 4: MaxLot Too High

Bad:

Good:


Mistake 5: Ignoring Total Risk

Bad:

Good:


✅ Best Practices

1. Always Set All Limits

Minimum required:

2. Start Conservative

First week:

Then gradually increase if comfortable.

3. Match Account Size

Account Size
Max Total Orders
Max Risk/Trade
Max Total Risk

$500-$2K

5

1%

5%

$2K-$10K

10-15

1-2%

10-15%

$10K+

20-30

1-2%

15-20%

4. Test Configuration

  • Run on demo for 2 weeks

  • Monitor order count, exposure, behavior

  • Adjust limits based on signal frequency

5. Document Your Limits


🔍 EA Logging Examples

Order Accepted:

Order Rejected (Duplicate):

Order Rejected (Position Limit):

Order Rejected (Total Risk):


📊 Monitoring Your Orders

Telegram Command:

EA Response:


🚀 Quick Start Guide

Step 1: Determine Your Risk Profile

Conservative: Smaller limits, strict validation Aggressive: Higher limits, more flexibility

Step 2: Set Core Limits

Step 3: Configure Duplicate Handling

Step 4: Enable Validation

Step 5: Test & Monitor

  • Run on demo

  • Check EA logs for rejections

  • Adjust limits if too strict/loose


📞 FAQ

Q: Orders not opening at all? A: Check logs for rejection reasons. Likely exceeding MaxTotalOrders or MaxTotalRiskPercent.

Q: Too many duplicate orders? A: Set AllowDuplicateOrders = false and TimeOrderNext = 30.

Q: EA only opens 1 order per symbol? A: Increase MaxOrdersPerSymbol and set AllowDuplicateOrders = true.

Q: Can I have different limits per symbol? A: Not directly. Use separate EA instances or file config feature.


Remember: Proper order management is key to long-term profitability. Better to miss a trade than blow your account! 🎯

Last updated