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
Experts/ModernUI/Examples/Demos/TradingDashboard_Showcase.mq5
What this demonstrates
MuiWindow+ column shell (notAppWindow— manualSetRoot)- Toolbar actions with
.Id(...)andMUI_EVENT_CLICK Mui::TabsWithSegmentDividersandMUI_EVENT_TAB_CHANGEDMui::Griddashboard tiles,MuiCreate::StatCard,Mui::CardEx- Charts:
HalfGaugeEx,DonutChart,LineChart,BarChart MuiCreate::Tablewith customMuiTableSource— selection, cell click, header clickMuiCreate::ListViewactivity logMui::AccordionwithMUI_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
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
- Controls reference
- Showcase trade panel — compact trade UI
- Table and list sources — table sources in depth
- Event Bus
- Recommended EA Structure