Bonus 3: EA Lockout Installation Guide | FXAthena
Bonus 3 Deliverable

The EA Lockout Installation Hub

Follow the protocol below to hard-code the unfeeling 2% kill-switch directly into your MetaTrader 4 terminal.

Compiled Executable File (.ex4)

The pre-baked, plug-and-play institutional software. Download this file to your PC and drag it into your MT4 Experts folder.

Download .EX4 File

PC Installation Instructions

  • 1

    Download the File: Click the gold button above to download FXAthena_KillSwitch.ex4 to your computer.

  • 2

    Open Data Folder: Open MetaTrader 4 on your PC. In the top left corner, click FileOpen Data Folder.

  • 3

    Place the File: Open the MQL4 folder, then open the Experts folder. Drag and drop the downloaded .ex4 file into this folder.

  • 4

    Refresh Terminal: In MT4, look at the "Navigator" panel on the left. Right-click on "Expert Advisors" and select Refresh. The FXAthena KillSwitch will appear in the list.

  • 5

    Activate: Drag the KillSwitch onto any open chart. Ensure the "AutoTrading" button at the top of MT4 is green. You are now protected.

Transparency: The Source Code

For institutional transparency, the core algorithmic logic is provided below. You do not need to use this if you downloaded the compiled .ex4 file above.

//+------------------------------------------------------------------+ //| FXAthena_72Hr_KillSwitch.mq4 | //| Copyright 2026, FXAthena | //+------------------------------------------------------------------+ #property copyright "FXAthena" #property link "https://fxathena.online" #property version "1.00" #property strict extern double MaxDailyLossPercent = 2.0; // The 2% Unfeeling Limit double StartOfDayBalance = 0; int CurrentDay = -1; int OnInit() { Print("FXAthena Kill-Switch Engaged. Emotion Decoupled."); return(INIT_SUCCEEDED); } void OnTick() { if(Day() != CurrentDay) { StartOfDayBalance = AccountBalance(); CurrentDay = Day(); } double CurrentEquity = AccountEquity(); double DailyProfitLoss = CurrentEquity - StartOfDayBalance; double DailyLossPercent = (DailyProfitLoss / StartOfDayBalance) * 100.0; if(DailyLossPercent <= -MaxDailyLossPercent) { CloseAllTrades(); Print("CRITICAL: 2% Drawdown Reached. Terminal Locked. Walk Away."); SendNotification("FXATHENA ALERT: 2% Limit Reached. All positions closed. Do not revenge trade."); Sleep(3600000); } } void CloseAllTrades() { for(int i = OrdersTotal() - 1; i >= 0; i--) { if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) { if(OrderType() == OP_BUY) { OrderClose(OrderTicket(), OrderLots(), Bid, 3, clrRed); } else if(OrderType() == OP_SELL) { OrderClose(OrderTicket(), OrderLots(), Ask, 3, clrRed); } } } }

© 2026 FXAthena | Strictly Confidential Tool