Spécifications
Overview
Create a MetaTrader 5 (MT5) indicator that:
-
Pulls live sentiment data from multiple broker APIs.
-
Calculates Net Sentiment (Long% – Short%) and plots each broker as a moving average line on the chart.
-
Displays a weighted average line when ≥2 feeds are active.
-
Saves all data to CSV files per broker for efficient historical loading and performance.
Supported Brokers
| Broker | Abbr. | Color |
|---|---|---|
| OandaFX | OAN | Green |
| Dukascopy | DUK | Red |
| Myfxbook | MYB | Orange |
| IG Sentiment | IGS | Purple |
| FXCM | FXC | Violet |
| EightCap | 8CA | Pink |
| Exness | EXN | Dark Red |
| IC Markets | ICM | Dark Green |
| Avg. Weighted Line | AWL | Deep Sky Blue (3× thicker) |
Key Features
-
API Integration: Pulls live data, calculates sentiment, handles missing feeds gracefully.
-
Plotting: Customizable MA type/period per broker. Weighted line if ≥2 feeds enabled.
-
Display Modes: Overlay on chart (default) or toggle to separate dashboard view.
-
CSV Logging: Saves live sentiment data to .csv files (one per broker). Loads historical data from CSV to reduce lag.
-
Settings Panel: Configure API keys, MA options, colors, toggle features, and logging intervals.
-
Performance: Non-blocking API calls, optimized data handling for smooth real-time updates.
UI Panel
-
Transparent panel (top-left corner) with toggle buttons for each broker.
-
Buttons display abbreviations (e.g., OAN, DUK, IGS).
-
ON = broker color, OFF = light grey.
Deliverables
-
Clean, commented .mq5 source code
-
Setup guide for API keys and CSV structure
-
Full user documentation (settings, UI, CSV, troubleshooting)
Skills Required
-
MQL5 / MT5 development
-
REST API integration
-
Chart plotting & buffer management
-
File I/O for .csv
-
UI development (transparent panels)
-
Clean, modular coding