Ask your AI agent for the right lot size, for help installing an Expert Advisor, or for a fix when your EA is not trading. Our free MT4 AI assistant is a skill you add to Claude, ChatGPT, Cursor, Codex and other AI agents. As a result, your agent answers MetaTrader 4 questions with a tested formula and clear step by step instructions, instead of guessing.

What the MT4 AI assistant does
In short, the MT4 AI assistant covers the questions traders ask most often:
- Lot size: first, it calculates the position size from your balance, risk % and stop loss in pips, rounded to your broker’s lot step.
- Pip value: it also works out what one pip is worth on major pairs, cross pairs, JPY pairs and commodities.
- MT4 script: in addition, it gives you our free LotSizeCalculator.mq4 script and shows you where to put it in MetaTrader 4.
- EA setup: moreover, it walks you through installing an Expert Advisor and turning on AutoTrading and Allow WebRequest.
- Troubleshooting: finally, it helps you fix common EA errors such as “Trade is disabled”, “Invalid stops” and “Not enough money”.
Example: ask your MT4 AI assistant for a lot size
For example, you type: “I have a $5,000 USD account. I want to risk 1% on a EURUSD trade with a 25 pip stop loss. What lot size should I use?” With the skill installed, your agent then answers with a clear report:
| Account balance | $5,000 |
| Risk per trade | 1% ($50) |
| Stop loss | 25 pips on EURUSD |
| Pip value (1.00 lot) | $10 |
| Lot size | 0.20 |
After that, it tells you the next steps in MT4: open a new order on EURUSD with a volume of 0.20 and set the stop loss 25 pips from your entry.
Which AI agents work with the MT4 AI assistant?
The skill works with Claude, Claude Code, ChatGPT, Cursor, Codex CLI and many other AI agents that support MCP. In other words, you add it once, and then your agent loads it whenever you ask an MT4 question.
How to add the MT4 AI assistant to your agent
- First, open the MT4 Lot Size Calculator skill on Agensi and click Use this skill.
- Next, choose your agent (Claude, ChatGPT, Claude Code or another agent) and follow the setup prompt to connect it to Agensi.
- Then sign in to Agensi when your agent shows the link, and click Allow.
- Finally, ask your MT4 question. Your agent loads the skill and uses it.
The skill is free, so you only need a free Agensi account.
Why not just ask ChatGPT or Claude directly?
General AI chatbots often get pip values wrong for JPY pairs, gold or indices. As a result, a mistake there can make your lot size ten times too big. In contrast, the skill uses a fixed formula and rounds the result to your broker’s lot step. Therefore, the number you get is the number you can trade.
MT4 AI assistant limitations
- For gold, other metals and indices the result is an estimate, unless you give your broker’s tick value and tick size.
- Also, the skill is built for MetaTrader 4, so it does not cover MetaTrader 5.
Prefer a calculator in your browser or inside MT4?
Instead, you can use our free lot size calculator and pip value calculator right in your browser. Alternatively, get the same tools inside MetaTrader 4:
Get our 4 free MT4 tools
The same calculators, inside MetaTrader 4. Enter your email and get the download right away.
- Lot Size Calculator script
- Pip Value indicator
- Risk Reward tool with draggable lines
- Drawdown Monitor with alerts
Related MT4 guides
- How to install an Expert Advisor into MetaTrader 4
- MT4 Expert Advisor not trading? How to fix it
- How to read an MT4 backtest report
Prefer to let a robot follow the rules?
Smart Algotrade has built automated trading robots (Expert Advisors) for MetaTrader 4 since 2015, with live monthly results published since 2016. Our leading robot, the Double FX Robot, is free for one year when you open an account with one of our partner brokers. See the monthly results.
Risk warning: trading Forex and CFDs carries a high risk of loss. Past results do not guarantee future returns. This skill and our calculators are free tools for education and planning, not investment advice.
