Start Here
ModernUI is a chart-hosted UI library for MetaTrader 5. It helps MQL5 developers build cleaner Expert Advisor panels, dashboards, settings windows, forms, tables, and trade-style interfaces without building every control from chart objects manually.
This section gets you from a copied package to a running ModernUI panel on an MT5 chart.
Recommended path
Follow these pages in order:
- What is ModernUI?
- Who it is for
- What is included
- Download from MQL5 Market
- Install
- Quick Start
- First Panel
- Recommended EA Structure
- Package Layout
What you need before starting
You should already be comfortable with basic MQL5 Expert Advisor structure:
OnInitOnDeinitOnTimerOnChartEvent- compiling an
.mq5file in MetaEditor - attaching an Expert Advisor to a chart
ModernUI does not remove normal MT5 lifecycle rules. It gives you a UI layer that runs inside those rules.
The simplest mental model
A ModernUI Expert Advisor usually follows this shape:
Create one panel class
-> initialise MuiRoot in OnInitEvent
-> connect MuiEventSink with SetEventSink
-> build controls and assign Id values
-> forward timer events
-> forward chart events
-> handle UI actions in OnMuiEvent
-> shutdown cleanly in OnDeinitEvent
That lifecycle is explained in Quick Start and formalised in Recommended EA Structure.
What to read next
Start with Install if you already know what ModernUI is.
If you are evaluating whether the library fits your project, start with What is ModernUI?.