Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+23 more

    MT4 Lot Size Calculator by Smart Algotrade

    by Smart Algotrade

    1

    Risk-based lot size calculator for MetaTrader 4, plus step-by-step help installing and troubleshooting MT4 Expert Advisors. Free tool by Smart Algotrade (smartalgotrade.com), MT4 Forex robot developers.

    Free

    Security scanned
    MT4 Lot Size Calculator by Smart Algotrade

    MT4 Lot Size Calculator by Smart Algotrade

    Example session with this skill installed

    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?

    • Read your context and instructions
    • Compiled the mt4 lot size

    I have calculated the position size for your EURUSD trade based on a 1% risk model.

    Position Sizing Report

    ParameterValue
    Account Balance$5,000.00
    Risk Percentage1.00%
    Stop Loss25 Pips
    Money at Risk$50.00
    Pip Value (per 1.00 lot)$10.00
    Calculated Lot Size0.20
    Actual Risk at 0.20 lots$50.00 (1.00%)

    Next steps

    1. Open your MT4 terminal and select the EURUSD chart.
    2. Enter a New Order with a Volume of 0.20.
    3. Set your Stop Loss exactly 25 pips from your entry price.

    Forex trading involves significant risk; this is a position-sizing calculation, not trading advice.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Trading without a plan leads to blown accounts. This skill enforces disciplined risk management by calculating exact position sizes based on your specific account parameters and setup.

    What it does

    • Calculate lot sizes using account balance, risk percentage, and stop loss distance in pips.
    • Determine pip values for major pairs, cross pairs, JPY pairs, and commodities.
    • Install MT4 scripts by providing the LotSizeCalculator.mq4 file and placement instructions.
    • Configure Expert Advisors through step by step setup of "AutoTrading" and "Allow WebRequest" settings.
    • Troubleshoot EA errors including "Trade is disabled", "Invalid stops", and "Not enough money" messages.

    How it works

    1. Calculate a lot size by providing your balance, pair, risk percentage, and pip distance.
    2. Obtain the MT4 script file and follow the "Open Data Folder" workflow for installation.
    3. Diagnose non-trading robots by checking the "Common" tab settings and the Experts journal logs.

    Frameworks & tools

    This skill is designed for the MetaTrader 4 (MT4) platform and MQL4 programming environment. It includes a Python utility lot_size.py for headless calculations and an .mq4 source file for terminal use.

    Why this beats prompting it yourself

    Generic LLMs often struggle with the nuances of pip values for JPY pairs or indices, leading to 10x calculation errors. This skill uses a hardcoded formula and a dedicated script to ensure rounding matches broker lot steps (e.g., 0.01) precisely.

    Use cases

    • Determine the lot size for a 1% risk trade on a $5,000 account.
    • Setup a new MT4 Expert Advisor with correct "Allow live trading" permissions.
    • Resolve why a Forex robot shows a "sad face" instead of trading.
    • Install a custom script to read tick values directly from a broker's feed.

    Known limitations

    Calculations for metals and indices are approximate unless the user provides the broker's specific tick value and size. The skill does not support MetaTrader 5 (MQL5) specific file paths.

    About the creator

    This skill is a free tool by Smart Algotrade, developers of automated Forex trading robots (Expert Advisors) for MetaTrader 4, with live results published every month since 2016.

    Risk warning: Forex trading involves significant risk and is not suitable for every investor. Past performance does not guarantee future results.

    Calculations for metals/indices are approximate without broker tick data. Designed for MT4/MQL4; does not support MT5 paths. Requires Python for the lot_size.py utility.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Frequently Asked Questions

    This skill acts as a dual-purpose assistant that performs precision risk calculations to prevent over-leveraging and provides technical support for installing or fixing MetaTrader 4 scripts and Expert Advisors.

    Yes, it includes a standalone Python utility for quick calculations and the .mq4 source file for direct use inside your MetaTrader 4 terminal.

    Unlike general AI, this skill uses hardcoded formulas designed for broker-specific rounding (e.g., 0.01 lot steps) and correctly accounts for the unique decimal structures of JPY pairs and commodities.

    This skill is purpose-built for the MetaTrader 4 (MT4) and MQL4 environment; it does not currently support MetaTrader 5 (MT5) file paths or MQL5-specific syntax.

    You will receive the AI agent skill access, the `lot_size.py` Python utility for headless calculations, the `LotSizeCalculator.mq4` source code, and a step-by-step installation guide for your terminal.

    The skill can diagnose most common MT4 errors, such as the "sad face" icon, "Trade is disabled" messages, and "Invalid stops" by guiding you through the Experts journal and terminal settings.

    New in Trading & Investing

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.

    Free