Skip to content
ModernUI A DaneTrades developer library

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:

  1. What is ModernUI?
  2. Who it is for
  3. What is included
  4. Download from MQL5 Market
  5. Install
  6. Quick Start
  7. First Panel
  8. Recommended EA Structure
  9. Package Layout

What you need before starting

You should already be comfortable with basic MQL5 Expert Advisor structure:

  • OnInit
  • OnDeinit
  • OnTimer
  • OnChartEvent
  • compiling an .mq5 file 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:

Pseudo-code
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?.