Input Parameters Manual

Input Parameters Manual

4 September 2026, 17:59
Yassir Lamrichi
0
35
Article 1: Complete Input Parameter Manual

Architectural Overview

Calibre Gold Trend Scalper is built on a modular execution framework designed specifically for the microstructure of XAUUSD. To achieve optimal performance, you do not need to alter every input. The default configuration represents our calibrated baseline.

This manual provides a functional definition of each configurable parameter so you can customize execution to match your risk profile and operational infrastructure.

1. Global Execution Parameters

These parameters govern order routing, execution speed limits, and master safety gates.

  • Global Trade Execution (InpPause):

    • 1 (Default): Full operational mode. The engine monitors market structure and executes both initial entries and basket-management orders.

    • 0: Suspends order dispatch. The algorithm continues analyzing price feeds and updating telemetry without routing orders to the broker.

  • Account Equity Protection Protocol (InpDDMode):

    • Master switch for total equity stop-outs. When active, it halts operation if total floating loss exceeds your hard threshold.

  • Equity Hard-Stop Liquidation Threshold (InpDDValue):

    • Numerical value associated with the equity protection mode (expressed in account currency or percentage, depending on your selected mode).

  • Algorithmic Sub-System ID (InpMagicNumber):

    • The base integer used to tag orders. The EA automatically assigns incremental sub-magics to individual quantitative engines to prevent order collision.

  • Maximum Permitted Spread/Latency (InpSpread):

    • Expressed in points (10 points = 1 pip). Blocks new order placement during abnormal spread widening (e.g., rollover or illiquid market opens).

  • Order Execution Slippage Tolerance (InpSlippage):

    • Maximum allowable price deviation in points between signal generation and broker order fill.

  • Permitted Order Flow (InpTradingDirectionType):

    • 0: Short only.

    • 1: Long only.

    • 2 (Default): Bi-directional. Evaluates structural signals on both sides of the order book independently.

  • Concurrency Cap (InpMaxBasket):

    • Defines the maximum allowable open positions per basket cycle. Prevents runaway order stacking during persistent directional trends.


2. Capital Allocation & Position Sizing

Governs the mathematical volume assigned to initial orders and recovery structures.

  • Volume Calculus (InpLotsCalc):

    • 0 (LOTS_AUTO): Sizing scales dynamically according to account equity and the active risk profile.

    • 1 (LOTS_FIXED): Sizing strictly follows the fixed balance steps defined below.

  • Dynamic Mode: Algorithmic Risk Stratification (InpRiskProfile):

    • Selects between pre-calibrated baseline settings (Conservative, Defensive, Balanced, Aggressive, Extreme).

  • Dynamic Mode: Auto-Scale to Contract Size (InpAutoDetectContract):

    • true: Automatically detects whether your broker quotes Gold as a Standard 100-oz contract, Mini (10-oz), or Micro/Cent contract, adjusting the mathematical lot unit to maintain uniform percentage exposure.

  • Static Mode: Absolute Base Volume (InpLotsFixed):

    • The base lot allocation (e.g., 0.01) assigned to the first trade of any cycle.

  • Static Mode: Capital Segment per Base Volume (InpLotsFixedBalance):

    • The account capital required for each volume step. For example, if set to $500 with a base volume of 0.01, an account with $1,500 will dispatch an initial volume of 0.03 lots.


3. Proprietary Account & Compliance Suite

Engineered for accounts operating under strict capital preservation rules and daily drawdown thresholds.

  • Enable Virtualised Capital (InpUsePropFirm):

    • Decouples the EA's lot calculator from raw broker balance, calculating all risk and basket metrics relative to an allocated loss buffer.

  • Virtualisation Protocol (InpPropFirmMode):

    • Dynamic: Scales your allowable buffer upward as profits accrue.

    • Static Buffer: Enforces a fixed drawdown buffer regardless of account balance growth.

  • Allocated Funded Account Size (InpPropFirmCapital):

    • The baseline capital of the account (e.g., 100000).

  • Maximum Permitted Drawdown Threshold (InpPropFirmLimit):

    • The percentage ceiling of allowable total account loss (e.g., 90.0 represents a 10% maximum total drawdown limit).

  • Enable Daily Equity Lock (InpUseDailyProtector):

    • Master switch for the automated intraday circuit breaker.

  • Daily Profit Ceiling (InpDailyProfitTargetPct):

    • Closes all active trades and locks the EA in an idle state until server midnight once the target percentage gain for the day is secured.

  • Daily Drawdown Floor (InpDailyMaxLossPct):

    • Emergency circuit breaker. If floating loss plus closed intraday trades hits this percentage of the starting day balance, all trades are liquidated immediately and trading is halted until the next session.


4. Advanced Algorithmic Exit Logic

Controls the multi-tier exit mechanics, trailing stops, and volatility defenses.

  • Enable Net-Positive Basket Trailing Exit (InpUseBasketTrailing):

    • Replaces static Take Profit targets with an equity-based trailing ratchet on the total net floating P/L of the basket.

  • Trailing Exit: Activation Threshold (InpBasketTrailTrigger):

    • The percentage gain on account balance required to arm the trailing exit.

  • Trailing Exit: Lock-in Step / Buffer (InpBasketTrailStep):

    • The percentage pullback allowed from peak floating profit before the entire basket is closed.

  • Enable Flash-Crash / Extreme Volatility Filter (InpUseFlashCrashFilter):

    • Monitors live ATR expansion. If intraday price movement exceeds safe volatility boundaries (InpFlashCrashMaxPts), initial trade execution is paused to prevent entry into unmanaged market panics.


5. Macro-Economic & Chronological Filters

  • Enable Macro-Economic Calendar Parsing (InpUseNewsFilter):

    • Reads the built-in MetaTrader 5 economic calendar to isolate high- and medium-impact USD/XAU economic releases.

  • Pre-Event / Post-Event Blackout Window (InpNewsMinsBefore / InpNewsMinsAfter):

    • Defines the quiet zone in minutes surrounding scheduled news releases during which no new basket cycles may be initiated.

  • Enable Low-Liquidity Holiday Suspension (InpUseYearEndPause):

    • Automatically bypasses execution during seasonal illiquidity between mid-December and early January.

  • Authorize Execution (Monday - Sunday):

    • Individual boolean toggles granting permission to deploy initial positions on specific calendar days.