158 行
6.5 KiB
INI
158 行
6.5 KiB
INI
|
|
;+------------------------------------------------------------------+
|
||
|
|
;| Strategy Tester Configuration |
|
||
|
|
;| ForexTrader v3.2 Multi-Strategy Production |
|
||
|
|
;| |
|
||
|
|
;| This .ini file configures the MT5 Strategy Tester for |
|
||
|
|
;| comprehensive multi-symbol, multi-timeframe backtesting |
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
|
||
|
|
[Tester]
|
||
|
|
;--- Test Mode
|
||
|
|
Expert=ForexTrader_v3.2_MultiStrategy_Production
|
||
|
|
ExpertParameters=ForexTrader_v3.2_MultiStrategy_Production.set
|
||
|
|
|
||
|
|
;--- Symbol & Timeframe
|
||
|
|
Symbol=EURUSD
|
||
|
|
Period=M30
|
||
|
|
|
||
|
|
;--- Test Period
|
||
|
|
FromDate=2023.01.01
|
||
|
|
ToDate=2024.12.31
|
||
|
|
|
||
|
|
;--- Model
|
||
|
|
Model=1
|
||
|
|
;0 = Every tick (most accurate, slowest)
|
||
|
|
;1 = 1 minute OHLC (balanced)
|
||
|
|
;2 = Open prices only (fastest, least accurate)
|
||
|
|
|
||
|
|
;--- Deposit & Currency
|
||
|
|
Deposit=10000.00
|
||
|
|
Currency=USD
|
||
|
|
Leverage=1:100
|
||
|
|
|
||
|
|
;--- Optimization
|
||
|
|
Optimization=0
|
||
|
|
;0 = Disabled
|
||
|
|
;1 = Slow complete algorithm
|
||
|
|
;2 = Fast genetic algorithm
|
||
|
|
;3 = All symbols selected
|
||
|
|
|
||
|
|
;--- Optimization Criterion
|
||
|
|
OptimizationCriterion=6
|
||
|
|
;0 = Balance max
|
||
|
|
;1 = Profit factor max
|
||
|
|
;2 = Expected payoff max
|
||
|
|
;3 = Balance min drawdown %
|
||
|
|
;4 = Balance sharpe ratio
|
||
|
|
;5 = Custom max
|
||
|
|
;6 = Complex criterion max
|
||
|
|
|
||
|
|
;--- Visual Mode
|
||
|
|
Visual=0
|
||
|
|
|
||
|
|
;--- Forward Testing
|
||
|
|
ForwardMode=0
|
||
|
|
ForwardDate=2024.06.01
|
||
|
|
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
;| Multi-Symbol Testing Setup |
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
;| For testing multiple symbols simultaneously: |
|
||
|
|
;| 1. Enable "Use date" in Strategy Tester |
|
||
|
|
;| 2. Set Symbol = any major pair (EURUSD, GBPUSD, etc.) |
|
||
|
|
;| 3. EA will automatically trade configured symbols |
|
||
|
|
;| 4. Ensure all symbols have data for test period |
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
|
||
|
|
;--- Multi-Symbol Configuration (configured in EA inputs)
|
||
|
|
; TradingSymbols = EURUSD,GBPUSD,USDJPY,AUDUSD,USDCAD
|
||
|
|
; TradeMultipleSymbols = true
|
||
|
|
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
;| Optimization Parameters |
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
;| Key parameters to optimize for best performance: |
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
|
||
|
|
[OptimizationParameters]
|
||
|
|
|
||
|
|
;--- Signal Generation (most impactful)
|
||
|
|
MinSignalScore=25,35,45,5
|
||
|
|
;Range: 25 to 45, Step: 5
|
||
|
|
|
||
|
|
;--- Risk Management
|
||
|
|
BaseRiskPercent=1.0,2.0,0.5
|
||
|
|
;Range: 1.0 to 2.0, Step: 0.5
|
||
|
|
|
||
|
|
;--- Position Sizing
|
||
|
|
StopLossPips=30,50,10
|
||
|
|
TakeProfitPips=60,100,20
|
||
|
|
|
||
|
|
;--- ATR Multipliers
|
||
|
|
ATR_SL_Multiplier=1.5,2.5,0.5
|
||
|
|
ATR_TP_Multiplier=3.0,5.0,1.0
|
||
|
|
|
||
|
|
;--- Filters
|
||
|
|
ADX_Minimum=15,25,5
|
||
|
|
ATR_MinimumPips=8,15,3
|
||
|
|
|
||
|
|
;--- Trading Controls
|
||
|
|
CooldownMinutes=2,5,1
|
||
|
|
MaxPositionsPerSymbol=1,2,1
|
||
|
|
MaxTotalPositions=3,5,1
|
||
|
|
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
;| Expected Performance Metrics |
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
;| With conservative settings (MinSignalScore=35-40): |
|
||
|
|
;| - Win Rate: 55-65% |
|
||
|
|
;| - Profit Factor: 1.4-1.8 |
|
||
|
|
;| - Monthly Return: 5-10% |
|
||
|
|
;| - Max Drawdown: 15-20% |
|
||
|
|
;| - Sharpe Ratio: >1.0 |
|
||
|
|
;| |
|
||
|
|
;| With aggressive settings (MinSignalScore=25-30): |
|
||
|
|
;| - Win Rate: 50-60% |
|
||
|
|
;| - Profit Factor: 1.3-1.6 |
|
||
|
|
;| - Monthly Return: 8-15% |
|
||
|
|
;| - Max Drawdown: 20-25% |
|
||
|
|
;| - More trades, higher turnover |
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
;| Testing Best Practices |
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
;| 1. Test on at least 1 year of data (preferably 2-3 years) |
|
||
|
|
;| 2. Use "1 minute OHLC" or "Every tick" for accuracy |
|
||
|
|
;| 3. Test each symbol individually first |
|
||
|
|
;| 4. Then test multi-symbol portfolio |
|
||
|
|
;| 5. Verify results across different market conditions: |
|
||
|
|
;| - Trending periods (2023 Q1-Q2) |
|
||
|
|
;| - Ranging periods (2023 Q3) |
|
||
|
|
;| - High volatility (2024) |
|
||
|
|
;| 6. Forward test results (out-of-sample) |
|
||
|
|
;| 7. Compare v3.2 results vs v3.0 |
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
;| Multi-Symbol Test Procedure |
|
||
|
|
;+------------------------------------------------------------------+
|
||
|
|
;| Step 1: Single Symbol Test |
|
||
|
|
;| - Symbol: EURUSD |
|
||
|
|
;| - Period: M30 |
|
||
|
|
;| - TradeMultipleSymbols: false |
|
||
|
|
;| - Baseline performance |
|
||
|
|
;| |
|
||
|
|
;| Step 2: Multi-Symbol Portfolio Test |
|
||
|
|
;| - Symbol: EURUSD (for chart attachment) |
|
||
|
|
;| - Period: M30 |
|
||
|
|
;| - TradeMultipleSymbols: true |
|
||
|
|
;| - TradingSymbols: EURUSD,GBPUSD,USDJPY,AUDUSD,USDCAD |
|
||
|
|
;| - Compare total returns vs single symbol |
|
||
|
|
;| |
|
||
|
|
;| Step 3: Optimization |
|
||
|
|
;| - Use genetic algorithm for speed |
|
||
|
|
;| - Focus on MinSignalScore, risk parameters |
|
||
|
|
;| - Verify no overfitting on training period |
|
||
|
|
;| - Validate on forward test period |
|
||
|
|
;+------------------------------------------------------------------+
|