{"id":114,"date":"2026-09-01T14:20:16","date_gmt":"2026-09-01T14:20:16","guid":{"rendered":"https:\/\/fxathena.online\/?page_id=114"},"modified":"2026-09-01T14:35:51","modified_gmt":"2026-09-01T14:35:51","slug":"elementor-114","status":"publish","type":"page","link":"https:\/\/fxathena.online\/?page_id=114","title":{"rendered":"Bonus 3 _ The EA Lockout Installation Hub."},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"114\" class=\"elementor elementor-114\">\n\t\t\t\t<div class=\"elementor-element elementor-element-639b9f6 e-flex e-con-boxed e-con e-parent\" data-id=\"639b9f6\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-343e7c6 e-flex e-con-boxed e-con e-parent\" data-id=\"343e7c6\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8459746 elementor-widget elementor-widget-html\" data-id=\"8459746\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n    <meta name=\"theme-color\" content=\"#0f172a\">\r\n    <title>Bonus 3: EA Lockout Installation Guide | FXAthena<\/title>\r\n    \r\n    <!-- Tailwind CSS for rapid, responsive, premium styling -->\r\n    <script src=\"https:\/\/cdn.tailwindcss.com\"><\/script>\r\n    \r\n    <!-- Google Fonts: Inter for UI clarity, Playfair Display for authoritative headers -->\r\n    <link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700&display=swap\" rel=\"stylesheet\">\r\n    \r\n    <script>\r\n        tailwind.config = {\r\n            theme: {\r\n                extend: {\r\n                    colors: {\r\n                        'fx-light-blue': '#5DADE2',\r\n                        'fx-gold': '#D4AF37',\r\n                        'fx-gold-dark': '#B5952F',\r\n                        'fx-dark': '#111827',\r\n                    },\r\n                    fontFamily: {\r\n                        sans: ['Inter', 'sans-serif'],\r\n                        serif: ['Playfair Display', 'serif'],\r\n                    },\r\n                    boxShadow: {\r\n                        'gold-glow': '0 0 20px rgba(212, 175, 55, 0.3)',\r\n                        'blue-glow': '0 0 25px rgba(93, 173, 226, 0.2)',\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    <\/script>\r\n    \r\n    <style>\r\n        body {\r\n            background-color: #0f172a; \r\n            background-image: radial-gradient(circle at top right, rgba(52, 152, 219, 0.1), transparent 40%),\r\n                              radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.05), transparent 40%);\r\n            -webkit-font-smoothing: antialiased;\r\n            min-height: 100vh;\r\n            display: flex;\r\n            flex-direction: column;\r\n        }\r\n\r\n        ::-webkit-scrollbar { width: 6px; }\r\n        ::-webkit-scrollbar-track { background: transparent; }\r\n        ::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 3px; }\r\n\r\n        .fade-in {\r\n            animation: fadeIn 0.4s ease-in-out forwards;\r\n        }\r\n        \r\n        @keyframes fadeIn {\r\n            from { opacity: 0; transform: translateY(5px); }\r\n            to { opacity: 1; transform: translateY(0); }\r\n        }\r\n\r\n        .code-box { \r\n            font-family: 'Courier New', Courier, monospace; \r\n            background: #050505; \r\n            border-left: 4px solid #5DADE2; \r\n        }\r\n    <\/style>\r\n<\/head>\r\n<body class=\"text-gray-200 pt-10 pb-12 px-4 sm:px-6 lg:px-8 flex items-center justify-center\">\r\n\r\n    <main class=\"w-full max-w-3xl mx-auto\">\r\n        \r\n        <!-- Header Section -->\r\n        <div class=\"text-center mb-10 fade-in\">\r\n            <span class=\"inline-block text-xs font-bold tracking-widest text-fx-gold uppercase border-b border-fx-gold pb-1 mb-4\">\r\n                Bonus 3 Deliverable\r\n            <\/span>\r\n            <h1 class=\"font-serif text-3xl sm:text-4xl text-white font-bold tracking-tight mb-2\">\r\n                The EA Lockout <span class=\"text-fx-light-blue\">Installation Hub<\/span>\r\n            <\/h1>\r\n            <p class=\"text-gray-400 text-sm sm:text-base max-w-lg mx-auto\">\r\n                Follow the protocol below to hard-code the unfeeling 2% kill-switch directly into your MetaTrader 4 terminal.\r\n            <\/p>\r\n        <\/div>\r\n\r\n        <div class=\"space-y-8 fade-in\" style=\"animation-delay: 0.1s;\">\r\n            \r\n            <!-- Quick Download Section -->\r\n            <div class=\"bg-gray-900 border border-fx-gold rounded-2xl shadow-gold-glow overflow-hidden relative p-6 sm:p-8 flex flex-col md:flex-row items-center justify-between gap-6\">\r\n                <div>\r\n                    <h3 class=\"text-white font-bold text-lg flex items-center gap-2 mb-2\">\r\n                        <svg class=\"w-5 h-5 text-fx-gold\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4\"><\/path><\/svg>\r\n                        Compiled Executable File (.ex4)\r\n                    <\/h3>\r\n                    <p class=\"text-sm text-gray-400 max-w-md\">The pre-baked, plug-and-play institutional software. Download this file to your PC and drag it into your MT4 Experts folder.<\/p>\r\n                <\/div>\r\n                \r\n                <a href=\"https:\/\/drive.google.com\/file\/d\/1rSnYfjxO2-zr5rtRJ9MbcGiEb_2F-I9g\/view?usp=sharing\" target=\"_blank\" class=\"w-full md:w-auto flex-shrink-0 text-center bg-fx-gold hover:bg-fx-gold-dark text-gray-900 font-extrabold py-3 px-6 rounded-lg transition-colors shadow-md\">\r\n                    Download .EX4 File\r\n                <\/a>\r\n            <\/div>\r\n\r\n            <!-- PC Installation Steps -->\r\n            <div class=\"bg-gray-900 border border-gray-800 rounded-2xl p-6 sm:p-8 shadow-blue-glow\">\r\n                <h3 class=\"text-fx-light-blue font-bold uppercase tracking-wide mb-6 border-b border-gray-800 pb-3\">\r\n                    PC Installation Instructions\r\n                <\/h3>\r\n                \r\n                <ul class=\"space-y-5 text-gray-300 text-sm sm:text-base\">\r\n                    <li class=\"flex items-start\">\r\n                        <span class=\"flex-shrink-0 w-6 h-6 rounded-full bg-gray-800 border border-fx-light-blue text-fx-light-blue flex items-center justify-center text-xs font-bold mr-3 mt-0.5\">1<\/span>\r\n                        <p><strong class=\"text-white\">Download the File:<\/strong> Click the gold button above to download <code class=\"text-fx-gold bg-gray-950 px-1 rounded\">FXAthena_KillSwitch.ex4<\/code> to your computer.<\/p>\r\n                    <\/li>\r\n                    <li class=\"flex items-start\">\r\n                        <span class=\"flex-shrink-0 w-6 h-6 rounded-full bg-gray-800 border border-fx-light-blue text-fx-light-blue flex items-center justify-center text-xs font-bold mr-3 mt-0.5\">2<\/span>\r\n                        <p><strong class=\"text-white\">Open Data Folder:<\/strong> Open MetaTrader 4 on your PC. In the top left corner, click <strong class=\"text-white\">File<\/strong> &rarr; <strong class=\"text-white\">Open Data Folder<\/strong>.<\/p>\r\n                    <\/li>\r\n                    <li class=\"flex items-start\">\r\n                        <span class=\"flex-shrink-0 w-6 h-6 rounded-full bg-gray-800 border border-fx-light-blue text-fx-light-blue flex items-center justify-center text-xs font-bold mr-3 mt-0.5\">3<\/span>\r\n                        <p><strong class=\"text-white\">Place the File:<\/strong> Open the <strong class=\"text-white\">MQL4<\/strong> folder, then open the <strong class=\"text-white\">Experts<\/strong> folder. Drag and drop the downloaded <code class=\"text-fx-gold bg-gray-950 px-1 rounded\">.ex4<\/code> file into this folder.<\/p>\r\n                    <\/li>\r\n                    <li class=\"flex items-start\">\r\n                        <span class=\"flex-shrink-0 w-6 h-6 rounded-full bg-gray-800 border border-fx-light-blue text-fx-light-blue flex items-center justify-center text-xs font-bold mr-3 mt-0.5\">4<\/span>\r\n                        <p><strong class=\"text-white\">Refresh Terminal:<\/strong> In MT4, look at the \"Navigator\" panel on the left. Right-click on \"Expert Advisors\" and select <strong class=\"text-white\">Refresh<\/strong>. The FXAthena KillSwitch will appear in the list.<\/p>\r\n                    <\/li>\r\n                    <li class=\"flex items-start\">\r\n                        <span class=\"flex-shrink-0 w-6 h-6 rounded-full bg-gray-800 border border-fx-light-blue text-fx-light-blue flex items-center justify-center text-xs font-bold mr-3 mt-0.5\">5<\/span>\r\n                        <p><strong class=\"text-white\">Activate:<\/strong> Drag the KillSwitch onto any open chart. Ensure the \"AutoTrading\" button at the top of MT4 is green. You are now protected.<\/p>\r\n                    <\/li>\r\n                <\/ul>\r\n            <\/div>\r\n\r\n            <!-- Transparency \/ Source Code Section -->\r\n            <div class=\"bg-gray-950 border border-gray-800 rounded-2xl p-6 sm:p-8\">\r\n                <div class=\"flex items-center justify-between mb-4 border-b border-gray-800 pb-3\">\r\n                    <h3 class=\"text-gray-500 font-bold uppercase tracking-wide text-sm\">\r\n                        Transparency: The Source Code\r\n                    <\/h3>\r\n                    <button onclick=\"copyCode()\" class=\"bg-gray-800 text-gray-300 text-xs px-3 py-1.5 rounded border border-gray-700 hover:bg-gray-700 transition\">\r\n                        Copy MQL4 Code\r\n                    <\/button>\r\n                <\/div>\r\n                <p class=\"text-xs text-gray-500 mb-4\">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.<\/p>\r\n                \r\n                <div class=\"code-box p-4 rounded-lg text-xs sm:text-sm text-green-400 overflow-x-auto h-64 overflow-y-scroll\" id=\"eaCode\">\r\n\/\/+------------------------------------------------------------------+\r\n\/\/|                                  FXAthena_72Hr_KillSwitch.mq4    |\r\n\/\/|                                  Copyright 2026, FXAthena        |\r\n\/\/+------------------------------------------------------------------+\r\n#property copyright \"FXAthena\"\r\n#property link      \"https:\/\/fxathena.online\"\r\n#property version   \"1.00\"\r\n#property strict\r\n\r\nextern double MaxDailyLossPercent = 2.0; \/\/ The 2% Unfeeling Limit\r\n\r\ndouble StartOfDayBalance = 0;\r\nint CurrentDay = -1;\r\n\r\nint OnInit() {\r\n    Print(\"FXAthena Kill-Switch Engaged. Emotion Decoupled.\");\r\n    return(INIT_SUCCEEDED);\r\n}\r\n\r\nvoid OnTick() {\r\n    if(Day() != CurrentDay) {\r\n        StartOfDayBalance = AccountBalance();\r\n        CurrentDay = Day();\r\n    }\r\n\r\n    double CurrentEquity = AccountEquity();\r\n    double DailyProfitLoss = CurrentEquity - StartOfDayBalance;\r\n    double DailyLossPercent = (DailyProfitLoss \/ StartOfDayBalance) * 100.0;\r\n\r\n    if(DailyLossPercent <= -MaxDailyLossPercent) {\r\n        CloseAllTrades();\r\n        Print(\"CRITICAL: 2% Drawdown Reached. Terminal Locked. Walk Away.\");\r\n        SendNotification(\"FXATHENA ALERT: 2% Limit Reached. All positions closed. Do not revenge trade.\");\r\n        Sleep(3600000); \r\n    }\r\n}\r\n\r\nvoid CloseAllTrades() {\r\n    for(int i = OrdersTotal() - 1; i >= 0; i--) {\r\n        if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {\r\n            if(OrderType() == OP_BUY) {\r\n                OrderClose(OrderTicket(), OrderLots(), Bid, 3, clrRed);\r\n            }\r\n            else if(OrderType() == OP_SELL) {\r\n                OrderClose(OrderTicket(), OrderLots(), Ask, 3, clrRed);\r\n            }\r\n        }\r\n    }\r\n}\r\n                <\/div>\r\n            <\/div>\r\n\r\n        <\/div>\r\n\r\n        <p class=\"text-center text-xs text-gray-600 mt-10 font-medium uppercase tracking-widest\">\r\n            &copy; 2026 FXAthena | Strictly Confidential Tool\r\n        <\/p>\r\n    <\/main>\r\n\r\n    <script>\r\n        function copyCode() {\r\n            navigator.clipboard.writeText(document.getElementById('eaCode').innerText);\r\n            alert(\"Institutional Source Code Copied to Clipboard.\");\r\n        }\r\n    <\/script>\r\n<\/body>\r\n<\/html>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>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. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"class_list":["post-114","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/fxathena.online\/index.php?rest_route=\/wp\/v2\/pages\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fxathena.online\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/fxathena.online\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/fxathena.online\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fxathena.online\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":5,"href":"https:\/\/fxathena.online\/index.php?rest_route=\/wp\/v2\/pages\/114\/revisions"}],"predecessor-version":[{"id":122,"href":"https:\/\/fxathena.online\/index.php?rest_route=\/wp\/v2\/pages\/114\/revisions\/122"}],"wp:attachment":[{"href":"https:\/\/fxathena.online\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}