CasperIT AI News Trading Guard
- Utilitários
-
Imad Saadeh
🔹 Professional gold & crypto trader (GMT+2)
🔹 Developer of robust MT5 Expert Advisors & dashboards
🔹 Focused on risk management, equity protection & automation
🔹 Global community leader, sharing transparent trading solutions - Versão: 4.140
- Ativações: 10
CasperIT AI News Trading Guard
CasperIT AI News Trading Guard is an MT5 economic-news protection Expert Advisor. It monitors the MetaTrader Economic Calendar and applies a strict account-wide trading lockdown around selected high- and medium-impact news events.
The EA is designed for traders who use manual strategies, Expert Advisors or multiple trading systems in the same terminal. It publishes a bridge value that connected EAs can read before opening new trades.
MAIN FEATURES
• Economic calendar monitoring: Uses the built-in MetaTrader calendar on live charts.
• Total-account news lockdown: Protects all symbols during active news windows.
• Position protection: Can close manual trades, third-party EA trades and positions opened before lockdown.
• Pending-order protection: Can delete existing and newly submitted pending orders.
• Automatic resume: Trading is allowed again after the configured post-news window ends.
• Multi-EA bridge: Publishes terminal Global Variables that connected EAs can check before opening trades.
• High- and medium-impact filters: Uses separate protection windows for each event type.
• Multicurrency monitoring: Watches major economic currencies from one chart.
• Fail-safe protection: Blocks trading if the live calendar becomes unavailable.
• Strategy Tester replay: Supports historical news replay through an optional exported CSV file.
• Compact dashboard: Displays status, next event, countdown, risk score and bridge state.
• Commercial input lockdown: Prevents critical protection rules from being weakened accidentally.
HOW IT WORKS
1. Attach the EA to one MT5 chart.
2. The EA reads watched events from the MetaTrader Economic Calendar.
3. Before a watched event, the bridge value changes from 1 to 0.
4. During lockdown, connected EAs can block entries and the guard enforces account protection.
5. After the post-news window ends, the bridge returns to 1 and trading resumes automatically.
IMPORTANT NOTES
• Attach only one guard instance per trading account unless you deliberately use a different bridge prefix.
• Manual trades and third-party EA trades cannot be intercepted before submission. The guard closes or deletes them immediately after they appear during lockdown.
• Closing trades during volatile news conditions may cause slippage.
• Test the EA on a demo account before using it on a live account.
• This is a risk-management utility. It does not open trades or guarantee profit.
INPUT PARAMETERS
• InpCommercialInputLockdown: Forces the recommended commercial protection profile.
• InpBridgePrefix: Prefix used for terminal Global Variables shared with connected EAs.
• InpUseHighImpactNews: Enables protection around high-impact events.
• InpUseMediumImpactNews: Enables protection around medium-impact events.
• InpHighMinutesBefore / InpHighMinutesAfter: Lockdown minutes before and after high-impact events.
• InpMediumMinutesBefore / InpMediumMinutesAfter: Lockdown minutes before and after medium-impact events.
• InpLookAheadHours: Hours scanned for upcoming events.
• InpRefreshSeconds: Calendar refresh interval.
• InpManualCurrenciesCSV: Comma-separated list of watched currencies.
• InpFailSafeBlockOnCalendarError: Blocks trading if the live calendar is unavailable.
• InpUseTesterStaticNews: Enables CSV-based historical replay in Strategy Tester.
• InpTesterStaticNewsFile: Historical tester CSV filename in the Common Files folder.
• InpMarketTesterAllowMissingCSV: Allows tester validation to run if the optional CSV is missing.
• InpEnableUniversalCompliance: Enables trade and pending-order enforcement.
• InpEnableTotalNewsLockdown: Applies protection across the complete account.
• InpCloseExistingPositionsInBlock: Closes positions that existed before lockdown.
• InpDeletePendingOrdersDuringNews: Deletes pending orders during lockdown.
• InpDeleteExistingPendingInBlock: Deletes pending orders that existed before lockdown.
• InpManualCloseDelaySeconds: Optional delay before closing newly detected trades. Commercial mode forces zero delay.
• InpCloseSlippagePoints: Maximum close deviation in points.
• InpShowDashboard: Shows or hides the compact panel.
• InpUseCompactHybridPanel: Enables the compact dashboard design.
• InpDefaultDockMode: Sets the default panel location: TL, TR, BL, BR or FREE.
• InpLowResourceVPSMode: Reduces dashboard redraw activity for VPS environments.
MULTI-EA BRIDGE
• CASPERIT_NEWS_TRADING_ALLOWED = 1: New entries are allowed.
• CASPERIT_NEWS_TRADING_ALLOWED = 0: Connected EAs should block new entries.
