# hometrader forex bot

> MQL5 Expert Advisor for MT5 featuring EMA crossovers, RSI confirmation, and ATR-based risk management.

hometrader forex bot is a paid AI agent skill on Agensi by Gabriel Kimutai, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Gabriel Kimutai](https://www.agensi.io/creators/gabriel-kimutai)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0
- Last updated: 2026-11-22
- Security: scan passed (2026-11-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/hometrader-forex-bot
- Tags: trading, mql5, metatrader-5, forex, algorithmic-trading

## About this skill

Writing MQL5 Expert Advisors from scratch is error-prone, especially when managing technical indicator alignment and risk-based position sizing. This skill provides a complete MetaTrader 5 (MT5) trading bot implementation based on the HomeTrader strategy, handling the boilerplate and logic for automated forex execution.

### What it does
- **Signal logic** executes trades based on EMA 20/50 crossovers confirmed by RSI 50 levels.
- **Dynamic risk management** calculates position sizes using a fixed 0.5% balance risk per trade.
- **Volatility-based stops** utilizes ATR (Average True Range) to set Stop Loss and Take Profit levels relative to market movement.
- **Operational filters** prevents entry during high-volatility spikes using a 30-point spread limit.
- **Trade management** enforces a one-position-at-a-time rule to prevent over-exposure.

### How it works
1. **Source the template** by requesting the HomeTrader MQL5 code block for a specific pair like EURUSD.
2. **Compile the code** in the MetaEditor (F7) after placing the file in the MQL5/Experts folder.
3. **Configure inputs** such as `RiskPercent`, `MagicNumber`, and `MaxSpreadPoints` via the MT5 terminal interface.
4. **Run backtests** using the Strategy Tester (Ctrl+R) to validate the Profit Factor and Drawdown before deployment.

### Frameworks & tools
The skill generates pure MQL5 code designed for the MetaTrader 5 platform. It relies on standard library includes for trade execution and technical indicator buffers.

### Why this beats prompting it yourself
Writing trading logic manually often leads to "off-by-one" errors in bar indexing or incorrect lot size calculations that can wipe accounts. This skill uses a pre-defined logic structure that ensures signals only trigger on closed bars and risk is strictly enforced at the code level.

### Use cases
- Automate trend-following strategies on M15 or H1 timeframes.
- Backtest EMA/RSI crossover efficacy over historical tick data.
- Enforce strict 1:2 Risk/Reward ratios across multiple forex pairs.
- Implement automated spread filtering to avoid slippage in illiquid markets.

### Known limitations
This skill is designed for education and demo backtesting only. It is restricted to the specific HomeTrader strategy parameters and requires manual compilation in MetaEditor.

## Requires

- MetaTrader 5
- Forex broker account (Demo recommended)
- Windows PC or Windows VPS
- Optional: EURUSD, GBPUSD, USDJPY charts on M15 or H1
- Optional: MQL5 / MetaEditor (to edit settings)

Install on MT5: File Open Data Folder MQL5 Experts paste HomeTrader EA, then attach to EURUSD M15 chart. Backtest on demo first. Risk is set to 0.5% per trade. For education only, not financial advice.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the hometrader forex bot skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Which trading platforms and AI agents are compatible with this skill?

The bot is specifically designed for the MetaTrader 5 (MT5) platform and generates pure MQL5 code. It is compatible with any AI agent or LLM that supports code generation and text output.

### What exactly is included when I purchase the HomeTrader Forex Bot skill?

You will receive a complete MQL5 Expert Advisor source code template that includes the EMA/RSI signal logic, ATR-based risk management, and spread filtering. It also includes instructions for compiling and configuring the bot within MetaEditor.

### How does this skill prevent common errors found in manually written trading bots?

Unlike generic prompts, this skill uses a hardened logic structure that prevents common coding errors like 'off-by-one' bar indexing and incorrect lot size math. It ensures that risk management is hard-coded into every execution, protecting you from manual calculation mistakes.

### Can I test the strategy on historical data before deploying it?

Yes, once you have the MQL5 code, you can use the MT5 Strategy Tester (Ctrl+R) to run historical backtests. This allows you to validate the Profit Factor, Drawdown, and Win Rate for any currency pair before you consider using it on a live or demo account.

### Is the bot customizable, or are the trading parameters fixed?

The skill allows you to configure specific inputs such as Risk Percentage per trade, Magic Numbers for trade tracking, and Maximum Spread limits to suit your specific broker and risk appetite.

### What are the primary limitations I should be aware of?

This skill is designed to automate a specific trend-following strategy (EMA/RSI crossover) and requires the user to manually compile the code in MetaEditor. It is intended for educational and backtesting purposes and should be used on demo accounts first.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
