MQL5-SyntheticTestHarness/README.md

20 lignes
951 o
Markdown
Brut Lien permanent Vue normale Historique

2026-07-18 01:13:47 +00:00
# MQL5-SyntheticTestHarness
2026-07-21 21:52:12 -03:00
A lightweight synthetic testing engine for MQL5 using dependency injection, mocking, and event-driven architecture. Proof of concept. Part 1 of the Institutional Architecture series.
2026-07-18 23:14:16 -03:00
## Installation
We provide a PowerShell script to easily link this project to your MetaTrader 5 Data Folder so you can edit files here and have them instantly reflected in MT5.
Open PowerShell (as Administrator if Developer Mode is not enabled) and run:
```powershell
.\Install-Symlinks.ps1 -Mt5DataFolder "C:\Path\To\Your\MT5\Data\Folder"
```
*(You can find your Data Folder by opening MT5 and clicking `File -> Open Data Folder`)*
## Running the Tests (Example script)
After linking, open **MetaEditor**, navigate to `Scripts -> SyntheticTestHarness` and compile `TestSpreadSpike.mq5`.
Then, in **MetaTrader 5**, drag the `TestSpreadSpike` script onto any chart to see the test runner execute the synthetic scenarios in real-time.