01 — Utilities

Lot Size Calculator

Calculates position size directly on chart — drag Entry and SL lines, done.

MetaTrader 5
·v1.2
  • Drag & drop Entry/SL lines
  • Automatic lot calculation
  • Risk in % or fixed amount
  • Minimal, clean design
Entry 15,820SL 15,77545 ptsLONG | 45 pts | 1.0% risk | 0.22 lots
02 — Why it works

From problem to solution.

01

The Problem

Before every trade you have to manually calculate position size — account size, risk, SL distance. This costs time and invites errors.

02

The Solution

Simply drag two lines on the chart: Entry (white) and Stop Loss (red). The lot size is calculated instantly.

03

The Result

One line shows you everything: direction, distance in points, risk, and exact lot size — no calculator needed.

03 — Use cases

When do I use this?

  • 01

    You spot a setup on DAX → drag Entry to entry and SL below the last low → "LONG | 45 pts | 1.0% | 0.22 lots" appears.

  • 02

    You change from 1% to 0.5% risk in settings → lot size adjusts instantly.

  • 03

    Press [R] to reset lines to current price.

04 — Setup

Getting started

  1. 01

    Load EA on chart

  2. 02

    Drag Entry line (white) to desired entry price

  3. 03

    Drag SL line (red) to stop loss level

  4. 04

    Read lot size and enter in One-Click panel or F9

  5. 05

    Press [R] to reset lines

05 — Technical

Technical Details

Parameters & Settings(9)
  • InpRiskPercent

    Risk per trade in %

    1.0
  • InpFixedRisk

    Fixed risk amount (0 = use %)

    0
  • InpUseEquity

    Use equity instead of balance

    false
  • InpTextX

    Text X position

    500
  • InpTextY

    Text Y position

    22
  • InpFontSize

    Font size

    9
  • InpTextColor

    Text color

    Black
  • InpEntryColor

    Entry line color

    White
  • InpSLColor

    SL line color

    Red
Full Description
The Lot Size Calculator enables "chart trading" like TradingView – directly in MetaTrader 5. **The Problem** Before every trade, lot size must be calculated: account size, risk percentage, distance to stop loss. This usually means: switch tabs, open calculator, enter values, back to MT5. **The Solution** Two lines on the chart: Entry (white) and Stop Loss (red). Drag them to your desired prices – the EA instantly calculates the appropriate lot size based on your risk. **Minimal Design** No cluttered panels or buttons. Just one line of text with all important info: direction, points distance, risk, lot size. Fits any chart setup.
Changelog(v1.2)
v1.22026-01
  • +Minimal design without panel
  • +Positionable text display
  • +Hotkey [R] for reset
  • +Improved lot normalization
06 — Support

Need help?

Feel free to reach out with questions or issues.

timon-krueger@web.de