거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

Spread and Daily ATR Risk Meter HUD - MetaTrader 5용 지표

VAN THANH NGUYEN
VAN THANH NGUYEN
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.
조회수:
100
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

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.