π₯ 1. Set up
Confirm all settings on a demo account earlier than making use of the EA to a reside account. Incorrect settings could trigger quick closure of all trades.
Drag the EA onto any chart.
Information Filter prerequisite: If you wish to use the information filter, you need to add the URL https://nfs.faireconomy.media underneath Instruments β Choices β Knowledgeable Advisors β “Permit WebRequest for listed URL”.
βοΈ 2. Basic Settings
| Parameter | Default | Description |
|---|---|---|
| Magic Quantity | 308021 | Distinctive EA identifier. Solely related when MonitorAllTrades = false. |
| Monitor ALL trades | true | Displays all trades no matter magic quantity. When false, solely trades with the configured magic quantity are monitored. |
| Additionally shut pending orders | true | Additionally closes pending orders when trades are closed (e.g. on loss restrict or time rule). |
β° 3. Time-Based mostly Shut
A person shut time might be configured for every weekday (MondayβFriday). All instances seek advice from dealer server time.
| Parameter | Default | Description |
|---|---|---|
| Allow (Day) shut | MonβThu: false, Fri: true | Permits time-based closing for the respective day. |
| (Day) shut β Hour | 22 | Hour of shut (0β23). |
| (Day) shut β Minute | 55 (Fri: 57) | Minute of shut (0β59). |
π 4. Commerce Limits
| Parameter | Default | Description |
|---|---|---|
| Max trades per instrument | 3 | Most open trades per image. |
| Max trades per instrument per magic | 0 (off) | Most trades per image AND magic quantity. 0 = disabled. |
| Max whole open trades | 5 | Most whole open trades throughout all symbols. |
| Max lot dimension per commerce | 50.0 | Most lot dimension per commerce. Bigger trades are closed instantly. |
| Permit hedging | true | Permits reverse positions on the identical image. |
| Allow each day commerce rely | true | Permits the each day commerce rely restrict. |
| Max trades per day | 10 | Most trades per day (counted from reset time). |
| Allow weekly commerce rely | true | Permits the weekly commerce rely restrict. |
| Max trades per week | 50 | Most trades per week (resets Monday 00:00). |
| Shut trades when exceeded | true | Closes essentially the most just lately opened commerce when restrict exceeded. |
β οΈ 5. Danger Administration
Per-trade danger is calculated SL-based: (Entry β SL) Γ Tons Γ Tick Worth / Stability Γ 100 . Trades with out stop-loss return danger 0.
| Parameter | Default | Description |
|---|---|---|
| Allow single commerce danger | true | Permits per-trade danger checking. |
| Max danger per commerce (%) | 1.0 | Most SL-based danger per commerce as share. |
| Allow whole danger monitoring | true | Permits whole danger monitoring throughout all positions. |
| Max whole danger (%) | 3.0 | Most whole danger of all positions mixed. |
| Shut precedence | CLOSE_NEWEST | On danger exceeded: CLOSE_NEWEST (latest commerce) or CLOSE_RISKIEST (riskiest commerce first). |
| Permit trades with out SL | false | Permits trades with out stop-loss. When false, a countdown begins. |
| Seconds till shut with out SL | 15 | Seconds till a commerce with out SL is mechanically closed. |
π 6. Each day Loss Restrict
The each day loss restrict is calculated in actual time based mostly on fairness. It considers each open positions (unrealized P/L + swap + fee) and trades closed because the final reset time.
| Parameter | Default | Description |
|---|---|---|
| Allow each day loss safety | true | Permits each day loss safety. |
| Each day loss mode | LOSS_PERCENT | LOSS_PERCENT = share of reset stability, LOSS_AMOUNT = fastened quantity. |
| Each day loss worth | 4.50 | Restrict worth (% or $ relying on mode). |
| Day reset time β Hour | 0 | Hour of each day reset (0β23). Defines the beginning of the buying and selling day. |
| Day reset time β Minute | 0 | Minute of each day reset (0β59). |
| Disable Autotrading on cease | OFF | OFF = no block, UNTIL_RESET = till subsequent each day reset, UNTIL_MANUAL = till handbook reset. Disables autotrading within the terminal. |
| Retry makes an attempt for closing | 5 | Variety of shut makes an attempt per commerce (for dealer delays). |
| Delay between retries (ms) | 500 | Wait time between shut makes an attempt in milliseconds. |
π― 7. Revenue Goal & Revenue Lock
The revenue goal closes all trades when the configured worth is reached. The revenue lock is a trailing mechanism that secures income above an activation threshold.
| Parameter | Default | Description |
|---|---|---|
| Allow each day revenue goal | false | Permits the each day revenue goal. |
| Revenue goal mode | PROFIT_PERCENT | PROFIT_PERCENT = share of reset stability, PROFIT_AMOUNT = fastened quantity. |
| Revenue goal worth | 2.00 | Revenue goal worth (% or $). |
| Allow revenue lock | false | Permits the revenue lock (trailing revenue safety). |
| Revenue lock activation mode | PROFIT_PERCENT | Mode for the activation threshold. |
| Activation threshold | 1.00 | Each day revenue at which the lock prompts (% or $). |
| Lock share of peak | 50.0 | Share of peak revenue that’s secured. If revenue drops beneath, all trades are closed. |
Revenue Lock Instance
Settings: Activation = 1% ($1,000 on $100,000 stability), Lock = 50%
β Each day revenue reaches $1,000: Lock prompts, secured minimal revenue = $500
β Revenue grows to $3,000: Secured minimal revenue rises to $1,500
β Revenue drops to $1,400: Under $1,500 β All trades closed, autotrading disabled
The lock solely rises β it by no means falls. This progressively secures each day income.
π 8. Fairness Limits & Margin
| Parameter | Default | Description |
|---|---|---|
| Allow max fairness restrict | false | Permits the higher fairness restrict. |
| Max fairness | 110,000 | Closes all trades when fairness exceeds this worth. |
| Allow min fairness restrict | false | Permits the decrease fairness restrict. |
| Min fairness | 95,000 | Closes all trades when fairness drops beneath this worth. |
| Allow min margin degree | false | Permits margin degree safety. |
| Min margin degree (%) | 500.0 | Closes the riskiest commerce when margin degree drops beneath this worth. |
π 9. Alerts & Notifications
| Parameter | Default | Description |
|---|---|---|
| Allow popup alerts | true | Reveals popup home windows for vital occasions. |
| Allow sound alerts | true | Performs a sound on warnings. |
| Allow electronic mail alerts | false | Sends electronic mail notifications (requires SMTP configuration in terminal). |
| Allow push notifications | false | Sends push notifications to the MetaTrader cellular app. |
| Alert on each day loss restrict | true | Notification when loss restrict is reached. |
| Alert on commerce shut | true | Notification on each computerized commerce closure. |
| Alert on revenue goal | true | Notification when revenue goal is reached. |
| Alert on revenue lock | true | Notification on revenue lock activation/set off. |
| Alert on danger violation | true | Notification on danger violation. |
| Warning at x% of each day loss | 80 | Early warning when x% of the each day loss restrict is reached. |
π₯οΈ 10. GUI Settings
The GUI is absolutely configurable and auto-scaling. Width and line spacing adapt dynamically to the configured font dimension. Every part might be individually proven or hidden.
| Parameter | Default | Description |
|---|---|---|
| Present GUI | true | Reveals or hides the whole dashboard. |
| GUI coloration theme | THEME_DARK | THEME_DARK or THEME_LIGHT. |
| GUI language | LANG_ENGLISH | LANG_ENGLISH or LANG_GERMAN. |
| GUI font dimension | 9 | Font dimension (8β14). Width, line peak and header scale mechanically and proportionally. |
| GUI place X / Y | 20 / 30 | Place of the GUI on the chart in pixels. |
Further toggleable sections: Stability, Fairness, Each day P/L, Loss Restrict, Danger Config, Danger Data, Open Trades, Commerce Counter, SL Safety, Revenue Goal, Revenue Lock, Fairness Limits, Margin Degree, Shut Occasions, Commerce Limits, Standing, Information.
π° 11. Information Filter
The information filter makes use of ForexFactory as knowledge supply. It creates a configurable time window round every information occasion throughout which buying and selling is blocked. Prerequisite: WebRequest for https://nfs.faireconomy.media have to be allowed.
| Parameter | Default | Description |
|---|---|---|
| Allow Information Filter | false | Permits the information filter. |
| Block buying and selling X min earlier than | 10 | Buying and selling ban X minutes BEFORE the information occasion. |
| Block buying and selling X min after | 5 | Buying and selling ban X minutes AFTER the information occasion. |
| Allow auto-close earlier than information | false | Robotically closes open trades earlier than the information occasion. |
| Shut trades X min earlier than | 5 | Minutes earlier than information at which trades are closed. |
| Additionally block pending orders | true | Additionally blocks new pending orders throughout the information window. |
| Take away present pending orders | false | Saves and deletes present pending orders earlier than the information window. |
| Restore pending orders after | true | Robotically restores saved pending orders after the information window. |
| Dealer GMT offset | 99 (Auto) | Dealer GMT offset for ForexFactory time correction. 99 = auto-detect. Set manually (-12 to +14) if information instances seem shifted. |
| Auto-detect currencies | true | Robotically detects related currencies from the chart image. |
| Filter (Foreign money) information | USD,EUR,GBP,JPY: true | Permits the filter for the respective forex (USD, EUR, GBP, JPY, AUD, NZD, CAD, CHF, CNY). |
Pending Order Safety (New)
When “Take away present pending orders” is enabled, present pending orders are saved and deleted earlier than the information window. After the window ends, they’re mechanically restored β offered the worth continues to be legitimate (cease degree distance to present market is checked). Expired orders are skipped.
Saved orders are crash-safe: they’re saved in a separate file on disk and mechanically recovered on EA restart.
πΎ 12. Knowledge Persistence
PropProtector saves all vital knowledge persistently to disk:
Essential knowledge file ( PropProtector_(Account)_(Image).dat ): Reset stability, reset time, all flags (loss restrict reached, revenue goal reached, revenue lock standing, commerce rely standing, warning despatched), peak revenue and save time.
Pending orders file ( PropProtector_(Account)_(Image)_pending.dat ): All particulars of saved pending orders (kind, image, tons, value, SL, TP, magic, expiry, remark). Solely created when pending orders are saved throughout a information window.
Each recordsdata are saved within the MQL4/Information or MQL5/Information listing. On terminal restart or EA crash, knowledge is mechanically recovered.
π 13. Guide Reset
The reset button is situated within the GUI (backside proper). Clicking opens a affirmation dialog. After affirmation, the next values are reset:
Reset stability is ready to present stability, all flags (loss restrict, revenue goal, revenue lock, commerce counts) are reset, the autotrading lock is lifted, saved pending orders are deleted, and persistence recordsdata are up to date.
Computerized each day reset: Each day on the configured reset time (default: 00:00 server time), the reset stability is mechanically set to the present stability and all each day limits are reset. The weekly commerce counter resets each Monday at 00:00.
π‘ 14. Suggestions & Troubleshooting
Really useful Preliminary Setup
1. Load EA on demo account β 2. Regulate all limits to your prop agency β 3. Check for no less than one buying and selling week β 4. Switch to reside account.
Frequent Points
Information instances are fallacious? Verify the GMT offset within the journal log (e.g. “GMT offset: AUTO +2h”). If instances seem shifted, set the “Dealer GMT offset” parameter manually to the right worth.
EA closes all trades instantly: Verify min/max fairness limits and loss restrict. Disable options you do not want or alter the values.
Information filter not loading knowledge (MT4): Confirm the WebRequest URL is appropriately entered. Restart the terminal after including the URL.
Each day reset not working appropriately: Make sure the reset time matches your dealer’s server time, not your native time.
A number of EAs concurrently: With MonitorAllTrades = true, PropProtector displays all trades from all EAs. Checking runs in OnTimer (approx. each second). In uncommon instances, a short window between two timer ticks could exist the place two EAs open trades concurrently.
Vital
PropProtector doesn’t substitute dealer consideration. It’s a security web, not an autopilot. Verify your settings usually and alter them to modified account circumstances.