Position Averaging Calculator
- Indicatori
- Versione: 1.0
- Attivazioni: 5
Calculate the exact entry price or lot size needed to reach your target average — directly on the chart.
A lightweight MT5 indicator that solves a common trading problem: if I add to my position at market price, what volume do I need to reach my target average? Or the reverse: if I want to add a fixed lot size, at what price must I enter?
The panel reads your open positions automatically, displays the current average entry price with a dashed line on the chart, and lets you set a target average. Hit Calculate and the tool instantly returns the required entry price or lot size — whichever you haven't fixed. A dotted target line is drawn on the chart so you can see both levels at a glance.
Works for long and short positions. Supports any symbol (Forex, indices, metals, crypto).
How to use:
1. Attach the indicator to any chart.
2. Press Load positions — current average and total volume are loaded automatically.
3. Set your Target avg price using the +/− buttons.
4. Leave New volume at auto to get the required lot size at market price — or set a specific lot to get the required entry price.
5. Press Calculate.
Two calculation modes
Fix the volume → get the price, or leave volume on auto → get the required lots at market.
Auto position load
Reads all open positions on the current symbol and computes the weighted average entry automatically.
Chart lines
Draws a live average line (blue) and a target line (yellow) directly on the chart.
Long & short support
Calculates correctly for both buy and sell positions on any MT5 symbol.
Lot step aware
Output volume is automatically rounded up to the broker's minimum lot step.
Clean panel UI
Compact overlay panel — no clutter, no extra windows. Fully configurable position and colors.
InpLineColor — color of the average price line (default: DodgerBlue)
InpLineWidth — line width (default: 2)
InpPanelX / InpPanelY — panel position on screen
InpTargetPrice — pre-set target average on attach (optional)
InpNewVolume — pre-set new volume on attach (optional, 0 = auto)
MetaTrader 5 · Any broker · Any symbol · No DLL required
