{"id":20159436,"url":"https://github.com/virajmalia/mql-dashboard","last_synced_at":"2026-02-27T22:02:05.407Z","repository":{"id":262536971,"uuid":"887588440","full_name":"virajmalia/mql-dashboard","owner":"virajmalia","description":"A Metatrader 5 server is hosted on a PC, which broadcasts MQTT data. This data is received by an ESP32 microcontroller board via WiFi and sent to an E-Paper display driver which displays the received data into a readable format, like a trading profile dashboard.","archived":false,"fork":false,"pushed_at":"2025-01-31T19:20:04.000Z","size":3520,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-14T11:51:50.437Z","etag":null,"topics":["arduino","e-ink","epaper-displays","esp32","gxepd2","metatrader5","mql5","waveshare-eink","waveshare-epaper"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/virajmalia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-12T23:51:49.000Z","updated_at":"2025-05-20T19:30:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"c901b17e-8704-4a52-a8f4-368eba75eb97","html_url":"https://github.com/virajmalia/mql-dashboard","commit_stats":null,"previous_names":["virajmalia/mql-dashboard"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/virajmalia/mql-dashboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virajmalia%2Fmql-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virajmalia%2Fmql-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virajmalia%2Fmql-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virajmalia%2Fmql-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/virajmalia","download_url":"https://codeload.github.com/virajmalia/mql-dashboard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virajmalia%2Fmql-dashboard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29917207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","e-ink","epaper-displays","esp32","gxepd2","metatrader5","mql5","waveshare-eink","waveshare-epaper"],"created_at":"2024-11-14T00:08:04.837Z","updated_at":"2026-02-27T22:02:05.373Z","avatar_url":"https://github.com/virajmalia.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MQL Dashboard using EPaper Display and ESP32\n\n## Project Summary\n\nA Metatrader 5 server is hosted on a PC, which broadcasts MQTT data. This data is received by an ESP32 microcontroller board via WiFi and sent to an E-Paper display driver which displays the received data into a readable format, like a trading profile dashboard.\n\n## Architecture\n\n![System architecture](res/architecture.png)\n\n## Hardware\n\n### Requirements\n- ESP32-WROOM32 Development Board\n- Waveshare 4.2inch EPaper Display Module (Rev2.1)\n- 8 Jumper cables\n- 3D Printed Display Case\n\n### Schematics\n![Electronic Schematics](res/schematic.png)\n\n## Software\n\n### Server Setup\nThe server must be able to run the Metatrader 5 terminal. Currently, Linux, Windows and MacOS are supported: https://www.metatrader5.com/en/download\n\nMake sure `python` and `pip` are installed and available on the server's command-line.\n\n```sh\npip install paho-mqtt Metatrader5\npython mt5server.py\n```\nYou may choose to run this script in the background or as a service.\n\n### Client Setup\n\n1. Open `mt5client.ino` in the Arduino IDE.\n2. Update the WiFi SSID, password and the MQTT server IP address in the above file.\n3. Connect and select your ESP32 board in the Arduino IDE.\n4. `Upload` the `mt5client.ino` sketch to your board.\n5. The ESP32 board should now be connected to your configured WiFi from step 2 and soon update the display.\n\n## Showcase\n\n\u003cimg src=\"res/assembly.jpg\" alt=\"drawing\" width=\"40%\"/\u003e\n\u003cimg src=\"res/power.jpg\" alt=\"drawing\" width=\"40%\"/\u003e\n\u003cimg src=\"res/connection.jpg\" alt=\"drawing\" width=\"40%\"/\u003e\n\u003cimg src=\"res/display.jpg\" alt=\"drawing\" width=\"40%\"/\u003e\n\n\n## Future Improvements\n1. Better case lid that remains flush.\n2. Better access to the board's reset button.\n3. Use of battery-operated power instead of external USB.\n4. Display open trade positions as a dynamic list.\n\n## Technical References\n\n### Microcontroller Board\n\n`ESP32-WROOM32 DevKit` is an integrated development board with easy pinouts for interfacing with common components. This project utilizes the SPI interface on `ESP32-WROOM32 development kit` to drive the SPI-based E-Ink display module. The development board also connects to the WiFi to receive the MQTT broadcast messages from the MQTT server.\n\nhttps://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32/esp32-devkitc/user_guide.html#esp32-devkitc-v4\n\n### EPaper Display\n\n`Waveshare 400x300, 4.2inch E-Ink display module, three-color` was used for this project. An E-Paper display was chosen because of its low-power consumption and a portable display solution.\n\nhttps://www.waveshare.com/product/displays/e-paper/epaper-2/4.2inch-e-paper-module-b.htm\n\n#### Specifications\n\n- Operating voltage: 3.3V~5V\n- Interface: 3-wire SPI, 4-wire SPI\n- Outline dimension: 103.0mm × 78.5mm\n- Display size: 84.8mm × 63.6mm\n- Dot pitch: 0.212 × 0.212\n- Resolution: 400 × 300\n- Display color: red, black, white\n- Grey level: 2\n- Full refresh time: 15s\n- Refresh power: 26.4mW(typ.)\n- Standby power: \u003c0.017mW\n- Viewing angle: \u003e170°\n\n### Metatrader 5 Python Package\nPython integration to use Metatrader 5 functionality in python programs.\n\nhttps://pypi.org/project/MetaTrader5/ \u003cbr\u003e\nhttps://www.mql5.com/en/docs/python_metatrader5\n\n### MQTT\nMQTT is an OASIS standard messaging protocol for the Internet of Things (IoT). It is designed as an extremely lightweight publish/subscribe messaging transport that is ideal for connecting remote devices with a small code footprint and minimal network bandwidth.\n\nhttps://mqtt.org/\n\n### Arduino Display Library for SPI E-Paper Displays\nA C library that enables and simplifies working with E-Paper displays using Adafruit_GFX, an Arduino graphics library as the base. It is designed specifically for displays that use SPI interface.\n\nhttps://github.com/ZinggJM/GxEPD2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirajmalia%2Fmql-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirajmalia%2Fmql-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirajmalia%2Fmql-dashboard/lists"}