SimpleLicense.mqh is a small include file to protect EAs and indicators you sell or share privately. You set the allowed accounts and the expiry date, compile, and give your customer only the .ex5. If the account, date, account type or server do not match, the program shows the reason and its logic does not run.
What it checks
The check runs in OnInit and again once per hour (once per minute while invalid), so an expiry date or an account switch is detected without restarting the terminal. The alert with the reason is shown once, not on every tick.
How to use it
Limits
Prop Firm Guardian - daily loss, max loss and profit target lock
Account guardian for prop firm rules: closes all trades and blocks trading before the daily loss or max loss limit is hit, with an optional profit target lock.
Trade Permission Checker - finds why an EA or copier cannot trade
Finds out why an EA or trade copier cannot trade on your account. Read-only script, never trades.
Equity Target Closer - close all trades at a profit or loss level
Closes all positions and pending orders when the account profit or loss reaches your target, in money or % of balance. Floating or full-day P/L, symbol and magic filters.
Execution Quality Logger - slippage, fill delay and spread of every deal
Logs the slippage, fill delay and spread of every deal on the account (manual, EAs, SL/TP hits) to a CSV file and shows a live summary. It never trades.