Loading…

Account Protector

Account Protector is a script for MetaTrader 4 from the Old Kings collection. It can send alerts. It has 18 settings, for example Slippage (default 2), Log File Name (default log.txt) and Enable Emergency Button (default No). Drop it on a demo chart first to see exactly what it does. Inside: 1 EA file with source code (.mq4) you can open and edit in MetaEditor. Old Kings are classic community tools shared as-is. Not tested by PolyMaria. Try it on a demo account first. Are you the author of this tool? Message us on Telegram (@abumarket_support) and we will credit you or take it down.

Script · MT4 · v1.0 · Free

About Account Protector

Account Protector is a script for MetaTrader 4. It can alert you with a pop-up, sound, email or push message. It has 18 settings, such as Slippage, Log file name and Enable emergency button. MQL source code included.

Files in the download: Account Protector.mq4, Account Protector.mqh, Defines.mqh.

Settings

SettingDefaultWhat it does
Slippage2Slippage
Log file namelog.txtLog file name
Enable emergency buttonNoEnable emergency button
Panel on top of charttruePanelOnTopOfChart: Draw chart as background?
Do not reset conditionsfalseDoNotResetConditions: Don't reset conditions on trigger?
Do not reset actionsfalseDoNotResetActions: if true, actions won't be reset on trigger.
Disable float loss rise percfalseDisable floating loss rises % condition.
Disable float loss fall perctrueDisable floating loss falls % condition.
Disable float loss rise currfalseDisable floating loss rises currency units condition.
Disable float loss fall currtrueDisable floating loss falls currency units condition.
Disable float loss rise pipsfalseDisable floating loss rises pips condition.
Disable float loss fall pipstrueDisable floating loss falls pips condition.
Disable float profit rise percfalseDisable floating profit rises % condition.
Disable float profit fall perctrueDisable floating profit falls % condition.
Disable float profit rise currfalseDisable floating profit rises currency units condition.
Disable float profit fall currtrueDisable floating profit falls currency units condition.
Disable float profit rise pipsfalseDisable floating profit rises pips condition.
Disable float profit fall pipstrueDisable floating profit falls pips condition.

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the script onto a chart to run it once.

Download the PDF guide

Tags: Alerts · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria