SimpleMACrossover
- Experts
- Andreas Metzner
- Versão: 1.0
MA Crossover Expert Advisor - Professional Moving Average Trading
Automated Trading System Based on Moving Average Crossover Strategy
The MA Crossover EA is a fully automated Expert Advisor based on the proven Moving Average Crossover strategy. The system automatically detects trend changes and trades profitably in trending markets.
✨ Key Features
- Flexible MA Settings: Choose between SMA and EMA with freely configurable periods
- Automatic Signal Generation: Buys on bullish crossover, sells on bearish crossover
- Two Trading Modes:
- Reverse Mode: Closes old position and opens new one on opposite signal
- ATR Stop Loss Mode: Uses intelligent ATR-based stop loss levels
- Percentage-Based Risk Management: Automatic lot calculation based on account size
- Trading Hours Filter: Definable trading hours with automatic position closure outside hours
- Anti-Overtrading Filter: Minimum bars between trades prevents excessive positions in ranging markets
- Fully Automated: No manual intervention required
⚙️ Adjustable Parameters
Risk Management:
- Risk %: Percent of account per trade (Default: 1.0%)
Trading Hours:
- Enable Trading Hours: Activate/deactivate trading hours
- Start Hour: Beginning of trading time (0-23)
- End Hour: End of trading time (0-23)
Moving Average Settings:
- MA Type: SMA (Simple) or EMA (Exponential)
- Fast MA Period: Period of fast MA (Default: 20)
- Slow MA Period: Period of slow MA (Default: 50)
Trade Management:
- Trade Mode: Reverse on Signal or ATR Stop Loss
- Use ATR Stop: Activate ATR-based stop loss
- ATR Multiplier: Multiplier for ATR stop loss (Default: 2.0)
- ATR Period: ATR period for calculation (Default: 14)
- Min Bars Filter: Minimum bars between trades (Default: 5)
EA Settings:
- Magic Number: Unique EA identification
- Slippage: Maximum slippage in points
🎯 How It Works
Crossover Logic:
- Buy Signal: Fast MA crosses slow MA from below to above
- Sell Signal: Fast MA crosses slow MA from above to below
Trading Modes:
- Reverse Mode (Recommended for strong trends):
- Old position is closed on new signal
- Immediate opening of new position in signal direction
- Maximum trend following without fixed stop loss
- ATR Stop Loss Mode (More conservative):
- Intelligent stop loss based on market volatility
- No automatic reversal on opposite signal
- Protection against large drawdowns
Anti-Overtrading Filter:
- Prevents too frequent trades in ranging markets
- Minimum number of bars between new positions
- Reduces spread losses and whipsaws
💡 Use Cases
- Trending Markets: Optimal for clear uptrends or downtrends
- Forex Pairs: EUR/USD, GBP/USD, USD/JPY and all major pairs
- Indices: DAX, S&P500, NASDAQ
- Commodities: Gold, Oil, Silver
- 24/7 Trading: Fully automated operation without monitoring
⚠️ Important Notes
- Moving Average strategies work best in trending markets
- Whipsaws can occur in ranging markets (use Min Bars Filter!)
- Recommended for use on H1 or H4 timeframes
- Backtesting on historical data is strongly recommended
- Start with small risk (0.5-1%) and demo trading
- Adequate risk management is essential
🔧 Technical Details
- Compatible with MetaTrader 5
- Works on all timeframes (M1-MN)
- Supports all currency pairs and symbols
- Optimized for low latency
- Complete lot normalization according to broker specifications
- Precise risk calculation based on tick values
