Skip to content
ModernUI A DaneTrades developer library

Trading dashboard showcase

TradingDashboard_Showcase.mq5 is the large dashboard-style demo: tabs, KPI strip, charts, positions table, activity list, accordion, and a settings drawer.

It is UI-only (dummy data, no broker APIs).

File path

Reference excerpt
Experts/ModernUI/Examples/Demos/TradingDashboard_Showcase.mq5

What this demonstrates

  • MuiWindow + column shell (not AppWindow — manual SetRoot)
  • Toolbar actions with .Id(...) and MUI_EVENT_CLICK
  • Mui::TabsWithSegmentDividers and MUI_EVENT_TAB_CHANGED
  • Mui::Grid dashboard tiles, MuiCreate::StatCard, Mui::CardEx
  • Charts: HalfGaugeEx, DonutChart, LineChart, BarChart
  • MuiCreate::Table with custom MuiTableSource — selection, cell click, header click
  • MuiCreate::ListView activity log
  • Mui::Accordion with MUI_EVENT_EXPANDED_CHANGED
  • Settings Mui::Drawer, checkboxes, toggles, sliders, combo, spin edit
  • Risk notice: MuiDialog + MUI_EVENT_DIALOG_RESULT / MUI_EVENT_CONFIRM

Event-bus structure

Reference excerpt
class CDashboardShowcase : public MuiEventSink
  {
   virtual void OnMuiEvent(MuiRoot &root,const MuiEventData &event);
  };

Central routing handles clicks, value/check changes, tab changes, table/list intents, drawer state, and confirm/dialog results — see RouteDashboardEvent(...) in the source.

Controls and API reference

Used in demo API reference App events (with .Id)
MuiCreate::Button (toolbar, table actions) Buttons MUI_EVENT_CLICK
Mui::TabsWithSegmentDividers Tabs MUI_EVENT_TAB_CHANGED
MuiCreate::StatCard Stat card none
Mui::CardEx, charts Display 뿯½ Charts none
MuiCreate::Table Table view SELECTION_CHANGED, TABLE_CELL_CLICK, TABLE_HEADER_CLICK, ITEM_CLICK
MuiCreate::ListView List view MUI_EVENT_SELECTION_CHANGED
Mui::Accordion Accordion MUI_EVENT_EXPANDED_CHANGED
Mui::Drawer Drawer MUI_EVENT_DRAWER_STATE
MuiCreate::Checkbox, Toggle, Slider, ComboBox, SpinEdit Inputs CHECK_CHANGED, VALUE_CHANGED, SELECTION_CHANGED
MuiDialog / confirm Overlays DIALOG_RESULT, CONFIRM

Payload fields: Event Bus.

Related pages