Skip to content
ModernUI A DaneTrades developer library

Download from MQL5 Market

ModernUI is distributed as a paid Expert Advisor on MQL5 Market called ModernUI Launcher. The launcher EA is a full ModernUI component gallery and includes a Download Library button that fetches the current ModernUI.zip package directly from the DaneTrades download endpoint and saves it inside MetaTrader 5.

The launcher itself does not install ModernUI for you. It downloads the package and tells you where it saved it. Installation into MQL5/Include/ModernUI is always a manual step you perform once.

ModernUI is a UI library only. The launcher EA never calls trading APIs.

What you need

You need:

  • A MetaTrader 5 terminal you can attach Expert Advisors to.
  • The compiled ModernUI Launcher EA from MQL5 Market (ModernUI_Launcher.ex5).
  • Permission to allow WebRequest calls to https://danetrades.com.

Step 1 — Buy and download the launcher EA

Get ModernUI Launcher from MQL5 Market. MQL5 places the compiled EA inside the MetaTrader 5 data folder under:

Folder path
MQL5/Experts/Market/

Step 2 — Attach the launcher to a chart

Open any chart in MetaTrader 5, then drag ModernUI Launcher onto it.

The launcher window shows the full ModernUI component gallery — tabs for Layout, Inputs, Data views, Navigation, Display, Charts, Overlays, and Events — along with a slim Library package status row near the top.

Step 3 — Allow WebRequest to danetrades.com

ModernUI Launcher uses MetaTrader 5's built-in WebRequest to fetch the package. MetaTrader 5 blocks this by default until you allow the URL.

In MetaTrader 5:

Menu path
Tools → Options → Expert Advisors

Tick Allow WebRequest for listed URL and add this entry:

Folder path
https://danetrades.com

Click OK. If you skip this step, Download Library will report that MT5 has blocked the request, both in the launcher window and in the Experts log.

Step 4 — Click Download Library

In the launcher window, the Download Library button sits beside Theme settings in the top-right action row. Click it.

The Library package row updates as the download runs:

  • Latest version shows the version returned by the manifest endpoint.
  • Status moves through Checking → Downloading → Saved.
  • A success toast appears, and the saved path is shown beside the status text.

If anything goes wrong, the launcher shows an error toast and writes a matching line to the Experts log.

Step 5 — Find ModernUI.zip in your Files folder

By default, the launcher saves the package under your terminal's Files folder:

File path
MQL5/Files/ModernUI/ModernUI.zip

To reach it, in MetaTrader 5 use:

Menu path
File → Open Data Folder

Then open MQL5/Files/ModernUI/.

If you ran the launcher with the input InpUseCommonFiles = true, the file is in the shared MetaTrader common files area instead, under Files/ModernUI/ModernUI.zip.

Step 6 — Install the library manually

Extract ModernUI.zip somewhere temporary. From the extracted contents, copy:

Folder path
Include/ModernUI/

Into your MT5 data folder:

Folder path
MQL5/Include/ModernUI/

After copying, this file must exist:

File path
MQL5/Include/ModernUI/ModernUI.mqh

The full set of step-by-step copy instructions, restart steps, and verification lines is in Install ModernUI.

Step 7 — Compile an example

Open one of the bundled examples in MetaEditor and compile it. A good starting point is Experts/ModernUI/Examples/BasicPanel.mq5 if you copied the examples folder, or follow Quick Start for a minimal Expert Advisor.

Step 8 — Use the public MQL5 support thread

If you hit an issue installing or compiling ModernUI:

Use the public thread for normal support. ModernUI does not use private messages for routine questions.

Launcher EA inputs

The launcher exposes three inputs in the standard MetaTrader 5 EA inputs dialog:

Input Default Purpose
InpDownloadBaseUrl https://danetrades.com Base URL for the manifest and download endpoints. Leave as default unless DaneTrades publishes a new host.
InpDownloaderToken (baked at build time) Shared token sent in the X-ModernUI-Downloader header. Do not change it.
InpUseCommonFiles false When true, the package is saved under the MetaTrader common files area instead of MQL5/Files. Useful if you run multiple terminals from the same Windows account.

How the download is delivered

The launcher always talks to the DaneTrades API at https://danetrades.com/api/modernui/download. The DaneTrades backend privately fetches ModernUI.zip from Cloudflare R2 and streams it back to your launcher. The R2 storage bucket is not public, has no r2.dev URL, no custom domain, and no CORS — your launcher never sees a Cloudflare URL. The token header you send is checked on every request.

What the launcher does not do

The launcher is a paid Market gate plus a polished UI demo. It is deliberately small in scope:

  • It does not install ModernUI into MQL5/Include. You copy Include/ModernUI manually.
  • It does not call OrderSend, CTrade, trade.Buy, trade.Sell, or any broker order API.
  • It does not load DLLs.
  • It does not call ShellExecute.
  • It does not collect, log, or transmit account information.
  • It does not perform automatic updates. Re-run Download Library when a new version is released.