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

PropGuard - account risk manager for prop firm accounts - MetaTrader 5용 expert

Sergej Michajlik
Sergej Michajlik
I build and maintain MT5 Expert Advisors, mostly for people trading index CFDs on prop firm accounts. DAX and S&P 500 are the markets I know best, I trade them myself on an FTMO account, so I know the rules from the trader side, not only from the code side.
조회수:
219
평가:
(2)
게시됨:
업데이트됨:
PropGuard.mq5 (15.48 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

PropGuard watches the whole account, not one chart. Attach one copy to any chart and it checks every position on the account, whatever EA or magic number opened it, and closes everything when a prop firm style limit is reached.

What it enforces: a daily loss limit on equity including floating profit, with a reset at a server time you set; a maximum loss measured either from the initial balance or trailing from the equity peak; a lot cap per position; an optional trading window; an optional Friday close; and an optional blackout around high impact news from the MT5 economic calendar. After a breach it flattens the account, cancels pending orders and keeps closing anything new until the next daily reset, so another EA cannot trade you into a second breach on the same day.

Everything it does is written to the Experts log, to a CSV file in MQL5\Files named after the account login, and optionally sent as a push notification.

Symbol and timeframe do not matter, the guard works on the account. It runs on a timer as well as on ticks, so it keeps checking during quiet markets.

Inputs:
InpInitialBalance, the account size the firm's rules refer to.
InpDailyLossPct and InpMaxLossPct, the guard's own limits in percent. Set them a little below the firm's, for example 4 and 8 on an account with 5 and 10 percent rules, so you stop before the firm stops you.
InpMaxLossMode, static from the initial balance or trailing from the equity peak.
InpResetHour and InpResetMinute, the daily reset in server time.
InpMaxLotsPerPos, any position larger than this is closed.
InpCloseOnBreach and InpBlockAfterBreach, flatten on a breach and keep the account flat until the next reset.
InpUseWindow with start and end hour, InpFridayClose with its hour, both in server time.
InpUseNewsFilter, InpNewsCurrencies, InpNewsMinutesBefore and After, the calendar blackout.
InpPushAlerts, push notification on every action.
InpMagicToIgnore, positions with this magic number are left alone.

Tested on an FTMO trial account.

log properties


NeonDesk - Neon Manual Trading Panel with Multi-Timeframe Bias NeonDesk - Neon Manual Trading Panel with Multi-Timeframe Bias

Draggable on-chart manual trading panel with multi-timeframe bias, ATR SL/TP hints, a trailing stop and one-click BUY/SELL/CLOSE ALL.

Price Action Volumetric Order Blocks MT5 Price Action Volumetric Order Blocks MT5

Open-source MT5 indicator for confirmed market structure, volumetric order blocks and estimated buy/sell activity.

ImpulseCandle - impulse bar marker with ATR body filter and volume confirmation ImpulseCandle - impulse bar marker with ATR body filter and volume confirmation

Marks impulse candles: body at least ATR x multiplier, body at least a set share of the candle range, close near the extreme, optional tick volume confirmation. Green arrow below a bullish impulse, red above a bearish one. Closed bars only, no repainting. Signals are in the two buffers so an Expert Advisor can read them with iCustom.

Stormbreaker ADX - Supertrend and DMI Trend EA Stormbreaker ADX - Supertrend and DMI Trend EA

Trend-following Expert Advisor for MetaTrader 5 combining Supertrend direction with ADX and DI confirmation. Uses an ATR-based stop loss and risks up to 0.5% of equity per trade.