Welcome to the QuantTradingSystem - a sophisticated quantitative trading solution available for MetaTrader 5. This expert advisor combines quantitative strategies with risk management to deliver consistent trading results.
Key Features:
- 5 Proven Quantitative Strategies including Mean Reversion, Momentum, Pairs Trading, Volatility Trading, and Machine Learning
- Multi-Strategy Portfolio Approach for diversified risk
- Advanced Statistical Analysis with real-time calculations
- Institutional-Grade Risk Management including VaR, Sharpe Ratio, and Dynamic Position Sizing
- Whole Lot Sizing Option for prop firm compatibility
- Portfolio Rebalancing and dynamic hedging capabilities
QuantTradingSystem - Complete Input Parameter Guide ? Strategy Selection
QuantStrategy (Enum: STRATEGY_MEAN_REVERSION)
• Purpose: Selects the primary trading strategy
• Options:
o 0 = STRATEGY_MEAN_REVERSION: Trades when price deviates significantly from mean, expecting reversion
o 1 = STRATEGY_MOMENTUM: Follows price momentum and trends
o 2 = STRATEGY_PAIRS_TRADING: Statistical arbitrage (your optimized choice)
o 3 = STRATEGY_VOLATILITY: Trades volatility breakouts
o 4 = STRATEGY_ML_PREDICTION: Machine learning-based predictions
• Impact: Determines the core trading logic used
• Recommended: Test each strategy type to find best fit for your market
EnableMultiStrategy (Bool: true)
• Purpose: Combines signals from all 5 strategies using weighted approach
• How it works: Calculates weighted average of all strategy signals
• Benefits: Diversification and signal confirmation
• Risk: May reduce signal frequency and clarity
• Note: Your optimization set this to false for focused approach
________________________________________
? Trading Instrument
TradingSymbol (String: "")
• Purpose: Specifies which symbol to trade
• Default: Empty = uses current chart symbol
• Usage: Enter specific symbol like "EURUSD" or "NAS100"
• Important: Symbol must be available in Market Watch
TradingTimeframe (Enum: PERIOD_CURRENT)
• Purpose: Sets the timeframe for analysis
• Default: Uses current chart timeframe
• Options: M1, M5, M15, M30, H1, H4, D1, etc.
• Impact: Affects signal frequency and trade duration
________________________________________
? Portfolio Management
MaxRiskPerTrade (Double: 1.0%)
• Purpose: Maximum percentage of equity to risk per individual trade
• Range: 0.5% (conservative) to 5.0% (aggressive)
• Calculation: Used in position sizing formula
• Warning: Higher values = higher potential profits but greater risk
MaxPortfolioRisk (Double: 5.0%)
• Purpose: Maximum total risk across all open positions
• Protection: Prevents over-leveraging
• Trigger: Stops new trades when limit exceeded
TargetVolatility (Double: 0.15)
• Purpose: Target annualized portfolio volatility (15%)
• Usage: Adjusts position sizes based on market volatility
• Formula: Lower market vol = larger positions, higher market vol = smaller positions
MaxPositions (Int: 5)
• Purpose: Maximum number of concurrent open positions
• Benefits: Risk spreading across multiple trades
• Requirement: Needs sufficient capital for all positions
EnablePortfolioRebalancing (Bool: true)
• Purpose: Automatically rebalances portfolio daily
• Function: Closes oversized positions that exceed risk limits
• Frequency: Checks every 24 hours
• Benefit: Maintains risk discipline
________________________________________
? Position Sizing
UseWholeLotSizing (Bool: true)
• Purpose: Forces all trades to use whole number lot sizes only
• Effect: 1.0, 2.0, 3.0 lots (no 1.3 or 2.7)
• Benefit: Simpler trade management
• Drawback: Less precise position sizing
MinLotSize (Double: 1.0)
• Purpose: Minimum trade size allowed
• Interaction: With UseWholeLotSizing, minimum becomes 1.0 automatically
• Override: System may increase if symbol requires higher minimum
MaxLotSize (Double: 10.0)
• Purpose: Maximum trade size allowed per position
• Protection: Prevents accidentally large positions
• Override: System uses smaller of this value and symbol maximum
RoundToNearestWhole (Bool: true)
• Purpose: Rounds fractional lots to nearest whole number
• Only Active: When UseWholeLotSizing = false
• Example: 2.3 lots becomes 2.0, 2.7 becomes 3.0
________________________________________
? Statistical Parameters
StatisticalWindow (Int: 252)
• Purpose: Number of bars used for statistical calculations
• Standard: 252 = ~1 trading year
• Impact: Larger window = more stable stats, longer initialization
• Critical: EA won't trade until this many bars are collected
ZScoreEntry (Double: 2.0)
• Purpose: Z-score threshold for trade entry signals
• Your Setting: 4.4 (extremely high - very selective)
• Meaning: Price must be 4.4 standard deviations from mean
• Effect: Higher values = fewer but higher-quality trades
• Standard: 2.0 = ~2.5% probability, 4.4 = ~0.001% probability
ZScoreExit (Double: 0.5)
• Purpose: Z-score threshold for closing mean reversion trades
• Logic: Close when price moves back toward mean
• Conservative: Higher values hold trades longer
ConfidenceLevel (Double: 0.95)
• Purpose: Statistical confidence level (95%)
• Usage: Used in VaR and statistical calculations
• Standard: 0.95 = 95% confidence
________________________________________
? Mean Reversion Strategy
MR_Period (Int: 20)
• Purpose: Period for calculating moving average baseline
• Usage: Bollinger Bands middle line calculation
• Effect: Longer periods = smoother, less sensitive signals
MR_Threshold (Double: 2.0)
• Purpose: Standard deviation multiplier for Bollinger Bands
• Calculation: Bands = MA ± (Threshold × Standard Deviation)
• Impact: Higher values = wider bands, fewer signals
MR_UseBollinger (Bool: true)
• Purpose: Enable/disable Bollinger Bands calculation
• Alternative: Uses simple price deviation without bands
• Performance: Your optimization found better results without Bollinger
________________________________________
⚡ Momentum Strategy
MOM_FastPeriod (Int: 12)
• Purpose: Fast period for momentum calculation
• Standard: Usually 12-21 for fast momentum
MOM_SlowPeriod (Int: 26)
• Purpose: Slow period for momentum calculation
• Unusual: Your fast > slow suggests contrarian approach
MOM_Threshold (Double: 0.02)
• Purpose: Minimum momentum percentage for signal (2%)
• Effect: Only trades on strong momentum moves
________________________________________
? Volatility Strategy
VOL_Period (Int: 20)
• Purpose: Period for volatility calculation
• Method: Uses Average True Range (ATR)
VOL_Threshold (Double: 1.5)
• Purpose: Volatility multiplier for breakout signals
• Logic: Trade when current volatility > average × threshold
VOL_UseGARCH (Bool: false)
• Purpose: Enable advanced GARCH volatility modeling
• GARCH: More sophisticated but complex volatility calculation
________________________________________
? Machine Learning
ML_TrainingPeriod (Int: 1000)
• Purpose: Number of bars for ML model training
• Effect: More data = potentially better predictions, slower adaptation
ML_Features (Int: 10)
• Purpose: Number of input features for ML model
• Features: Returns, volatility, RSI, momentum, etc.
ML_ConfidenceThreshold (Double: 0.7)
• Purpose: Minimum confidence for ML predictions (70%)
• Effect: Lower threshold = more ML-based trades
________________________________________
⚠️ Risk Management
VaR_Confidence (Double: 0.05)
• Purpose: Value at Risk confidence level (95% = 0.05)
• Usage: Calculates potential losses
VaR_Period (Int: 22)
• Purpose: Lookback period for VaR calculation
• Standard: 22 = 1 trading month
EnableDynamicHedging (Bool: true)
• Purpose: Enable automatic hedging mechanisms
• Function: May create offsetting positions for risk management
MaxDrawdown (Double: 0.10)
• Purpose: Maximum allowed drawdown (10%)
• Action: Closes all positions if exceeded
⚖️ Important Disclaimers
LEGAL DISCLAIMER AND RISK WARNING
IMPORTANT: READ BEFORE PURCHASING OR USING THIS EXPERT ADVISOR
RISK DISCLOSURE
TRADING INVOLVES SUBSTANTIAL RISK OF LOSS AND IS NOT SUITABLE FOR ALL INVESTORS.
- Past performance does not guarantee future results
- You could sustain a loss of some or all of your initial investment
- Trading with leverage amplifies both potential profits and losses
- Market conditions can change rapidly and unpredictably
- Technical analysis and algorithmic trading strategies may fail
DISCLAIMER OF LIABILITY
By purchasing and/or using this Expert Advisor (EA), you acknowledge and agree that:
-
NO GUARANTEE OF PROFITS: This software does not guarantee profits or freedom from losses. All trading involves risk.
-
BUYER ASSUMES ALL RESPONSIBILITY: You assume full responsibility for all trading decisions and any resulting profits or losses when using this EA.
-
LIMITATION OF LIABILITY: The seller, developer, and any affiliated parties shall not be held liable for any direct, indirect, incidental, special, or consequential damages arising from the use of this software, including but not limited to:
- Trading losses
- Lost profits
- Data loss
- System failures
- Broker-related issues
-
NO FINANCIAL ADVICE: This EA is a software tool only and does not constitute financial, investment, or trading advice. You should consult with qualified financial advisors before making trading decisions.
-
USER RESPONSIBILITY: You are responsible for:
- Understanding how the EA works
- Setting appropriate risk parameters
- Monitoring all trades
- Ensuring compatibility with your broker
- Compliance with local regulations
SOFTWARE DISCLAIMER
- This software is provided "AS IS" without warranty of any kind
- No guarantee that the software will be error-free or uninterrupted
- Updates and support are provided at the developer's discretion
- Results may vary between different brokers, account types, and market conditions
REGULATORY COMPLIANCE
- You are responsible for ensuring compliance with all applicable laws and regulations in your jurisdiction
- Some jurisdictions may restrict or prohibit the use of automated trading systems
- Consult local financial authorities if uncertain about regulatory requirements
INTELLECTUAL PROPERTY
This Expert Advisor is protected by copyright and intellectual property laws. Unauthorized distribution, reverse engineering, or resale is strictly prohibited.
ACCEPTANCE OF TERMS
By purchasing this product, you confirm that you:
- Have read and understood this disclaimer
- Accept all risks associated with forex trading
- Agree to hold harmless the seller and developer
- Will not pursue legal action for trading losses
- Understand that trading results may vary significantly
CONTACT AND SUPPORT
Support is provided for technical issues related to EA installation and basic functionality only. Trading performance, strategy optimization, and broker-specific issues are not covered under support.
⚠️ WARNING: Only risk capital that you can afford to lose. Never trade with money you cannot afford to lose.
By using this Expert Advisor, you acknowledge that you have read, understood, and agree to be bound by this disclaimer.
This disclaimer is effective as of the date of purchase and supersedes all previous versions.