> For the complete documentation index, see [llms.txt](https://docs.openalgo.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openalgo.in/trading-platform/metatrader-5/download-and-install-library.md).

# Download & Install Library

**Download the MQL5 Libray and Unzip it**

{% file src="/files/8gVf9qpUjLcLKp3F6xvj" %}

**Open MQL5 -> File -> Open DataFolder as shown below**

<figure><img src="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2F13F4dTUvFFdRURXjPU52%2Fimage.png?alt=media&amp;token=58a9a5e5-0822-404e-a22e-1f5ee29318f0" alt=""><figcaption></figcaption></figure>

**Navigate to \MQL5\Include folder and paste the Unzipped OpenAlgo Folder here as shown below**

<figure><img src="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2FjiBNoWZ5OG5loXNLChYy%2Fimage.png?alt=media&amp;token=1a597866-ee55-4e54-9294-2a160ec68278" alt=""><figcaption></figcaption></figure>

Now the Installation Process is completed if you open MetaEditor you should see the Folders with Library Files as shown below

<figure><img src="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2FdyMciTowRcEn5Bq4P5Lm%2Fimage.png?alt=media&amp;token=daff985e-3b4f-49ea-8641-0fc4120c348b" alt=""><figcaption></figcaption></figure>

The `OpenAlgo` folder contains four files:

* `OpenAlgoApi.mqh` - the six order functions. This is the only file you include.
* `CommonDefs.mqh` - the `Exchanges`, `ProductTypes` and `PriceTypes` enums.
* `UrlParser.mqh` - splits your OpenAlgo URL into host, path and port.
* `WinINet.mqh` - the HTTP transport, built on `wininet.dll`.

Put the folder at `MQL5\Include\OpenAlgo`, so the full path to the main file is `MQL5\Include\OpenAlgo\OpenAlgoApi.mqh`. That matches the `#include <OpenAlgo/OpenAlgoApi.mqh>` line used on the next page. If MetaEditor was already open, close and reopen it so it picks up the new include folder.

Because `WinINet.mqh` imports `wininet.dll` and `kernel32.dll`, every EA built on this library needs **Allow DLL imports** enabled. Set it per EA in the Common tab of the EA properties dialog, or globally under Tools, Options, Expert Advisors.
