Back to Risk Management

Position Size Calculator EA

The MetaTrader EA tool that calculates position size and draws entry, stop-loss, and take-profit lines on your chart

The Position Size Calculator is built into the free TradeLog 3-in-1 EA for MetaTrader 4 and MetaTrader 5 (which also handles trade sync and candle countdown). It runs directly on your chart and provides real-time position sizing, entry/SL/TP visualization with colored lines, and one-click trade execution.

Key Features

  • Real-time position size calculation based on your risk percentage and account balance.
  • Visual entry, stop loss, and take profit lines drawn directly on the chart.
  • Stop-loss planning line that auto-tracks price, with live R:R display.
  • One-click Buy/Sell buttons on the chart panel.
  • Risk import from your TradeLog account settings via API.
  • Support for both fixed and compounding risk modes.
Position Size Calculator EA running on a MetaTrader chart with entry, SL, and TP lines

How It Works

  1. 1Install the EA on your MetaTrader chart (drag from Navigator to any chart).
  2. 2The EA panel appears in the corner of your chart.
  3. 3Drag the entry, stop loss, and take profit lines on the chart to your desired levels.
  4. 4The EA automatically calculates the correct lot size and displays it in the panel.
  5. 5Click Buy or Sell to execute the trade with the calculated position size.

Chart Lines

The EA draws three color-coded horizontal lines on your chart:

  • Blue Line -- Entry price. Drag this to your planned entry level.
  • Red Line -- Stop loss price. Drag this to your stop loss level.
  • Green Line -- Take profit price. Drag this to your target level.
  • These are the default colors -- all three are configurable in the EA inputs.

Risk Import from TradeLog

The EA can connect to your TradeLog account and import your risk settings directly. This ensures the position size calculation uses the same risk percentage and mode you have configured in TradeLog.

The 3-in-1 EA (which includes the Position Size Calculator) is available for free download from the Connections page. It comes in separate versions for MT4 (TradeLog_MT4_EA.ex4) and MT5 (TradeLog_MT5_EA.ex5).
The EA respects your broker's maximum lot size limits. If the calculated position size exceeds the broker's limit, the EA will cap it and display a warning.

Was this helpful?