Kantero Prop Risk Guard MT5
- Utilità
-
Bayram Erhan Partal
■ EA AND INDICATOR BUILDS
──────────────────────────────
I build MT4/MT5 EAs, indicators, scripts and trade tools from your written rules.
Before delivery I test every build against your rules and any examples you give me. - Versione: 1.0
- Attivazioni: 5
Kantero Prop Risk Guard watches your account against your prop firm's daily loss and max loss and acts on the rules you switch on. It never opens a trade. It closes positions and deletes pending orders only by these rules, and every rule is off until you switch it on.
Protections
- Daily cut: at a daily loss you set (not above the daily limit) it closes all positions, deletes pending orders and closes any new trade until the day reset. The daily loss counts from the balance at the day reset, or from the higher of balance and equity at that moment if you pick that input. A withdrawal or deposit during the day moves the base by the same amount. The lock survives a terminal restart. Pause Daily Cut stops it until the next reset, and the same button resumes it.
- Max loss close: at a total loss you set (below the max loss limit, in % of the initial balance) it closes all positions, deletes pending orders and closes any new trade until you untick Max Close. The loss is measured exactly like the Max Loss card: static from the initial balance, or trailing from the highest equity. The lock survives a terminal restart and a day reset.
- Target lock: when equity reaches the profit target it closes all positions, deletes pending orders and closes any new trade until you untick Target Lock, so late trades are closed before they give the profit back. It needs a profit target above 0.
- Weekend close: on Friday at the time you set (broker server time) it closes all positions and keeps new trades closed until Monday.
- News close: it reads the MetaTrader 5 economic calendar and closes and blocks only the symbols of the event's currency, for the minutes you set before and after the release. Hovering the News row shows the watched currencies and the next 5 events. If the calendar has not loaded, the row shows NO DATA and one alert says so.
- Drawdown step-down (DD Step): after a total loss you set, each new position is cut to a maximum risk to its stop loss. A new position without a stop loss is closed after a grace period, so an expert advisor still has time to set it.
The panel
- Daily loss and max loss against your limits, today's profit and loss, open risk to the stop losses (a position without a stop loss is flagged), equity and balance.
- Limit bars for the daily loss, the max loss and the profit target.
- A tick box per protection to switch it on or off from the chart. Turning a protection off, or on when that closes trades at once, needs a second click within 5 seconds.
- One state with its reason: NORMAL, WARNING, DAILY LOCK, MAX LOCK, TARGET LOCK, NEWS, WEEKEND, DD STEP or PAUSED.
- Close All, Pause Daily Cut and CSV buttons, and closed profit and loss per weekday for the last weeks (the CSV file keeps every day).
- Drag the panel anywhere on the chart, fold it to one line, size 80, 100 or 120%. Times on the panel and in alerts use your computer's clock; every input is in broker server time.
Alerts and phone push notifications on state changes, at most one per state every 5 minutes. A trade opened while a block is active is closed at once, with a popup. If a close fails, the reason line shows how many positions could not be closed and the broker's reply code, and the guard keeps retrying.
What it cannot do
- It works only while the terminal runs (a VPS or your own computer).
- A blocked trade is closed right after the broker fills it: a utility cannot stop an order before the fill, so the spread of opening and closing stays with you.
- Closes are market orders. Slippage or a price gap can make the loss larger than your cut or max close, and spread, slippage and commission can leave a target lock close slightly below the target. Set the max close below your firm's limit and the target a little above your firm's target.
- The daily and max loss always cover the whole account; a magic number or symbol filter limits only what the guard closes.
- One Friday close time for all symbols; a market that is already closed cannot be closed.
- Right after it starts, the daily cut, max close, target lock and DD Step wait until the deal history matches the balance ("syncing history" on the panel).
- Max close does not adjust for withdrawals: like your firm, it keeps the static floor at the initial balance minus the max loss. In trailing mode a withdrawal counts as loss for the DD Step start.
- With the higher of balance and equity as the base, the base falls back to the balance on the first day and on a day when the terminal was off at the day reset.
- Max close and target lock release only when you untick them: after your firm resets or ends the account, untick and tick again for the new start.
- The news close cannot run in the Strategy Tester (the calendar is empty there); the screenshots use a sample event.
Inputs
- Daily loss limit, % (4.0): your firm's daily limit.
- Daily loss measured from (Balance): balance at the day reset, or the higher of balance and equity then.
- Day reset hour, broker server time (0): the hour your firm starts a new day.
- Max loss limit, % of initial balance (10.0) and Max loss mode (Static): static counts from the initial balance, trailing from the highest equity.
- Initial balance (0): 0 takes the first deposit in the account history.
- Profit target, % (10.0): 0 hides the target bar.
- Close all and block at a daily loss (false) and Daily loss that triggers the cut, % (3.5).
- Close all and block at a max loss (false) and Loss that triggers it, % of initial balance (9.5): must be below the max loss limit.
- Close all and block at the profit target (false).
- Close all on Friday and block until Monday (false) and Weekend close (Friday), broker server time (21:30).
- Close and block around news (false), Lowest importance that counts (High), Minutes before the release (15), Minutes after the release (15).
- Cut the risk of new positions after a drawdown (false), Starts at this loss, % of initial balance (5.0), Max risk to stop loss per new position, % of balance (0.5), Close a new position that has no stop loss (true), Seconds an expert advisor gets to set the stop loss (10).
- Magic number (-1): -1 for all trades, 0 for manual trades only. Symbols, comma separated (empty for all). Max slippage for closes, points (30).
- Popup alert (true), Phone push (false), Warning at this share of a limit, % (50), Red at this share of a limit, % (80).
- Weeks in the daily grid (2), Panel X (12), Panel Y (24), Panel size (100%).
Set the limits to your firm's rules and attach the guard to one chart per account; it reads the whole account. A second copy on the same account stops at once with a message.
Feedback wanted
Please tell me in the comments:
- Which prop firm and account type do you use, and do the numbers match your firm's dashboard?
- Which rule of your firm is still missing here?
- Anything that behaved differently from this description on your account?
