Risk Position Size and Daily Range Dashboard
- Indicatori
-
Shahzaib Muhammad Munir
Trader-first MQL5 & PineScript Developer with 5+ years of real Gold (XAUUSD) & Forex trading experience.
Unlike generic coders who don't understand market structure, I build clean, 0-warning MT5 Expert Advisors and indicators designed for real live execution and prop-firm safety: - Versione: 1.1
Risk Position Size and Daily Range Dashboard is a lightweight MetaTrader 5 technical indicator that combines live position-size calculations, ATR-based stop-loss sizing, Average Daily Range (ADR) target levels, spread monitoring, and a candle close countdown timer in a clean on-chart HUD.
Key Features:
- Live Risk & Position Sizing: Calculates exact broker-adjusted lot sizes from your chosen Risk % of Account Equity or Balance using real symbol tick value, tick size, and volume step rules.
- Dual Stop-Loss Modes: Displays recommended lot sizes simultaneously for both a custom Stop Loss (in pips) and a volatility-adjusted ATR Stop Loss (configurable ATR period and multiplier).
- Risk-to-Reward Targets: Automatically previews 1:1, 1:2, and 1:3 reward amounts in your account currency.
- Dynamic ADR High/Low Levels: Calculates Average Daily Range from completed D1 candles, plots dashed ADR High (Buffer 0) and ADR Low (Buffer 1) target levels on recent intraday days, and tracks Today's Range percentage with color-coded exhaustion warnings (green < 70%, gold 70%-95%, red >= 95%).
- Live Spread & Bar Countdown: Shows real-time spread in pips and time remaining until the current candle closes.
- DPI-Aware Clean HUD: Automatically scales for standard and high-DPI displays, supports all four chart corners, and cleans up only its own objects on removal without affecting manual chart drawings.
Supported Instruments & Timeframes:
- Works on Forex pairs (4/5-digit and JPY pairs), Metals (XAUUSD / Gold), Indices, and Crypto on any MetaTrader 5 broker.
- Recommended intraday timeframes: M1 to H4 (dashboard remains active on D1 and higher).
Indicator Buffers (iCustom Compatible):
- Buffer 0: Dynamic ADR High Level
- Buffer 1: Dynamic ADR Low Level
Input Parameters:
1. Risk & Position Sizing:
- Risk Calculation Base: Account Equity or Account Balance.
- Risk Per Trade (%): Percentage of capital risked per trade.
- Custom Stop Loss (Pips): Manual stop-loss distance for lot sizing.
- ATR Period / ATR Stop Loss Multiplier: Settings for dynamic volatility-based stop-loss sizing.
2. ADR & Daily Levels:
- ADR Lookback Period (Days): Number of completed D1 candles used to compute ADR.
- Plot Today ADR High/Low Lines: Toggle on-chart dashed ADR target lines.
- Recent Days to Plot ADR Lines: Number of recent days (1-30) to display ADR levels.
3. Dashboard Appearance:
- Show Live Dashboard Panel: Enable or disable the HUD panel.
- Panel Corner, Horizontal/Vertical Offset, Font Size, Background/Border/Text/Accent Colors, and Unique Object Prefix.
