Meet the MARSI EA! 
This beginner-friendly Expert Advisor (EA) merges the power of the Relative Strength Index (RSI) and a Simple Moving Average (SMA) to pinpoint and execute trading opportunities in financial markets, particularly XAUUSD (Gold).
The EA is designed to showcase:
Dynamic lot sizing that adjusts to your account risk
RSI-driven entry conditions for overbought and oversold markets
Trend filtering through the use of a Moving Average
Stop Loss and Take Profit levels fine-tuned to symbol tick precision
It's particularly valuable for those just dipping their toes into technical strategies, offering insights into how indicators, dynamic risk management, and broker-specific details can influence your trading decisions.
Understanding the Trading Logic
Here’s how the EA operates:
Buy when:
The current price sits above the moving average, indicating a bullish trend.
RSI is under the oversold threshold, hinting that prices may be on the rise.
Sell when:
The price drops below the moving average, suggesting a bearish trend.
RSI exceeds the overbought threshold, indicating that prices could decline.
Stop Loss and Take Profit settings are configured using _Point and are adjusted based on your broker's pricing precision (_Digits).
External Input Parameters Explained
| Variable | Description |
|---|---|
| maPeriod | The period used for the Simple Moving Average |
| rsiPeriod | The period applied to the Relative Strength Index |
| rsiOverbought | The RSI threshold indicating an overbought market (sell signal) |
| rsiOversold | The RSI threshold indicating an oversold market (buy signal) |
| riskPercent | The percentage of your balance that you’re willing to risk per trade |
| stopLoss | The distance for Stop Loss in points |
| takeProfit | The distance for Take Profit in points |
| slippage | The maximum allowed slippage in points |
Recommended Usage
Symbol: XAUUSD (Gold)
Timeframe: M15 or H1
Broker: Any broker providing accurate tick data (make sure to test with both 2/3 and 4/5 digit brokers for reliability)
Backtest Range: A 3 to 6 month period is ideal
Conditions: Ensure tick data is available for reliable RSI and MA values
Additional Notes
The function PipSize() is handy for normalizing pip values across brokers with varying _Digits.
The EA intelligently calculates lot sizes based on your account balance and defined risk.
The code is modular, allowing for easy extensions like trailing stops, news filters, or other trading conditions.
This project is ongoing, and your feedback is always welcome!
연관 포스트
- Unlocking the Potential of Easy Robot: Your Go-To Expert Advisor for MetaTrader 4
- Mastering Adaptive Grid Trading with MetaTrader 4
- Unlocking the Cincin EA: Your Guide to Automated Trading on MetaTrader 5
- Mastering ATR: Your Go-To Guide for Take Profit and Stop Loss in MetaTrader 4
- How to Identify the First Friday of the Month for NFP Trading