Alım-satım robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Telegram üzerinde bulun!
Fan sayfamıza katılın
Kodu ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Kodu beğendiniz mi? MetaTrader 5 terminalinde deneyin
Göstergeler

Spread and Daily ATR Risk Meter HUD - MetaTrader 5 için gösterge

VAN THANH NGUYEN
VAN THANH NGUYEN
  • Algorithmic Trader at  FREELANCE
  • Vietnam
  • 16
MetaTrader 5 Expert Advisor developer focusing on automated trading systems and risk management. I trade and build tools mainly for XAUUSD: spread and session-aware risk sizing, daily ATR budgets and 1R position sizing, and execution-quality checks between backtest and live trading.
Görüntülemeler:
100
Derecelendirme:
(1)
Yayınlandı:
MQL5 Freelance Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

OVERVIEW

Spread and Daily ATR Risk Meter HUD is a lightweight, zero-buffer on-chart informational indicator for MetaTrader 5. It monitors real-time execution conditions and calculates a reference 1R position size directly from the chart without cluttering candles or adding subwindows.


KEY METRICS DISPLAYED

- Live Spread & Pip Conversion: Displays current symbol spread in both points and standard pips, highlighted against a customizable warning threshold (InpWarnSpreadPoints).

- Daily ATR(14) & Today Range Usage (%): Tracks completed Daily ATR points alongside how much of today's average daily range has already been consumed.

- Broker Execution Constraints: Reads live SYMBOL_TRADE_STOPS_LEVEL and SYMBOL_TRADE_FREEZE_LEVEL distances in points.

- 1R Reference Lot Size: Uses OrderCalcProfit() (with automatic tick-value fallback and SYMBOL_VOLUME_STEP normalization) to estimate a disciplined 1R position size for the configured account risk percentage and Daily ATR multiple.


INPUT PARAMETERS

- InpRiskPercent: Target account risk percentage per 1R trade (default: 1.0%).

- InpATRPeriod: Daily ATR calculation period (default: 14).

- InpStopATRMult: Reference stop-loss distance expressed as a multiple of Daily ATR (default: 0.50).

- InpWarnSpreadPoints: Spread threshold in points for elevated-spread visual alert (default: 30).

- InpPositionCorner: Chart corner anchor for the HUD card (CORNER_LEFT_UPPER by default).

- InpOffsetX / InpOffsetY: Horizontal and vertical pixel margins from the selected corner.


INSTALLATION

Copy SpreadATR_RiskMeter.mq5 into your MetaTrader 5 MQL5/Indicators folder, compile in MetaEditor (0 errors, 0 warnings), and attach to any chart. This is a read-only informational HUD indicator and does not place or modify orders.






Risk Drift Audit: the Real Risk of Every Past Trade Risk Drift Audit: the Real Risk of Every Past Trade

Shows the risk every past trade really took (the loss at its stop loss as a % of the balance at entry) and how far a fixed lot drifted from the tested risk. Read-only.

Previous Day High, Low and Close Levels Previous Day High, Low and Close Levels

Draws the previous day High, Low and Close as horizontal levels on the chart, with optional history for several past days, extension of today's levels to the right and price labels.

Round-Number / Psychological Level Magnet Round-Number / Psychological Level Magnet

Auto-scaled round-number grid for any symbol — big figures and half levels drawn to the right spacing whether you're on EURUSD, USDJPY, XAUUSD or an index, plus a live "distance to nearest magnet" readout.

AlgoFX Session Liquidity Sweeps AlgoFX Session Liquidity Sweeps

Marks previous day, Asian and London session highs and lows from chart bars and flags closed-bar, ATR-filtered liquidity sweeps. Non-repainting, with EA-readable buy/sell buffers and an on-chart display panel.