Specifiche
**Project Title:**
Development of a Complex High-Performance EA for Step Index
**Project Overview:**
I need an advanced Expert Advisor (EA) for trading the Step Index on MetaTrader 5. The EA should use multiple indicators and advanced risk management techniques to enhance profitability and manage risks effectively.
**Trading Strategy Details:**
Indicators:
- 50-period EMA
- 200-period EMA
- RSI with 14 periods
- MACD (12, 26, 9)
- Bollinger Bands (20, 2)
Entry Conditions:
- Buy when all the following conditions are met:
- 50-period EMA is above the 200-period EMA.
- RSI is below 30.
- MACD line crosses above the signal line.
- Price touches or is below the lower Bollinger Band.
- Sell when all the following conditions are met:
- 50-period EMA is below the 200-period EMA.
- RSI is above 70.
- MACD line crosses below the signal line.
- Price touches or is above the upper Bollinger Band.
Exit Conditions:
- Take profit based on 1.5 times ATR.
- Stop loss based on 1.0 times ATR.
- Enable trailing stop of 0.5 times ATR.
**Risk Management:**
- Position sizing: Use 2% of account balance per trade.
- Max open trades: Limit to 5.
- Max daily loss: Stop trading if 5% of account is lost in a day.
**Customization:**
- Allow adjustment of all indicator parameters (EMA periods, RSI period, MACD settings, Bollinger Bands settings).
- Allow adjustment of take profit, stop loss, trailing stop, position sizing, max open trades, and max daily loss in the EA settings.
**Backtesting and Optimization:**
- Optimize the EA for Step Index using historical data from January 2020 to December 2023.
**Technical Requirements:**
- Develop the EA for MetaTrader 5.
- Ensure compatibility with the latest version of MetaTrader 5.
- Provide source code and detailed documentation.