Skip to content

Optimization Settings : FxS RSI Pro EA

        Table of Contents

    1. Overview
    2. Strategy Tester Configuration
    3. Recovery Techniques Configuration
       a. Averaging Down
       b. Stop and Reverse
       c. D’Alembert System
       d. Modified Martingale
       e. Reverse Martingale
       f. Classic Martingale
       g. Grand Martingale
       h. Fibonacci Martingale

    4. Trailing Stop Loss/Take Profit Configuration
    5. Conclusion

    1. Overview

    This Optimization Settings guides you through the process of optimizing FxS RSI Pro EA in MetaTrader 5 to identify the most robust parameter combinations for your trading symbol and timeframe.

    2. Strategy Tester Configuration

    a. Open Strategy Tester (View ▸ Strategy Tester or Ctrl+R).

    b. Select Expert Advisor: FxS RSI Pro EA

    c. Symbol: e.g., EURGBP, EURUSD

    d. Period: e.g., H1

    e. Model: Every tick based on real ticks (for highest accuracy)

    f. Use Date: Enable and set backtest period (e.g., 2017.01.01 – 2025.04.01)

    g. Deposit & Leverage: Match your live trading account settings

    h. Download the set files here:  

    📥 RSI_Averaging_Down1 
    📥 RSI_Stop_and_Reverse1
    📥 RSI_D’Alembert_System1
    📥 RSI_Modified_Martingale
    📥 RSI_Reverse_Martingale1 
    📥 RSI_Classic_Martingale1
    📥 RSI_Grand_Martingale1
    📥 RSI_Fibonacci_Martingale1

    3. Recovery Techniques Configuration

    Overview: Adding positions as the trade moves against you at predefined intervals.

    Optimization Tips:

        • Step size (pips): Optimize the distance between positions (e.g., every 30–50 pips).
        • Lot scaling: Use fixed or slightly increasing lot sizes. Avoid aggressive scaling.
        • Max entries: Limit to 3–5 layers to manage margin and exposure.
        • MA filter: Only average down when price is still near or reverting toward the MA to avoid trending traps.
        • Best Market Conditions and currency pairs: 

    Averaging Down works best in range-bound or mean-reverting market conditions, where price tends to oscillate around a central value (like a moving average), rather than trending strongly in one direction. This allows the trader to open multiple positions at increasingly favorable prices and still expect a reversal or bounce to close trades in profit.

    Best Market Conditions for Averaging Down

    1. Sideways or Ranging Markets

      • Price moves within a predictable range or channel.

      • Volatility is moderate; no strong directional bias.

      • Indicators like RSI or Bollinger Bands show frequent overbought/oversold cycles.

    2. Mean-Reverting Behavior

    3. Low Volatility Periods

    4. Support/Resistance Zones


    Best Currency Pairs for Averaging Down

    You want pairs that tend to “chop” or revert more than trend, typically:

    🔸 EUR/CHF

    🔸 EUR/GBP

    🔸 AUD/NZD

    🔸 USD/CHF

    • Another relatively stable, mean-reverting pair.

    • Less prone to extreme trends compared to majors like GBP/JPY or GBP/USD.


    ❌ Avoid Averaging Down in:

    • High-trend environments (e.g., post-news spikes or central bank policy moves).

    • High-volatility pairs like GBP/JPY, XAU/USD (gold), BTC/USD, which can blow through levels quickly.

    • During major news events (NFP, FOMC, ECB rate decisions).

    b. Stop-and-Reverse (SAR)

    Overview: Closing a losing position and opening one in the opposite direction.

      • Trigger condition: Set a pip threshold (e.g., 40–60 pips) or time-based rule (e.g., 3 candles below MA).
      • Reversal confirmation: Add MA cross confirmation to reduce whipsaw risk.
      • Lot size on reversal: Optimize lot size to recover previous loss (but not overexpose).
      • Best Market Conditions and currency pairs:     

    Stop-and-Reverse (SAR) strategies work best under specific market conditions and with certain currency pairs that exhibit clear directional movements. Here’s how to align SAR with the right environment and instruments:


    Best Market Conditions for Stop-and-Reverse (SAR)

    1. Trending Markets
      SAR thrives in markets with sustained directional movement. It capitalizes on trend reversals and avoids sideways action.

      • Ideal Indicators: Strong slope on a Moving Average (e.g., 50 or 100 EMA), confirmed trend breaks.

      • Avoid: Choppy, range-bound, or low-volatility periods.

    2. High Volatility with Clear Breakouts
      Volatile environments where price breaks key support/resistance levels provide excellent opportunities for reversal entries.

    3. Post-News Volatility or Event-Driven Moves
      After a strong economic release, markets often shift direction. SAR can take advantage of these reversals — but only after initial chaos subsides.


    Best Currency Pairs for Stop-and-Reverse

    1. EUR/USD

      • Why: High liquidity, good volatility, and often follows technical patterns well.

      • SAR Fit: Strong reaction to macroeconomic releases, clean trends.

    2. GBP/JPY

      • Why: High volatility pair, prone to strong swings and clear reversals.

      • SAR Fit: Ideal for active SAR trading but requires tighter risk controls.

    3. USD/JPY

    4. GBP/USD

      • Why: Volatile and trend-friendly, especially during London and NY sessions.

      • SAR Fit: Reversals around news or technical zones suit SAR entries.

    5. AUD/USD


    🚫 Currency Pairs to Be Cautious With

    • Exotic pairs (e.g., USD/TRY, USD/ZAR): High spread and erratic behavior make SAR risky.

    • Range-bound majors during Asian session (e.g., EUR/CHF): Tend to whipsaw SAR strategies.


    Pro Tips:

    • Combine SAR with Moving Average crossovers and ATR-based filters to confirm trend reversals.

    • Use trailing stops and position reversal logic with a volatility buffer (e.g., 1.5× ATR) to reduce false triggers.

    • Always backtest per pair — SAR behavior differs even across majors.

    Overview: Increase lot size linearly after a loss; decrease after a win.

    • Lot increment: Start with a small increase (e.g., 0.01–0.02 lots).
    • Reset rule: Reset sequence after reaching profit or drawdown threshold.
    • MA alignment: Ensure entries still respect MA direction to avoid compounding losses.
    • Best Market Conditions and currency pairs: 

    The D’Alembert System works best in range-bound, mean-reverting markets where price oscillates within predictable support and resistance levels. Because the system uses linear lot size increases (rather than exponential ones like Martingale), it’s more forgiving but also slower to recover, making the right market conditions essential.


    Best Market Conditions for D’Alembert in Forex:

    1. Sideways/Ranging Markets

      • Price moves within a horizontal channel.

      • No strong trend in either direction.

      • Works well because losses are often followed by small recoveries.

    2. Low-to-Moderate Volatility

      • Avoid highly volatile markets which can string together multiple losses.

      • Optimal when daily range is steady and predictable (e.g., 60–100 pips).

    3. Mean-Reverting Behavior

    4. Time-Based Reversals (Sessions)


    💱 Best Currency Pairs for D’Alembert System:

    1. EUR/CHF

      • Typically low volatility, well-behaved price action.

      • Tends to range more than trend.

    2. EUR/GBP

    3. USD/CHF

      • Low volatility with consistent oscillations.

      • Less prone to sharp, unpredictable movements.

    4. AUD/NZD

    5. EUR/USD (in low volatility periods)


    🚫 Avoid Using D’Alembert In:

    • Strong trending markets (e.g., GBP/JPY, XAU/USD during momentum runs)

    • High news impact times (NFP, CPI, FOMC)

    • Exotic pairs (due to unpredictable spikes and low liquidity)

    Overview: Increase lot size by a fixed ratio after a loss but more conservatively than classic Martingale.

    • Multiplier: Use a conservative ratio (e.g., 1.2x–1.5x instead of 2x).
    • Recovery cap: Set a limit to the number of retries (3–4 max).
    • Re-entry timing: Use MA + oversold/overbought filters (e.g., RSI) for re-entry.
    • Best Market Conditions and currency pairs: 

    The Modified Martingale strategy performs best under specific market conditions and currency pairs where mean reversion and moderate volatility are present. Here’s a breakdown to guide your use of this method effectively:


    Best Market Conditions for Modified Martingale

    1. Range-Bound (Sideways) Markets

    2. Low-to-Moderate Volatility

      • Avoids sharp, one-directional trends that can compound losses.

      • Stable fluctuations allow for measured recovery steps without hitting margin limits.

    3. Post-News Consolidation

    4. Mean Reversion Indicators Confirm

      • Use indicators like Bollinger Bands, RSI (Relative Strength Index), or MACD divergence in conjunction with Moving Average signals to confirm that price is likely to revert.


    💱 Best Currency Pairs for Modified Martingale

    Choose pairs that are:

    • Stable

    • Less prone to long, trending moves

    • Lower spread and swap costs (to reduce cost of holding multiple positions)

    Top Choices:

    Currency PairReason
    EUR/CHFHistorically stable and range-bound.
    EUR/GBPTends to range; low volatility; correlated economies.
    USD/CHFGenerally slow-moving, predictable.
    AUD/NZDOften reverts to mean, especially in Asian session.

    Avoid:

    Currency PairReason
    GBP/JPYHigh volatility and strong trends.
    XAU/USD (Gold)Very volatile, not suitable for Martingale-based recovery.
    BTC/USDExtreme price swings; can blow out a Martingale strategy fast.

    🛠️ Pro Tips

    • Session timing matters: Use Modified Martingale during Asian or early European sessions for calmer movements.

    • News filter: Always avoid trading around high-impact news events (NFP, FOMC, CPI).

    • Use a volatility filter: ATR (Average True Range) can help you gauge when the market is too wild for recovery steps.

    e. Reverse Martingale (Anti-Martingale)

     Overview: Increase position size after a win, not a loss.

    • Initial lot size: Keep small to protect from sudden reversals.
    • Scaling factor: Use modest multipliers (e.g., 1.3x–1.5x).
    • Streak length cap: Cap at 2–3 increases, then reset.
    • Entry timing: Only add if price is riding the MA trend.
    • Best Market Conditions and currency pairs: 

    The Reverse Martingale (or Anti-Martingale) strategy thrives under specific market conditions and is best paired with strong-trending currency pairs. Here’s how to match it with optimal market environments and instruments:


    Best Market Conditions for Reverse Martingale

    1. Strong Trending Markets

      • The strategy performs best when a trend is clear and sustained.

      • Since positions are increased after each win, the market needs to keep moving in one direction long enough to compound gains.

    2. Low Volatility Noise, High Directional Momentum

    3. Breakouts After Consolidation

      • Reverse Martingale is effective after confirmed breakouts, where price tends to run in a clean direction.

      • Use tools like Bollinger Band squeezes, MA breakouts, or consolidation patterns to identify such moments.

    4. High-Impact News Follow-through


    💱 Best Currency Pairs for Reverse Martingale

    1. Major Pairs with Strong Trends and Liquidity

      • EUR/USD: Generally stable with decent trends, especially post-ECB or Fed news.

      • GBP/USD: Can trend hard after UK or US economic data, but slightly more volatile.

      • USD/JPY: Offers clean trending phases, especially during risk-on/risk-off shifts.

      • AUD/USD: Tends to trend well with commodity and risk sentiment cycles.

      • USD/CHF: Less volatile, often a smoother mover — good for conservative scaling.

    2. Trending Crosses

      • GBP/JPY: High volatility and strong trends — good for aggressive strategies, but riskier.

      • EUR/JPY: Can show strong directional moves based on both Eurozone and Japan policy divergence.


    ⚙️ Additional Tips for Applying Reverse Martingale

    • Confirm trend with multiple MAs (e.g., 50 & 200 EMA) before scaling in.

    • Use trailing stops or break-even adjustments to protect profits at each level.

    • Cap the number of pyramiding entries (usually 2–3 max) to avoid giving back gains on a reversal.

    • Apply on H1 or higher timeframes to avoid noise and whipsaws.

    Overview: Doubling lot size after every loss.

    • Starting lot: Begin very small (e.g., 0.01) to tolerate multiple steps.
    • Max levels: Limit to 4–5 layers to avoid account wipeout.
    • Time filter: Avoid during high volatility news times.
    • MA alignment: Only engage if MA shows strong mean reversion.
    • Best Market Conditions and currency pairs: 

    The Classic Martingale strategy — doubling position size after a loss — thrives under specific market conditions and is more suitable for certain currency pairs. Here’s a focused breakdown:


    Best Market Conditions for Classic Martingale

    1. Ranging or Sideways Markets

    2. Low Volatility Periods

    3. High Liquidity Sessions


    💱 Best Currency Pairs for Classic Martingale

    Choose low volatility, high liquidity, and mean-reverting pairs:

    1. EUR/CHF

    2. EUR/USD

    3. USD/CHF

    4. AUD/NZD

    5. GBP/CHF (optional)


    ⚠️ Avoid These for Martingale

    • JPY pairs (e.g., USD/JPY, GBP/JPY): Prone to long, fast trends.

    • Exotics (e.g., USD/TRY, USD/ZAR): Wide spreads and extreme volatility.

    • Trend-heavy environments: During strong economic cycles or crisis events.


    📊 Pro Tip: Combine Filters

    Use these in tandem:

    • MA Flatness Filter: e.g., if 50-period SMA slope < threshold, market is sideways.

    • ATR < X: Only allow entries when ATR (e.g., 14-period) is below a certain value.

    • News Filter: Skip trades during major economic data releases.

    Overview: Like Martingale but adds a fixed amount to the doubled position size.

    • Addition size: Keep additional amount small and consistent (e.g., +0.01–0.05 lots).
    • Capital allocation: Requires more margin, so optimize for max drawdown tolerance.
    • Recovery frequency: Simulate how often recovery is actually achieved to avoid frequent overuse.
    • MA volatility band: Use Bollinger Bands around MA to refine entry zones.
    • Best Market Conditions and currency pairs: 

    The Grand Martingale strategy is a high-risk, high-reward recovery method that can quickly recover losses if the market reverts — but it can also blow an account during strong, one-sided trends. So, identifying the right market conditions and currency pairs is critical to improving its success rate.


    Best Market Conditions for Grand Martingale

    1. Range-Bound (Sideways) Markets

      • Grand Martingale performs best when the price oscillates within a predictable range.

      • Mean-reverting conditions allow the strategy to recover and profit as the market returns toward the average price.

    2. Low to Moderate Volatility

      • In calmer markets, drawdowns tend to be more manageable.

      • Lower volatility means fewer large, unexpected movements that could force deeper Martingale levels.

    3. Session Overlaps with Reduced News Risk

      • Use during quieter times of the day, such as:

        • End of London session

        • Start of Asian session

      • Avoid trading during high-impact news or central bank announcements.

    4. Confirmed Range Using Indicators


    Best Currency Pairs for Grand Martingale

    Focus on pairs that tend to range frequently, have lower volatility, and fewer extreme trends:

    1. EUR/CHF

      • Historically low volatility and often range-bound.

      • Strong intervention history (e.g., Swiss National Bank), which keeps price action tight.

    2. EUR/GBP

    3. USD/CHF

    4. AUD/NZD


    ⚠️ Currency Pairs to Avoid with Grand Martingale

    • GBP/JPY, GBP/USD, XAU/USD (Gold) – Known for high volatility and frequent sharp trends.

    • Crypto pairs (BTC/USD, ETH/USD) – Too volatile and unpredictable.

    • Any pair during NFP, CPI, FOMC, or other major news events – These can cause massive spikes against your position.


    Bonus Tip: Enhance Safety with Filters

    Overview: Position sizes follow the Fibonacci sequence (1, 1, 2, 3, 5, etc.).

    • Lot step mapping: Use Fibonacci levels mapped to lot size (not pips).
    • Max step limit: Cap at 5–6 levels to control drawdown.
    • Trend filter: Integrate with MA slope filter to determine if market is trending or ranging.
    • Backtest with variable volatility periods: Ensure performance isn’t skewed by market condition.
    • Best Market Conditions and currency pairs: 

    The Fibonacci Martingale strategy works best in specific market conditions and with certain currency pairs. Here’s how to optimize its use:


    Best Market Conditions for Fibonacci Martingale

    1. Range-Bound Markets (Sideways Trends)

      • The strategy assumes price will eventually revert to a mean, so it’s most effective when markets oscillate within a predictable range.

      • Look for periods with low Average True Range (ATR) and horizontal Moving Averages (e.g., flat 50 SMA or 100 EMA).

    2. Low to Moderate Volatility

      • Sudden spikes or prolonged trends can trigger multiple Fibonacci levels quickly, increasing drawdown risk.

      • Use volatility filters or avoid trading during news events (e.g., NFP, interest rate announcements).

    3. Mean Reversion Environments

    4. Off-Peak Trading Hours

      • During lower volume periods (e.g., after U.S. session close), price tends to be more range-bound and less volatile.


    Best Currency Pairs for Fibonacci Martingale

    1. EUR/GBP

    • Low volatility, tight spreads, and frequent mean reversions make this pair ideal for Fibonacci-based recovery.

    2. AUD/NZD

    3. EUR/CHF

    4. USD/CHF


    ⚠️ Pairs to Avoid

    • GBP/JPY, GBP/NZD, XAU/USD, BTC/USD
      These are highly volatile, with large swings that can blow through multiple Fibonacci steps quickly.


    📈 Pro Tip: Use Filters Before Entry

    • MA Confluence: Only engage when price is within ±20 pips of a flat MA.

    • ATR Threshold: Avoid if ATR (14) > 0.0080 on pairs like EUR/GBP or AUD/NZD.

    • Bollinger Squeeze: Indicates a calm market—ideal for entry.


    4. Trailing Stop Loss/Take Profit Configuration


    ⚙️ Pro Tip: Hybrid Approach

    • TSL + TP combo: Use a wide TP but trail with a TSL so you lock in profits if momentum fades.

    • Example: Set TP at +100 pips, but apply a TSL that starts trailing after +40 pips.


    5. Conclusion

    Each recovery method has unique strengths and risks. When used alongside a Moving Average entry system, optimizing each element — from lot sizing to entry filters — is critical. Whether you’re cautiously using Reverse Martingale or aggressively applying the Grand Martingale, tailor your settings to your risk appetite, capital size, and the market environment.

    www.mql5.com (Article Sourced Website)

    #Optimization #Settings #FxS #RSI #Pro