



ShiftAlgo is a versatile trend-following cBot based on dual moving average crossover strategy. The name "Shift" reflects the core concept — detecting shifts in market momentum when fast and slow moving averages cross. This cBot is designed for traders seeking a reliable, rules-based approach to capturing trend reversals with built-in risk management.
The strategy opens long positions when the fast MA crosses above the slow MA and short positions when the fast MA crosses below the slow MA. It includes advanced filters and risk management features to optimize entry timing and protect capital.
Strategy type: Trend-following (filtered MA crossover)
Target symbols: Major forex pairs (EURUSD, GBPUSD, etc.), XAUUSD, other indices
Preferred periods: H1, H4, D1
Suggested leverage: 1:30 or higher
Suggested account size: $1,000+ (or equivalent in other currencies)
Trading use case: Medium to long-term trend trading with automatic risk management
Key Features:
• Flexible dual moving average system (customizable MA types and periods)
• Minimum crossover distance filter to avoid false signals
• Volume confirmation filter to validate trade entries
• Time-based trading hours filter
• Dynamic stop loss based on recent swing highs/lows
• Automatic breakeven protection when profit target is reached
• Money management system with balance-based position sizing
• Multiple concurrent positions support
• Visual crossover signals on chart (arrows)
• Custom fitness function for genetic optimization - using SQN-based with robustness penalty by Van Tharp’s formula
Optimization & Testing:
When optimizing this cBot, always leave a gap at the end of the optimization period for walk-forward analysis validation. This approach helps verify that optimized parameters perform well on out-of-sample data, ensuring the strategy is robust and not over-fitted to historical data.
VOLUME PARAMETERS
• Quantity (Lots): Trade size in lots (default: 1.0)
• Use Money Management: Enable dynamic position sizing based on account balance
• Reference Balance: Balance for which the base quantity is optimized (default: 10,000)
MOVING AVERAGE SETTINGS
• Fast MA Type: Type of moving average for fast MA (Simple, Exponential, etc.)
• Slow MA Type: Type of moving average for slow MA
• Source: Data series for MA calculation (Close, Open, etc.)
• Fast Periods: Number of periods for fast MA (default: 5)
• Slow Periods (add to fast): Additional periods for slow MA (default: 10, total: 15)
• Min Crossover Distance (pips): Minimum distance for valid crossover signal (default: 2)
VOLUME FILTER
• Volume Lookback: Number of bars for volume average calculation (default: 20, 0 = disabled)
• Volume Ratio: Required volume multiplier vs. average (default: 1.0)
POSITION MANAGEMENT
• Max Positions: Maximum concurrent positions allowed (default: 1)
TIME FILTER
• Trade Start Hour: Beginning of allowed trading hours (default: 0)
• Trade End Hour: End of allowed trading hours (default: 24, 0-24 = always active)
RISK MANAGEMENT
• SL Bars: Number of bars lookback for dynamic stop loss (default: 5, 0 = disabled)
• Activate Break Even Pips: Profit threshold to move SL to breakeven +1 pip (default: 0, 0 = disabled)
OPTIMIZATION
• Close All Trades On Stop: Automatically close positions when stopping during optimization and when optimization ends (default: false)
Trading involves risk. Past performance does not guarantee future results.






.png)







.png)

