S# MT connectors are universal. They can be used in stand-alone own applications, written on C#, and with any S#.API based applications as well (Hydra, Designer, Terminal). System requirements The connector supports the operating systems starts from Windows 8. .NET Framework 4.8 Licenses MT-connectors use licenses and attached to a machine. It is required to generate a license through the LicenseTool utility ( http://stocksharp.com/products/download/ ). If a license was previously generated for a specific machine, you need to regenerate it and overwrite an old file. To verify the success of obtaining a license, you can view a license file in any text editor. The Features field should contain the MT4 or MT5 keywords (or both of them). Setup 1) Starting with version 5.0, downloading of all components occurs through the S#.Installer app. More information here. The connectors are compatible with S#.API, since version 4.4.14. All archives enclosed in this message have a version number indicating the version number of S#.API. The API is downloaded from the link https://stocksharp.com/products/download/ (if the required version of the API is not available, you should look at the list of night assemblies). Before unpacking the archives, do not forget to unblock them if necessary (right button on the file, properties, general and below, if exists, the Unlock button). 2) Download required version of the connectors: MT_4.4.17.zip, MT_4.4.16.zip, MT_4.4.15.zip, MT_4.4.14.zip 3) All MT files should be installed to the folder C:\\Users\\\\AppData\\Roaming\\MetaQuotes\\Terminal\\\\MQL4\\Experts\\ (in case of MT5 the path will contain MQL5). The structure eventually should look like this (root folder contains the MQL script and MT connector, StockSharp sub-folder contains necessary S#.API files): dc890f6e95ecf853bfd33f7d6f4731d2.png 4) Start MT terminal and connect to trading. 5) In menu Tools-\u003eOptions select Experts Advisors tab and make sure you have enabled permission for external dll trading (Allow DLL imports): f7005422f9ab6528bfcf9e3f6cef64e6.png 6) If during the installation of the connector (step 3) the terminal was running, then you need to update the list of experts by right-clicking on Experts and selecting in the Refresh menu item: 93306eda4c39d93ef97f479a09c11b71.png 7) Select S# expert in the tree, click the right button, and select in menu Attach to a chart: 97652b2a648fe609e378ae1862710430.png 8) In the popup window you can specify login-password (leave it blank if you want anonymous access). Also, you can specify network address (in case of using multiple terminals you should specify unique port numbers). 9) On a chart (it should be the first random) at the right bottom corner you will see the smile icon: 9d121ff04f3643cf685d6916a4cd55cd.png And also in the expert logs window should appear information about the successful launch of the script. 10) If MT4 or MT5 license is not valid, then the following line will appear in the log: 8f887ccb12f25b8b85c17bfd1107d536.png 11) Connection to the MT is made via the FIX protocol. As a demonstration, you need to use our sample SampleFIX, included into S#.API package. Below are the settings for transactional and market data connections (in case of MT5 by default port is 23001 instead of 23000): 0913f892ae884d1f574d42ae95a3a4dd.png c83adaf6d0fb932c1288cedc4b17e891.png The same settings should be done in Hydra, Designer, Terminal. Leave login and password are blank in case of anonymous access (step 8). In case of connection to MT by multiple applications, it is necessary to specify a unique login to identify different connections. Notes: • The script must be run before connecting StockSharp to the MetaTrader and do not stop it until this connection is needed. • To see historical candles in StockSharp, they must be downloaded from the MetaTrader server. How to do it, read the documentation of MetaTrader itself. In case of successful connection, the example should show a list of instruments and accounts.: 32469740eab762d1e7eadfbd7d783217.png 12)In case of errors, the logs of the connectors are placed into the folder Experts\\StockSharp\\Data\\Log 81da4997082afa17a21bb6b9fe1dd075.png Updates This section will be updated periodically (depends on new fixes and features). Please subscribe to the topic to receive email notifications.