Prop Limit Panel
- Utilitários
-
Bayram Erhan Partal
MQL5 / MQL4 developer: Expert Advisors, indicators, scripts and utilities
for MetaTrader 5 and MetaTrader 4.
I deliver code that matches your specification, and I show the proof.
With every job you get
- Source code (.mq5/.mq4) and the compiled file, inputs named as in your spec - Versão: 1.10
- Atualizado: 1 dezembro 2026
Prop Limit Panel keeps your prop firm limits on the chart while you trade. It never opens, modifies or closes a position.
What it shows
- Daily loss: realized + floating loss of the day against your daily limit, with the amount left.
- If all SL hit: the day's result if every open stop loss is hit now. Positions without a stop loss are flagged in red.
- Max loss: equity against your overall limit, static or trailing.
- Open risk: money at risk from the current price to the stops of all open positions, on every symbol of the account.
- Target: progress to the profit target.
- Payout check (new in 1.10, off by default): the best-day (consistency) rule, trading days and minimum profit from closed trades, with the amount still needed.
- Status: OK, WARNING or DANGER, with an alert (and an optional push notification) when a limit is 50% / 80% used.
Why the day anchor matters
Some panels take the day's starting balance when they load. Restart the terminal in the afternoon and the daily loss starts again from zero. Prop Limit Panel rebuilds the anchor from the account's deal history at the firm's reset hour, so a restart, re-attaching the panel or a chart change never moves it.
Payout check
Many prop firms limit how much of the profit may come from the best day. Firms measure it in different ways, so choose the one your firm uses:
- Net closed profit: best day / net profit. Example: best day 1240 of 4000 profit is 31%. With a 25% rule the panel shows that 960 more profit is needed while the best day stays the same.
- Sum of positive days: best day / sum of all winning days.
- Profit target: best day / target in money. Example: 1000 of a 3000 target is 33.33%.
Limits of the check: it counts closed trades and their costs only, commission counts on the day it is charged, deposits and withdrawals are ignored, "days" are days on which a new trade was opened, and only the rules you switch on are checked. Separate charges booked by the broker as "charge", "correction" or "credit" are not counted. Your firm's dashboard decides.
Inputs
- InpDailyPct (4.0): daily loss limit, % of the daily base.
- InpDailyBase (balance): the daily base is the balance at the reset hour, or the higher of balance and equity at the reset hour. Equity at the reset hour is known only if the panel was running at that moment; after a restart later in the day the balance is used.
- InpResetHour (0): the hour your firm starts a new day, in server time (the Market Watch clock).
- InpMaxPct (10.0): max loss limit, % of the initial balance.
- InpMaxMode (static): static counts from the initial balance; trailing counts from the highest equity seen.
- InpInitial (0): initial balance; 0 takes the first deposit in the account history.
- InpTargetPct (10.0): profit target %; 0 hides the row.
- InpShowIfAllSl, InpShowRisk, InpShowTarget (true): show or hide each row.
- InpAlerts (true), InpWarnPct (50), InpDangerPct (80): alert levels in % of a limit used.
- InpPush (false): also send the alert to the MetaTrader mobile app.
- Show the payout check (false): shows or hides the section.
- Best day limit, % (25): 0 switches the rule off.
- Best day is measured against (net closed profit): net closed profit, sum of positive days, or profit target.
- Minimum days with a new trade (0): 0 switches the rule off.
- Minimum profit, % of initial balance (0): 0 switches the rule off.
- Count from, server time (empty): start of the payout cycle; empty counts the whole history.
- InpX, InpY, InpFontSize, InpBack, InpText: panel position, font size and colors.
Set the reset hour and the percentages to your firm's rules. Attach the panel to one chart only; it reads the whole account.
Feedback wanted
Please tell me in the comments:
- Which prop firm and account type do you use, and does the panel match the firm's dashboard?
- Which feature would you want next: close all at the daily limit, block new trades after the limit, cut risk after a drawdown step, or flat before news and weekends?
- Does the payout check match your firm's rule? If not, which firm and which wording?
- Anything shown wrong or missing on your account?
