Camovia Tray™

Blog · Roundups

Error 4302 in MetaTrader 5: Why “Cannot Load Custom Indicator” Keeps Appearing and How to Finally Fix It

Camovia Tray Team · 2026-09-14

Most traders who run into Error 4302 in MetaTrader 5 make the same mistake: they assume the problem is with the indicator file itself. They reinstall it, move it between folders, restart the terminal repeatedly—and the error persists. The frustration is real, especially when a strategy depends on that indicator to function.

Here’s what many get wrong: Error 4302 is rarely about a corrupted or missing indicator file. According to the MQL5 documentation and confirmed by multiple forum discussions, this error code explicitly means ERR_MARKET_NOT_SELECTED—the symbol is not selected in MarketWatch . The terminal isn’t saying “I can’t find this indicator.” It’s saying “I can’t load the indicator because the symbol it’s trying to access isn’t available in the MarketWatch list.”

This distinction changes everything about how you troubleshoot.

What Actually Triggers Error 4302

When an Expert Advisor or script calls iCustom() to load a custom indicator, it often specifies a particular symbol—for example, iCustom("EURUSD", PERIOD_H4, "MyIndicator"). If EURUSD isn’t present in your MarketWatch window, the call fails with Error 4302 . The problem is even more common with multi-currency strategies where an EA attempts to access multiple symbols for a dashboard or cluster indicator, and some are simply not selected .

The same issue appears when SymbolInfoTick() is called for a symbol not active in MarketWatch—it returns Error 4302 as well .

One trader on the MQL5 forum described how this played out with a multi-timeframe EA: the strategy worked in backtesting but threw Error 4302 on both higher-timeframe indicators when deployed live. After switching those indicators to the “Main Chart” timeframe, the EA loaded without errors—but, of course, it no longer functioned as intended . That’s the trap: quick fixes that bypass the error often break the strategy.

The Solutions That Actually Work

1. Add the Symbol to MarketWatch

The simplest fix: locate the symbol referenced by the EA or indicator and add it to MarketWatch. Right-click in the MarketWatch window, select “Symbols,” find the instrument, and enable it. If you’re unsure which symbol is causing the issue, check the Experts tab in MT5—the error log usually includes the exact symbol and indicator name .

2. Modify the Code to Use Symbol() or NULL

For those comfortable with MQL5, the cleanest long-term solution is to avoid hardcoding symbols in iCustom() calls. Use Symbol() to reference the current chart symbol, or pass NULL to let the function use the chart’s symbol by default. This prevents the error from recurring when you switch between charts .

3. Auto-Add Required Symbols Programmatically

Advanced users can implement SymbolSelect() in the EA’s initialization to automatically add required symbols to MarketWatch. This approach, shared in the MQL5 forums, checks for each required symbol and activates it if missing—preventing Error 4302 from appearing in the first place .

4. Recompile All Indicators

In some cases, MT5 ignores otherwise valid indicators until they are recompiled. This can happen after platform updates or when moving files between environments. If you have the source .mq5 files, opening them in MetaEditor and recompiling may resolve the issue .

Why This Error Matters Beyond Troubleshooting

Error 4302 is a reminder of how MT5 handles data access differently from MT4. It’s not a flaw—it’s a design choice that enforces deliberate symbol selection before any data is pulled. Understanding this makes troubleshooting faster and helps avoid repeated trial-and-error.

But there’s another angle to consider. For traders running multiple strategies across different symbols, manually managing MarketWatch selections, EA files, and indicator paths becomes a constant overhead. Every time you switch focus or add a new instrument, you risk running into this error again.

That’s where keeping MT5 accessible and manageable matters—not by altering how MT5 loads indicators, but by streamlining how you interact with the terminal. When you need to check positions or prices without opening the full platform, having a tool that reads the data directly from your local MT5 instance can save time. Since Camovia Tray reads quotes and positions 100% from your local terminal without sending data anywhere, it fits naturally into a workflow where staying on top of market conditions matters—especially when you’re actively testing strategies and want to monitor them without interrupting the terminal or constantly opening charts.

The bottom line: Error 4302 is a market data access problem, not an indicator corruption problem. Solve it at the source by ensuring MT5 has the right symbols active in MarketWatch, and you’ll spend less time wrestling with terminal errors and more time doing actual analysis.

MT4/MT5 Tray Assistant

Silent tracking, one-click close - check quotes and manage positions right from the tray.

Download Camovia Tray

Frequently Asked Questions

How do I restore the MT5/MT4 window after hiding it?

Choose "Show MT5/MT4" from the system tray menu and the window returns to its previous position. You can also hover the tray to check quotes and manage positions without opening the terminal.

Can it replace MT5/MT4 for trading?

No - Camovia Tray is a local shortcut tool. You can close positions right from the popup; all trading operations (opening, closing, etc.) are submitted by your local MT5/MT4 terminal to your own broker account. The app does not hold your funds or provide investment advice.

Can the tray icon be disguised?

Yes. The tray icon can disguise itself as a cloud drive or a common system tool, so market watching stays low-key.

What is the tray lock feature?

Lock the tray function instantly at key moments to protect your privacy and prevent private information from leaking.

Popular Symbols Trading Hours

Open/close times, weekend hours & live market status: