Positions and Risk Target Dashboard
- Uzmanlar
- Sürüm: 1.0
- Etkinleştirmeler: 5
Positions & Risk Dashboard is a clean, draggable on-chart panel for MetaTrader 5 designed to help manual traders monitor open positions, calculate target Take Profit (TP) and Stop Loss (SL) prices based on desired profit/loss amounts, and apply or clear TP/SL levels across matching positions.
Key Features:
-
Real-Time Position Summary: Displays open order counts (Buy/Sell), total volume (lots), current symbol spread in points, floating P/L in the account currency, and estimated total P/L at current TP/SL levels (including optional Swap).
-
Target TP & SL Price Calculator: Enter your desired profit or loss target in account currency to calculate the corresponding target price, distance in points, and remaining P/L difference from current floating P/L.
-
Breakeven Reference: Calculates the weighted breakeven price for the active symbol and calculation mode (including optional Swap).
-
Flexible Calculation Modes: Choose between Net All Positions (Buy + Sell), Buy Positions Only, or Sell Positions Only, with optional filtering by current symbol and Magic Number.
-
Chart Lines & One-Click Modification: Optionally draws horizontal lines for Breakeven, TP Target, and SL Target on the chart, with Apply TP, Clr TP, Apply SL, and Clr SL buttons plus live status feedback.
-
Clean Dark UI: Features a collapsible/minimizable panel (- / + ) and a Reset button to return the panel to its initial position.
How Target Prices Are Calculated: Target prices are calculated on the current chart symbol ( _Symbol ) using position volume, open price, contract tick value/size ( SYMBOL_TRADE_TICK_VALUE and SYMBOL_TRADE_TICK_SIZE ), and optional position Swap ( InpIncludeSwap ).
Important Notes:
-
Always test on a demo account or with small volume first to verify broker execution rules, minimum stop levels ( Stops Level ), and symbol specifications.
-
Target P/L inputs are interpreted in the account's base currency (for example, USD or USC ).
-
This utility is a monitoring and trade-management assistant and does not place new entry orders automatically.
Input Parameters
- InpCurrentSymbolOnly: Calculate target prices for the current chart symbol (true) or summarize across all symbols (false).
- InpCalcSide: Select calculation scope (Net All, Buy Only, or Sell Only).
- InpMagicFilter: Filter positions by Magic Number (-1 for all positions, >= 0 for a specific Magic Number).
- InpIncludeSwap: Include position Swap in P/L and target price calculations (true/false).
- InpDefaultTargetPL / InpDefaultStopLossPL: Default target profit and target stop loss values in account currency.
- InpOrderMagic: Magic Number assigned to trade modification requests sent by the panel.
- InpDrawTargetLine / InpDrawSLLine / InpDrawBELine: Toggle horizontal lines on the chart.
- InpPosX / InpPosY / InpFontName / InpFontSize: Initial panel coordinates and typography settings.
