PragmAlgo Position Size Calculator
- Индикаторы
- Версия: 2.0
PragmAlgo Position Size & Risk Architecture Calculator
Category: Indicators / Utilities / Risk Management / Lot Size Calculation
Platform: MetaTrader 5 (MT5 Desktop)
Supported Assets: 100% Multi-Asset (Forex majors & crosses, Gold XAUUSD, US Indices US30 / NAS100, DAX GER40, Crypto BTCUSD / ETHUSD, and Commodities)
Timeframes: All Timeframes (M1 to Monthly — Optimized for scalping, day trading, and swing trading)
License: 100% Free (Essential Utility of the PragmAlgo Suite)
Product Overview
PragmAlgo Position Size & Risk Architecture Calculator is an institutional-grade quantitative utility for MetaTrader 5 designed to permanently eliminate the #1 failure mode in active trading: improper lot sizing and mathematical risk miscalculations.
In discretionary trading and prop firm environments (FTMO, Apex Trader Funding, Topstep), sizing positions on external spreadsheets or mobile calculators introduces latency, execution friction, and severe conversion mistakes—especially on non-forex assets like Gold, Indices, and Crypto. This tool streamlines execution into a visual, frictionless workflow: it plots interactive, draggable chart lines directly onto your MT5 chart, instantly recalculating exact lot sizes, monetary risk, potential payout, and spread drag on every tick.
Visual Chart Architecture & Interactive Workflow
- Interactive Drag-and-Drop Chart Lines:
- Cyan Line (Planned Entry): Drag to your planned entry level. Automatically locks to current market price upon attachment.
- Crimson Coral Line (Stop Loss): Drag to your technical invalidation level. The calculator automatically identifies whether the trade is Long (Buy) or Short (Sell) and recalculates volume instantaneously.
- Emerald Green Line (Take Profit): Drag to your target objective to calculate expected net profit in dollars and exact Risk-to-Reward ratio.
- Dynamic Price & Distance Badges:
Each line displays real-time on-chart text showing exact pips, points, and financial gain/loss implications.
- Institutional HUD Card: "PragmAlgo Position Sizer" (Top-Right): Obsidian dark-mode telemetry card delivering 11 real-time metrics on every tick:
- 1. Recommended Lot Size: Bold cyan lot size quantized and bounded to broker volume step constraints.
- 2. Risk Budget at SL: Maximum projected financial loss in account deposit currency ($) and risk percentage.
- 3. Expected Reward at TP: Net projected financial reward in dollars upon hitting target.
- 4. Risk-to-Reward Ratio (R:R): Color-coded reward-to-risk metric (Green ≥ 2.0R, Gold ≥ 1.0R, Red < 1.0R).
- 5. Stop Loss Distance: Distance displayed in both Pips and Points.
- 6. Take Profit Distance: Distance displayed in both Pips and Points.
- 7. Target Entry Price: Exact price coordinate for immediate market or pending order entry.
- 8. Current Spread Friction: Monetary cost of broker spread and percentage of risk budget absorbed by spread friction.
- 9. Required Margin: Exact collateral required to hold the position vs currently available free margin.
- 10. Symbol Pip Value: True monetary value of 1 pip for 1.0 standard lot on the active instrument.
- 11. Interactive Control Status: Live guide indicating draggable line status.
Mathematical Precision & Multi-Asset Normalization
Unlike simplistic calculators that assume a rigid $10/pip formula, PragmAlgo Position Size Calculator dynamically interrogates your broker's raw symbol specifications:
- Reads SYMBOL_TRADE_TICK_VALUE and SYMBOL_TRADE_TICK_SIZE in real time, adapting flawlessly to direct, indirect, and cross currency pairs, synthetic contracts, commodities, and crypto assets.
- Enforces institutional floor quantization based on SYMBOL_VOLUME_STEP, ensuring orders never trigger volume rejection or accidental over-leveraging.
- Allows switching between Dynamic Floating Equity (to protect open profits) and Static Settled Balance.
Input Parameters
| Parameter | Default Value | Description |
|---|---|---|
| InpRiskMode | RISK_PERCENT | Calculation mode: Percentage of account (%) or Fixed cash amount ($). |
| InpRiskPercent | 1.0 % | Risk percentage per trade relative to account capital. |
| InpRiskCash | 500.0 $ | Fixed cash amount at risk if Cash mode is active. |
| InpCapitalBase | CAPITAL_EQUITY | Capital reference: Floating Equity or Static Balance. |
| InpDefaultSLPips | 25.0 Pips | Default Stop Loss distance upon attaching to chart. |
| InpDefaultTPPips | 50.0 Pips | Default Take Profit distance upon attaching to chart. |
| InpShowHUD | true | Enable or disable the on-chart HUD telemetry card. |
| InpHUDCorner | HUD_CORNER_TOP_RIGHT | Docking corner for the HUD card on the chart. |
PragmAlgo Position Size Calculator is a quantitative calculation utility designed to assist traders in managing trade risk and calculating position sizes. It does not provide financial advice, make trade recommendations, or guarantee future trading results. Execution speed and slippage are dependent on your broker's execution environment.
