//+------------------------------------------------------------------+ //| Config.mqh - Global configuration and input parameters | //| Central place for all EA settings | //+------------------------------------------------------------------+ #ifndef __CONFIG_MQH__ #define __CONFIG_MQH__ // ==================== LOT SIZING ==================== enum E_LOT_MODE { LOT_MODE_FIXED = 0, // Use fixed lot size LOT_MODE_RISK = 1 // Use risk percent method }; input E_LOT_MODE g_lot_mode = LOT_MODE_FIXED; // Lot Sizing Mode input double g_fixed_lot = 0.1; // Fixed Lot Size (if LOT_MODE_FIXED) input double g_risk_percent = 2.0; // Risk Percent (if LOT_MODE_RISK) input double g_max_lot = 10.0; // Maximum Lot Size input double g_min_lot = 0.01; // Minimum Lot Size // ==================== TRADE MANAGEMENT ==================== input int g_magic_number = 12345; // Magic Number for trades input int g_stop_loss_points = 100; // Stop Loss in points input int g_take_profit_points = 200; // Take Profit in points input int g_max_spread_points = 100; // Max Spread in points (1.00 USD for XAUUSD) input int g_max_positions = 1; // Max positions at once // ==================== TRADING HOURS ==================== input bool g_use_trading_hours = false; // Enable trading hour filter input int g_trade_start_hour = 8; // Trading Start Hour (0-23) input int g_trade_end_hour = 20; // Trading End Hour (0-23) // ==================== TRAILING STOP ==================== input bool g_use_trailing_stop = true; // Use Trailing Stop input int g_trailing_stop_points= 50; // Trailing Stop Distance input bool g_use_break_even = true; // Use Break Even input int g_break_even_profit = 10; // Break Even Trigger profit input int g_break_even_sl = 2; // Break Even SL distance // ==================== STRATEGY PARAMETERS ==================== // XAUUSD M15 EMA Pullback Continuation Strategy input ENUM_TIMEFRAMES g_strategy_entry_timeframe = PERIOD_M15; // Entry signal timeframe input ENUM_TIMEFRAMES g_strategy_trend_timeframe = PERIOD_H1; // Trend filter timeframe input int g_trend_fast_ema_period = 50; // H1 EMA fast period input int g_trend_slow_ema_period = 200; // H1 EMA slow period input int g_entry_fast_ema_period = 20; // M15 EMA for entry confirmation input int g_entry_pullback_ema_period = 50; // M15 EMA for pullback touch input int g_rsi_period = 14; // RSI period on M15 input int g_rsi_buy_threshold = 50; // RSI buy threshold input int g_rsi_sell_threshold = 50; // RSI sell threshold input int g_atr_period = 14; // ATR period on M15 input double g_atr_sl_multiplier = 1.5; // ATR multiplier for SL (future use) input double g_atr_tp_multiplier = 2.0; // ATR multiplier for TP (future use) input bool g_use_atr_stops = false; // Use ATR-based SL/TP if supported // ==================== DEBUG ==================== input bool g_debug_mode = true; // Enable Debug Logging #endif //__CONFIG_MQH__