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

Prop Firm Live Daily Breach Line (OrderCalcProfit and iCustom Ready) - MetaTrader 5용 지표

조회수:
83
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Prop Firm Live Daily Breach Line is a lightweight chart indicator built for prop firm evaluations and funded accounts. It tracks your remaining daily drawdown buffer in account currency and draws a dynamic horizontal line (Daily Breach Level) on the chart. You can immediately see the exact price where your open net volume on the active symbol will hit the daily loss limit.

Simple tick-value calculators often drift on cross pairs or miss intraday commissions from closed trades. To solve this, the indicator reconstructs your exact 00:00 server-time balance from today's deal history and uses a two-step OrderCalcProfit() check so the breach price stays accurate across forex pairs, metals, and indices.

How It Works

  • 00:00 Baseline Reconstruction (Entry and Exit Deals): When InpManualStartBase is left at 0.0, the indicator reads today's deal history starting from 00:00 server time (iTime PERIOD_D1). It reverses all realized profits, swaps, fees, and both entry (DEAL_ENTRY_IN) and exit (DEAL_ENTRY_OUT / INOUT / OUT_BY) commissions. A 5-second history cache prevents chart lag during fast market ticks.
  • 00:00 HWM Snapshot (Balance vs. Equity): Supports both Balance Only and Higher of Balance or Equity (00:00 HWM) reset rules. During the midnight rollover window, it locks a single terminal GlobalVariable snapshot so post-midnight equity spikes don't artificially push your daily floor higher.
  • OrderCalcProfit Price Calibration: Calculates net open volume (Buy Lots minus Sell Lots) on the current chart while floating P/L from other symbols is already included in Account Equity. After a first linear estimate, it validates the exact loss distance with MQL5's native OrderCalcProfit() function. If you're flat, hedged, or your lot size is too small to hit the limit even at zero price, the line hides automatically and shows the current status on the panel.
  • iCustom() Buffers for Expert Advisors: Provides two non-drawing buffers (DRAW_NONE) so your own EA can read the numbers directly without scanning chart objects: Buffer 0 returns the Breach Price on the active symbol (0.0 if flat or unreachable), and Buffer 1 returns the Remaining Daily Buffer in account currency ($).
  • DPI-Scaled Panel and Clean Removal: Displays a compact dark-slate HUD in the top-right corner scaled via TERMINAL_SCREEN_DPI, restores your original chart settings, and deletes all PFLBL_ objects cleanly in OnDeinit().

Input Parameters

Parameter Default Description
InpBaseMode BASE_HIGHEST_OF_BALANCE_EQUITY Daily reset rule at 00:00 server time (Higher of Balance/Equity HWM or Balance Only).
InpDailyLossPct 5.0 Maximum daily loss percentage relative to the 00:00 reference base.
InpManualStartBase 0.0 Manual 00:00 reference override in account currency (0.0 = auto reconstruct from history).
InpBreachLineColor clrCrimson Color of the horizontal daily breach line.
InpBreachLineStyle STYLE_SOLID Line style of the horizontal daily breach line.
InpBreachLineWidth 2 Width of the horizontal daily breach line.
InpPanelX / InpPanelY 20 / 20 Horizontal and vertical pixel offsets for the top-right HUD panel.

Technical Scope

This utility is strictly a live single-chart monitor for intraday trading. Offline Strategy Tester HTML report parsing, historical M1 drawdown replay, Prague CE(S)T timezone HWM simulation, and static .mq5 code auditing require a dedicated report parser (available in my MQL5 profile).

Leverage Monitor – Real Leverage, Margin Tiers, Swap, Commission and Spread Leverage Monitor – Real Leverage, Margin Tiers, Swap, Commission and Spread

See the real leverage of every Market Watch symbol, including floating margin tiers, with swap, commission and live spread in one panel.

Prop-firm Guard - daily loss and max drawdown protection for challenge accounts Prop-firm Guard - daily loss and max drawdown protection for challenge accounts

Watches the whole account and closes everything before the daily loss or max drawdown limit is breached, then keeps the account flat until the block ends. Does not trade.

Fair Value Gaps Fair Value Gaps

Non-repainting fair value gaps on closed bars, with zone states (active, touched, mitigated) and iCustom buffers for EAs.

Algo: EMA Trend Cross on Closed Bars — XAUUSD M30 Algo: EMA Trend Cross on Closed Bars — XAUUSD M30

Free educational EA — a single-position trend-following EMA crossover system for XAUUSD M30, released as open source for beginners to study trade ownership guards, preflight order validation, risk-based lot sizing, and server-time session filtering. This code demonstrates how a strategy - identifies and manages only its own positions and orders through MagicNumber and comment tags, - wraps CTrade with an OrderCheck preflight that blocks invalid or margin-breaking requests, - sizes each trade from a fixed stop-loss and risk percentage, - and restricts entries to a configurable broker session window with a daily close-all — all evaluated on completed bars only, so signals never repaint.