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

PropFirm Consistency and Drawdown Monitor - MetaTrader 5용 지표

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

Most funded-account challenges fail on two rules traders rarely track side by side: peak-to-equity drawdown and single-day consistency caps. If a single winning session exceeds your prop firm consistency share (such as 30% of total net profit), payouts can be delayed or rejected even when equity stays positive.

PropFirm Consistency and Drawdown Monitor tracks daily drawdown, trailing total drawdown, and closed-bar consistency ratio in a lightweight chart HUD and exposes four iCustom buffers for automated Expert Advisors. Every ratio calculation guards denominators above 1e-9 and evaluates closed bars at shift >= 1 to prevent zero-divide faults and look-ahead bias.

PropFirm Consistency and Drawdown Monitor HUD

iCustom Buffers and Closed-Bar Logic

Your EA reads closed-bar index InpClosedBarShift (default 1 , enforced >= 1 ) via CopyBuffer . Buffer 0 ( ExtStateBuf ) outputs monitor state ( 0 = OK, 1 = Warning at >=80% of any limit, 2 = Breach). Buffer 1 ( ExtDailyDdBuf ) outputs current daily drawdown percentage. Buffer 2 ( ExtTotalDdBuf ) outputs peak-to-equity total drawdown percentage. Buffer 3 ( ExtConsistencyBuf ) outputs the largest single-day profit share against total net profit (%).

EA Integration Snippet (MQL5)

int g_monitorHandle = INVALID_HANDLE;

int OnInit()
  {
   g_monitorHandle = iCustom(_Symbol, _Period, "PropFirm_Consistency_Drawdown_Monitor");
   if(g_monitorHandle == INVALID_HANDLE)
      return(INIT_FAILED);
   return(INIT_SUCCEEDED);
  }

bool IsRiskWithinLimits()
  {
   double stateBuf[1];
   if(CopyBuffer(g_monitorHandle, 0, 1, 1, stateBuf) <= 0)
      return(false);
   return((int)MathRound(stateBuf[0]) < 2);
  }

Input Parameters

Parameter Default Description
InpInitialBalance 100000.0 Initial account balance in account currency used as peak equity floor.
InpMaxDailyDdPct 5.0 Maximum allowed daily drawdown percentage before flagging a breach.
InpMaxTotalDdPct 10.0 Maximum allowed overall peak-to-equity drawdown percentage.
InpConsistencyCapPct 30.0 Maximum allowed single-day profit share of total net profit (%).
InpClosedBarShift 1 Closed bar shift used for evaluation (enforced >= 1 to avoid look-ahead bias).
InpLookbackDays 30 Closed trade history lookback window in calendar days for daily profit aggregation.
InpPanelX 20 Top-right HUD horizontal offset in pixels.
InpPanelY 20 Top-right HUD vertical offset in pixels.
InpShowHud true Toggle read-only chart HUD panel visibility.

Technical Scope

This indicator focuses on live chart drawdown and consistency telemetry plus iCustom state output. It does not execute orders, close positions, replay historical M1 tick curves, or audit external HTML backtest reports. For setup notes and related risk utilities, visit the prop-firm risk guide or my MQL5 profile.

Breakout Follow-Through Statistics: Real Break or Fakeout After a New N-Bar High or Low? Breakout Follow-Through Statistics: Real Break or Fakeout After a New N-Bar High or Low?

Every new N-bar high or low gets tagged, timed, and scored — real breakout or fakeout — so the scorecard tells you what this symbol has actually done at its own extremes, not what you assume it does.

Pullback Depth Statistics: How Deep Do Pullbacks Go Before the Trend Resumes? Pullback Depth Statistics: How Deep Do Pullbacks Go Before the Trend Resumes?

Builds a real depth distribution for this symbol's pullbacks — how far price typically retraces before the trend resumes, and how often it doesn't resume at all.

Trend or Chop? A Variance-Ratio Scoreboard That Shows Whether Your Symbol Trends or Mean-Reverts on Each Horizon Trend or Chop? A Variance-Ratio Scoreboard That Shows Whether Your Symbol Trends or Mean-Reverts on Each Horizon

Shows whether your symbol tends to trend or to mean-revert, and on which horizon. For five horizons (2, 4, 8, 16 and 32 bars by default) the indicator computes the variance ratio: the variance of multi-bar price changes divided by the variance of one-bar changes, scaled by the horizon. A ratio above 1 means that moves tend to continue, below 1 that they tend to reverse. The lines show the ratio over a rolling window, and a panel gives a scoreboard with ratio, z-score and verdict TREND, CHOP or NOISE for the recent window and for the whole history, plus one line to paste into a comment. It is a statistics tool and gives no trade signals.

MACD Signals MACD Signals

Indicator edition for new platform.