Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If your MetaTrader daily loss limit clears after a restart, the likely cause is that the Expert Advisor (EA) keeps its baseline, loss counter, or breached-state flag only in memory. When the EA reloads, those ordinary program variables can return to their initial values. To preserve the limit, save and restore the trading-day identifier, baseline, and lock state—and only reset them when the applicable broker or funding-firm trading day changes.

The exact cause depends on the EA’s code and settings; without those, this is a likely explanation, not a diagnosis of a specific EA.

Why a restart can erase the limit

MetaTrader runs an EA as a program. If the EA stores its daily baseline, accumulated loss, or “limit breached” flag in ordinary variables, those values exist only while that program instance is running. Reinitializing the EA can assign them their defaults again, making the guard behave as if the day has just started.

This is separate from open positions: position data is held by the broker and can be read again after reconnection, while EA-created counters and flags need to be saved if they must survive a process restart. An MQL5 implementation discussion describes this distinction and shows binary-file persistence for structured EA state: Keeping Memory Across Restarts: EA State Persistence Using Binary Files in MQL5. The article is an implementation pattern, not evidence of how your particular EA is written.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
HP OmniBook 3 17.3 inch Laptop PC, FHD Display, AMD Ryzen 3 30, 8 GB RAM, 512 GB SSD, AMD Radeon 610M Graphics, Windows 11 Home, Mica Silver, 17-dp0199nr
  • FULL HD IPS DISPLAY - Enjoy vibrant, crystal-clear images with 178-degree wide-viewing angles
  • AMD RYZEN 3 30 PROCESSOR - Everyday performance you can count on; Multitask, stream, game casually, and edit photos smoothly with responsive power and vibrant HDR visuals
  • ENJOY UP TO 14 HOURS AND 15 MINUTES OF BATTERY LIFE - HP Fast Charge restores battery from 0 to 50% in approximately 45 minutes
  • AMD RADEON 610M GRAPHICS - Experience smooth entertainment; Built for streaming and multitasking, enjoy realistic visuals and efficient performance for work and play
  • STORAGE AND MEMORY - 512 GB PCIe NVMe M.2 SSD offers fast speed and efficient storage; and 8 GB LPDDR5 RAM memory boosts performance with higher bandwidth

What the EA must remember

At minimum, persistence should cover three related pieces of state:

  • Trading-day identifier: the date or timestamp associated with the current risk period.
  • Daily baseline: the balance, equity, or other value from which the limit is calculated.
  • Lock state: whether the loss threshold has already been breached and new entries must remain blocked.

On initialization, the EA should load these values and compare the saved day identifier with the currently applicable trading day. If it is still the same day, it should keep the saved baseline and lock state. It should establish a new baseline and clear the daily lock only after the defined reset boundary has passed. A restart alone is not a new trading day.

Rank #2
Thunderobot Radiant 16 i9 5060 2.5K 300Hz Gaming Laptop, NVIDIA GeForce RTX 5060, Core i9-14900HX, 16" QHD+ 300Hz Display, 32GB DDR5, 1TB SSD, RGB Backlit Keyboard, Wi-Fi 6, Win 11 Home, Black
  • [Lightning-Fast & Limitless Storage] With 32GB DDR5 RAM and a 1TB PCIe M.2 SSD, experience zero lag, instant load times, and the freedom to store everything you need.
  • [Extreme Performance Engine for Gaming & Creation] Driven by the Core i9-14900HX (24C/32T, 36MB L3 Cache, up to 5.8GHz) and GeForce RTX 5060, this system ensures powerful multitasking, fluid gameplay, and superior rendering for professionals and gamers alike.
  • [16" QHD+ 300Hz Precision Display] Featuring a 2560×1600 high-resolution panel with a 300Hz refresh rate, this display provides ultra-fluid motion and vivid, accurate colors for immersive gaming and professional-grade content creation. * Enable the dedicated graphics direct connection mode in the control center to use the highest refresh rate.
  • [All the Ports You Need] Connect faster with USB-A, USB-C, HDMI, RJ-45, and Wi-Fi 6. Includes a backlit keyboard, numeric pad, and webcam—ready for gaming or work anytime.
  • [Wind-Driven Thermal Control] Dual 12V turbofans, 0.2mm copper fins, and multi-directional exhausts deliver powerful cooling. Activate one-click forced cooling for stable performance even under intense gaming loads.

A published MQL5 risk-layer example demonstrates saving a day stamp and opening balance in terminal global variables, then restoring them during initialization: Building a Prop-Firm Risk Layer in MQL5: Daily Locks, Trailing Drawdown and Breach-Aware Entries (26 September 2026). The right implementation still depends on your account’s rules and the EA’s design.

Choose how to persist EA state

For a few numeric values, MetaTrader terminal global variables are one option. They are distinct from ordinary variables declared in EA source: terminal global variables are available independently of the EA, are shared among programs in the terminal, and persist across platform starts. MetaQuotes documents that they are deleted after four weeks without access, so they are not indefinite archival storage. See MetaTrader 5 Help: Global Variables and the MQL5 Reference: Global Variables of the Client Terminal.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Laptop, 2026 New Laptop Computer with Intel Twin Lake N150 Processor(Up to 3.6GHz), 16GB RAM 512GB NVMe SSD, 15.6" FHD Display, Windοws 11/Student/Business Laptop, HDMI, USB3.2, Long Battery Life
  • 【Performance-Driven Efficiency】The KAIGERR laptop is powered by the latest Intel Twin Lake N150 processor (4C/4T, 6MB cache, up to 3.6GHz), delivering enhanced multitasking capabilities and improved graphics performance. Designed to elevate your computing experience, this traditional laptop ensures seamless performance for both everyday tasks and more demanding applications.
  • 【16GB RAM & 512GB ROM】Equipped with 16GB of DDR4 RAM and a fast 512GB M.2 SSD, this windows laptop delivers up to 50% better performance than DDR3 models, ensuring smooth system operation and efficient handling of personal files. With expandable storage options—supporting a 128GB TF card and upgradable to 2TB SSD—you’ll never run out of space for your important documents and media.
  • 【Stunning Full HD Display】Experience stunning visuals on the 15.6-inch thin-bezel display, which offers an expanded screen area for a more immersive Full HD experience. The slim design fits a larger screen into a more compact body, making the laptop sleek and portable. A front-facing webcam, perfectly centered above the screen, ensures convenient access for photos and video calls anytime.
  • 【Stay Connected Anytime, Anywhere】The laptop computer is equipped with a versatile array of ports, including HDMI Type A x1, USB 3.2 x3, Type-C (Data) x1, 3.5mm Headphone jack x1, 128GB TF Card Socket x1, and Type-C DC Jack x1. Lightning-fast 802.11ac WiFi offers download speeds up to three times faster than previous generations, while Bluetooth 5.0 ensures stable, reliable connections to all your wireless devices—whether you're streaming, gaming, or working.
  • 【KAIGERR: Quality Laptops, Exceptional Support.】Enjoy peace of mind with unlimited technical support and 12 months of repair for all customers, with our team always ready to help. If you have any questions or concerns, feel free to reach out to us—we’re here to help.

Because terminal global variables share a namespace, use a clear, unique key that distinguishes the account and strategy. Otherwise, two EAs can overwrite each other’s values. For a coherent record with several related fields, a local state file can be more suitable; the MQL5 binary-file article above discusses that approach. The choice is about the state you need to preserve: a handful of numeric fields or a structured record.

Make the reset match the account’s actual rule

“Daily loss” does not have one universal calculation. A guard can preserve state perfectly and still be wrong if it uses a different day boundary or P&L formula from the governing account agreement.

Rank #4
HP 17.3" Business Laptop Computer, 64GB RAM 2.2TB Storage (2TB SSD + 256GB Docking Station), 10-Core Intel Core i5, Windows 11 Pro with Microsoft Office, PLUSERA Earphones, Black
  • 【Processor】Intel Core i5 (10 Cores, 12 Threads, Max Boost Clock Up to 4.6Ghz, 12MB Cache). Intel Iris Xe Graphics. This 17.3-inch laptop is also equipped with Windows 11 Pro, which makes your work or study easy and convenient.
  • 【Outstanding 17.3" Display】1600 x 900 high resolution LED screen (250 nits) provides you with a sharp and clear text and images. The ratio expands the vertical space of the screen, showing more content, providing a comfortable visual experience and greater efficiency when browsing web pages or documents.
  • 【Exceptional Storage Space】Equipped Up to 64GB DDR4 RAM and 2TB PCIe Solid State Drive, runs smoothly, responds quickly, handles multi-application and multimedia workflows efficiently and quickly.
  • 【Tech Specs】Stay connected with Wi-Fi and Bluetooth and variety of ports. The HP laptop features 1 x USB-C, 2 x USB-A, 1 x HDMI, 1 x Headphone/Microphone Combo Jack, allowing you to connect a variety of peripherals and devices for enhanced productivity.
  • 【Convenient and Portable Design】Designed with an ultra-thin case ensures of a stylish and innovative look, and excellent portability. Convenient and portable for business trips or traveling. Suitable for daily work and play. Great choice for business, offices or students.
  • Reset time: Use the broker server’s day boundary only if that matches the broker’s or funding firm’s rule. Server midnight can differ from local midnight; the applicable firm-defined rollover controls for a funded account.
  • Baseline: Confirm whether the rule is based on opening balance, equity, or another reference. Do not silently recalculate a same-day baseline after a restart or a balance change.
  • P&L included: Balance generally reflects closed results, while equity also reflects floating profit or loss. Confirm treatment of swap, commission, deposits, withdrawals, and positions carried across rollover.
  • Position rollover: Decide how overnight positions count when the daily period changes. A circuit-breaker example published on MQL5.com on 28 August 2026 calculates realized and floating P&L, includes swap, and halts until the next server midnight; it is an example, not a universal rule. See Implementing a Daily Loss Limit and Drawdown Circuit Breaker in MQL5.

Check where the reset is happening

  1. Reproduce safely: Use a demo account or Strategy Tester. Record the baseline, loss amount, and breached/locked state before and after a restart.
  2. Inspect the EA’s storage: Check whether it uses ordinary source-level variables, terminal global-variable functions such as GlobalVariableSet and GlobalVariableGet, or files. In MQL5, ordinary source variables and terminal global variables are different mechanisms.
  3. Review initialization: Look for code that unconditionally sets the baseline from current balance or equity, or clears the lock when the EA starts. Such logic can erase state even if the EA also has persistence.
  4. Restore before trading: Load the day identifier, baseline, and breach state before any order-submission logic can run. Save updates when the baseline or lock changes, and scope the key or filename to the account and strategy.
  5. Test the boundaries: Check an intraday terminal restart, chart reload, EA reattachment, and a restart after the actual day rollover. The first three should preserve same-day state; a new baseline should be created only at the intended reset boundary.
  6. Verify the loss formula: Test closed loss, floating loss, swap, commission, and overnight positions against the account’s documented rule.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Know what the guard can—and cannot—block

A halt flag inside one EA only affects order logic that checks that flag. It does not automatically stop an unrelated EA on another chart or prevent you from placing an order manually. A shared terminal flag can coordinate cooperating EAs, but manual orders and programs that ignore the flag remain outside that control. If multiple strategies trade the account, each relevant strategy needs to respect a consistently defined account-level lock.

A circuit-breaker example on MQL5.com discusses this limitation alongside its daily-loss logic: Implementing a Daily Loss Limit and Drawdown Circuit Breaker in MQL5. Treat community examples as patterns to inspect, not as a verified fix for your EA.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
jumper 15.6" FHD Laptop, 12GB RAM 256GB Storage Expandable to 512GB
  • Efficient Intel Processor: Powered by Intel Celeron 5205U dual-core two-thread processor with a fixed 1.9GHz base frequency, 2MB Intel Smart Cache and advanced 14nm Comet Lake lithography. Integrated Intel UHD Graphics for 10th Gen Intel Processors delivers stable daily performance. It handles daily office tasks, web browsing, video streaming and light multitasking smoothly while featuring ultra-low power consumption for extended use.
  • Fast Response Large Storage:Equipped with 12GB high-speed RAM to accelerate program loading and enable seamless multitasking. Built-in 256GB solid-state drive provides rapid boot and application launch speeds, offering ample storage space for your documents, software, photos and videos. Run daily productivity and multimedia applications without lag or slowdowns.
  • 15.6" FHD IPS Eye-Care Display:This laptop features a 15.6-inch Full HD IPS panel with native 1920×1080 resolution and classic 16:9 widescreen ratio. Designed with slim 5mm ultra-narrow bezels, anti-glare coating and blue light filtering eye protection, it effectively reduces eye strain during long hours of studying, streaming or working, delivering vivid, immersive visual experiences. effectively reduce blue light and eye strain, bringing you immersive visual experience for watching videos and studying.
  • Pre‑Installed Windows 11: Ready to Use Comes with a genuine Windows 11 system pre‑loaded, offering a clean, intuitive interface and broad software compatibility. Open the box, power on, and you're all set for school assignments, business reports, or daily computing needs.
  • Rich Ports & Long Lasting Battery Life:Built-in 38Wh rechargeable battery and dual stereo speakers. Support Bluetooth 4.2 & 2.4G/5G dual-band WiFi for fast wireless connection. Equipped with Type-C, HDMI, 3.5mm audio jack, dual USB 3.0, Micro TF slot and DC charging port, meet your daily external device connection and office expansion needs.

When to ask the EA developer or account provider

If the EA’s source is unavailable, ask its developer whether the day baseline and breach state persist through terminal restarts and what reset time and P&L formula it uses. If the account is funded, compare those settings with the firm’s written rules; do not assume broker midnight or a balance-only calculation is acceptable. Without the EA source, platform details, and account agreement, the reset mechanism and correct rule cannot be confirmed from the symptom alone.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.