Position Sizer Expert Advisor for MT4/MT5 – Professional Risk & Position Management Tool for Traders

12/16/2022

Position Sizer is a powerful MetaTrader Expert Advisor designed to help traders calculate the optimal position size for every trade based on precise risk management principles. By combining entry price, stop-loss, risk tolerance, and account parameters, Position Sizer ensures that every trade is aligned with your money management rules.

This Expert Advisor supports both MetaTrader 4 and MetaTrader 5, with the MT5 version offering slightly enhanced functionality thanks to the platform’s advanced features.

What Position Sizer Calculates
Position Sizer determines the correct lot size using:

  • Entry and stop-loss levels
  • Risk tolerance (percentage or fixed money risk)
  • Account size (balance, equity, or adjusted balance)
  • Account currency
  • Live currency exchange rates

This allows traders to maintain consistent risk control regardless of market conditions or trading instruments.

Key Features

  • Works with all trading instruments: Forex pairs, CFDs, stocks, indices, commodities, futures, and cryptocurrencies
  • Interactive graphical control panel displayed directly on the chart
  • Freely movable, collapsible, and easy-to-use interface
  • One-click adjustment of all calculation parameters
  • Drag-and-drop Entry, Stop-Loss, and Take-Profit levels on the chart
  • Supports stop-loss and take-profit defined in points or based on ATR (Average True Range)
  • Automatic calculation of reward and risk-to-reward ratio
  • Supports instant orders, pending orders, and stop-limit orders (MT5)
  • Ability to calculate risk based on a predefined position size
  • Displays current and potential risk and reward profiles
  • Dedicated tabs for Margin, Risk, Swaps, and Trading
  • Shows required margin and maximum position size based on free margin
  • Custom leverage input for accurate margin calculations
  • Detailed swap (rollover) information for long and short positions
  • Optional spread and point-value display
  • Automatically saves settings on timeframe changes or platform restarts
  • Supports multiple take-profit levels with position splitting
  • Completely free and open-source, no DLL imports required

User Interface Overview
Main Tab
The Main tab is the core of the Expert Advisor. It displays essential trade information such as position size, risk, reward, and risk-to-reward ratio. Traders can quickly switch between long and short positions, adjust entry and exit levels, define risk, and view the final calculated position size in real time.

Risk Tab
The Risk tab evaluates both current and potential portfolio risk by analyzing open positions and pending orders. It provides a clear overview of total exposure, helping traders avoid over-leveraging their accounts.

Margin Tab
This tab displays detailed margin information, including required margin for the calculated trade, future used margin, free margin after trade execution, and the maximum allowable position size based on leverage.

Swaps Tab
The Swaps tab shows complete rollover details for the selected instrument, including daily and yearly swaps for both long and short positions, calculated per lot and per position size.

Trading Tab
The Trading tab allows traders to execute trades directly from the panel using the calculated position size. It also includes advanced trade management options such as trailing stop, breakeven, slippage control, spread limits, and trade confirmation.

How to Use Position Sizer

  1. Attach Position Sizer to a chart – the EA automatically sets an initial entry, stop-loss, and take-profit.
  2. Adjust stop-loss and take-profit manually or by dragging chart lines.
  3. Set risk as a percentage or fixed monetary amount.
  4. Review risk, reward, and margin details across the tabs if needed.
  5. Execute the trade manually or directly through the EA using the Trade button or hotkey.

This workflow makes Position Sizer ideal for both discretionary traders and systematic traders who demand precise risk control.

Installation
To install Position Sizer:

  1. Copy the entire EA folder into:
    • /MQL4/Experts/ for MT4
    • /MQL5/Experts/ for MT5
  2. Compile Position Sizer.mq4 or Position Sizer.mq5 in MetaEditor
  3. Attach the EA to any chart and enable AutoTrading / Algo Trading

Conclusion
Position Sizer Expert Advisor is an essential tool for traders who take risk management seriously. By automating position size calculations and providing deep insight into risk, margin, and reward, it helps traders trade with confidence, discipline, and consistency across all markets.

Position Sizer | MT4
Position Sizer | MT5

Password:forexsignalpro.net

 Disclaimer: Always test the robot on a demo account before using real money. Trading involves risk.