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

Prop Firm Risk Manager - daily loss and trailing drawdown guard - MetaTrader 5용 expert

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

An account guard for prop-firm challenges and funded accounts. It does not open trades: it watches the whole account (manual trades and any other EA) and closes everything before the firm's limits are broken.

How it works

  • Daily loss limit - today's loss is measured from the day's starting balance (or equity). When it reaches the limit minus a safety buffer, all positions are closed, pending orders are deleted and trading stays blocked until the next day.
  • Max drawdown - static (from the starting balance) or trailing (from the highest equity). The trailing floor can lock at the starting balance, as most firms do. At the floor plus the buffer everything is closed and the account stays locked.
  • Profit target (optional) - closes everything when equity reaches start + target, so a passed challenge is not given back.
  • Exposure limits (optional) - maximum total lots and maximum open positions; the newest positions are closed first.
  • Friday close (optional) - closes everything at a set server time to avoid weekend gaps.
  • Panel and alerts - equity, today's P/L, daily room left, drawdown floor and room left; phone push notifications.
  • Restart-safe - the equity peak and the lock are saved per account in Global Variables, so a terminal or VPS restart does not reset the protection.

Inputs

  • StartBalance - challenge starting balance.
  • DailyLossUSD, DailyFromEquity, DayResetHour, DailyBufferUSD - daily loss rule (check whether your firm measures from balance or equity at the day start).
  • DDMode, MaxDDUSD, LockAtStart, MaxDDBufferUSD - overall drawdown rule (static or trailing).
  • TargetUSD - profit target lock (0 = off).
  • MaxOpenLots, MaxOpenPositions - exposure limits (0 = off).
  • FridayCloseOn, FridayCloseHHMM - weekend protection (server time).
  • Push, ShowPanel - notifications and panel.
  • ResetLock - set to true once when starting a new challenge to clear a saved lock.

Usage: attach to any one chart (any symbol, any timeframe) and keep Algo Trading enabled so the EA can close positions. Set the limits slightly tighter than your firm's real limits. It works alongside any other EA or manual trading on the same account.

Robustness Lab: Optimisation robustness map with plateau score for the Strategy Tester Robustness Lab: Optimisation robustness map with plateau score for the Strategy Tester

Draws a live heatmap of two optimised inputs while the Strategy Tester optimises your EA, and scores every cell by its neighbourhood: the plateau score is the mean minus k times the standard deviation of the surrounding cells. It shows whether your best parameters sit on a stable plateau or on a single lucky cell, and writes an HTML report, a CSV and a picture of the map. Includes a Monte Carlo drawdown criterion and a small demo EA. Part of the free Robustness Lab set.

Robustness Lab: Monte Carlo drawdown analysis of your trading history Robustness Lab: Monte Carlo drawdown analysis of your trading history

Takes the closed trades of your account (all, or filtered by magic number and symbol), reshuffles or resamples them thousands of times and shows how deep the drawdown could realistically get. You get drawdown percentiles, the probability of a drawdown above your limit, the spread of final equity, an equity fan chart and a drawdown histogram, on the chart and as an HTML report. Part of the free Robustness Lab set.

Return-to-Mean Clock: How Many Bars Does Price Take to Come Back to the Moving Average Return-to-Mean Clock: How Many Bars Does Price Take to Come Back to the Moving Average

Measures how long price takes to come back to its moving average. The histogram shows the distance of the close from an EMA in ATR. Every time that distance first reaches a stretch level (1, 2 and 3 ATR by default), the indicator follows the stretch until the close is back at the average, runs further, or the wait is over. A panel shows, for each level, how often price came back, how often it ran further first, and the median and 80th-percentile number of bars the return took. One line can be pasted into a comment to compare symbols. It is a statistics tool and gives no trade signals.

Daily loss and max loss guard - prop firm rules in one include Daily loss and max loss guard - prop firm rules in one include

Watches the equity like a prop firm does: daily loss limit and max loss limit, static or trailing, floating profit included. Stops new trades at a warning level, closes everything on a breach and remembers it after a restart.