Skip to content
ModernUI A DaneTrades developer library

FAQ

What is ModernUI?

ModernUI is a chart-hosted UI library for MetaTrader 5.

It helps MQL5 developers build cleaner EA panels, dashboards, settings windows, tables, forms, and trade-style interfaces.

It is a UI library, not a trading strategy.

Is ModernUI a trade copier or trade manager?

No.

ModernUI is a developer library for building interfaces.

Some examples look like trade panels because that is a common MQL5 UI use case, but the library itself does not copy trades, place orders, manage positions, or provide trading strategy logic.

Do the trade panel examples place real orders?

No.

Trade-style examples are UI-only unless your own EA adds broker logic.

They do not place, modify, or close real orders.

Where do I install it?

Install the include files here:

Reference excerpt
MQL5/Include/ModernUI/

The umbrella header should be reachable as:

Reference excerpt
#include <ModernUI\ModernUI.mqh>

Do I need to restart MetaEditor after copying files?

Yes, restart MetaEditor after copying the include folder so include paths refresh cleanly.

Can I use ModernUI in indicators?

ModernUI is designed for chart-hosted UI and can be used from MQL5 programs that can handle the required lifecycle and chart events.

The examples are Expert Advisors because EAs are the clearest way to demonstrate the full pattern.

Do I have to use fast wrappers?

No.

Fast wrappers are optional and additive.

Use wrappers when they save time:

  • Mui::AppWindow
  • Mui::Section
  • Mui::LabeledSpinEdit
  • Mui::ButtonRow
  • Mui::SimpleTable

Use raw controls when you need full control:

  • MuiWindow
  • MuiContainer
  • MuiTableView
  • MuiListView
  • MuiTreeView
  • custom sources
  • custom handlers

Are raw controls deprecated?

No.

Wrappers do not replace or deprecate raw controls. Most real projects can mix both.

Why is the field called control, not input?

input is reserved in MQL5.

ModernUI labelled wrapper structs use control.

Correct
risk.control.Value(2.0);

Why does my panel not respond to clicks?

Usually because OnChartEvent() is not forwarded.

Reference excerpt
void OnChartEvent(const int id,const long &lparam,const double &dparam,const string &sparam)
{
  g_ui.OnChartEvent(id,lparam,dparam,sparam);
}

Why does my panel not repaint?

Usually because OnTimer() is not forwarded or EventSetMillisecondTimer(...) is missing.

Reference excerpt
EventSetMillisecondTimer(16);

void OnTimer()
{
  g_ui.OnTimer();
}

Why do text boxes behave differently from canvas controls?

Text boxes and text areas may use native MT5 OBJ_EDIT hosts for real text editing.

This is needed for normal typing, selection, copy, and paste behaviour.

Always call g_ui.Shutdown() in OnDeinit() so native objects are cleaned up.

Why do some icons look different if Images/ModernUI is missing?

ModernUI uses optional atlas PNGs for sharper common icons. If MQL5/Images/ModernUI is missing, the library falls back to canvas-drawn icons.

The UI still works; the atlas just improves icon polish.

Does ModernUI support light and dark themes?

Yes.

The default theme is dark. Light theme is available through:

UI build fragment
MuiTheme light=MuiTheme::Light();
g_ui.SetTheme(light);

Does ModernUI guarantee performance?

No.

ModernUI is built for practical MT5 chart panels and includes performance optimisations, but it still runs inside MT5’s chart, CCanvas, event, and timer model.

Use the performance stress test and performance counters during development.

What should I include in a bug report?

Include:

  • ModernUI version
  • MT5 build number
  • Windows version if relevant
  • exact error or Experts log message
  • screenshot if visual
  • minimal code snippet
  • whether the issue happens in a supplied example

See Reporting a bug.

Will support write my EA for me?

No.

Support is for ModernUI library usage, installation, compile errors, examples, and reproducible library issues.

It does not include writing full EAs, debugging unrelated trading logic, or building custom strategies.

Related pages