MT5 to NinjaTrader Trade Copier: Setup and Use Instruction

INSTRUCTION SECTIONS OVERVIEW:

1. INTRODUCTION TO THE MT5 TO NINJATRADER TRADE COPIER

2. PRODUCT LICENSE

3. TRIAL AVAILABILITY

4. INSTALLATION AND SETUP

4.1 Installing and Configuring the MT5 Expert Advisor as a Sender

4.2 Installing and Configuring the NinjaTrader Strategy as a Receiver

4.3 Establishing and Checking the Connection Between Sender and Receiver

5. FUNCTIONAL FEATURES AND SETTINGS OF SENDER (METATRADER 5 EXPERT ADVISOR) AND RECEIVER (NINJATRADER STRATEGY)

5.1 Description and Principle of Operation of Sender (MT5 Expert Advisor) and Receiver (NinjaTrader Strategy)

5.2 Sender Parameters and Their Description

5.3 Receiver Parameters and Their Description

6. TRADE COPYING PROCESS

6.1 Types of Orders Copied and their processing

6.2 Partial Execution and Order Modification

6.3 Order Execution Specifics for MT5 Hedging Accounts (FIFO Logic)

7. SUPPORT AND CONTACT INFORMATION

FREQUENTLY ASKED QUESTIONS (FAQ)


1. INTRODUCTION TO THE MT5 TO NINJATRADER TRADE COPIER

MT5 to NinjaTrader Trade Copier

The MT5 to NinjaTrader Trade Copier is a dedicated solution for copying trades from MetaTrader 5 (MT5) to NinjaTrader. Acting as a bridge between the two platforms, it enables traders to execute trades on MT5 and automatically copy them to NinjaTrader 8 in real time. The Copier supports both manual and automated trades.

This version of the product copies trades locally on a single computer — both the MT5 and NinjaTrader platforms must be running on the same PC.


The MT5 to NinjaTrader Trade Copier operates as an integrated solution that links MetaTrader 5 (MT5) with NinjaTrader through two core components:

  • MT5 Expert Advisor (Sender): Responsible for generating and transmitting trade signals from the MT5 side.
  • NinjaTrader Strategy (Receiver): Processes incoming signals and executes the corresponding trades within the NinjaTrader platform.

Copying trades is only possible in one direction: from MetaTrader 5 to NinjaTrader 8. Due to technical limitations of the platforms, simultaneous two-way trade copying is not supported

Warning!
Do not start using this product on a live account. First, thoroughly test all features on a demo account to ensure you fully understand its capabilities and limitations. Only after you are fully confident in its operation should you consider using it on a live account.

Attention!
To ensure the MT5 to NinjaTrader Trade Copier works correctly, you must use the latest available version of your MetaTrader 5 terminal. Please update your MT5 terminal before use.


2. PRODUCT LICENSE

To start using the MT5 to NinjaTrader Trade Copier, you will need a licensed email address.

To obtain one, subscribe by clicking the “DOWNLOAD” button on the product page, then select “SUBSCRIBE” in the window that appears.

After completing the payment, return to the product page, click “DOWNLOAD” again, and in the “Subscriber Access” section, enter the email address you used during the subscription process. Then click “SUBMIT” and “DOWNLOAD” — a zip file containing all the necessary components will automatically be downloaded to your device.

The product is available through a monthly subscription that renews automatically each month. You may cancel your subscription at any time if you decide to stop using the product. To avoid unintended charges, please remember to cancel your subscription if you no longer require the service.

Currently, all of our products are available under a single subscription. This means that, in addition to the MT5 to NinjaTrader Trade Copier, you will also gain access to all our indicators and other trade copiers.


3. TRIAL AVAILABILITY

A 5-day free trial is available.

You can test the MT5 to NinjaTrader Trade Copier before subscribing.
If you don’t cancel within 5 days, the monthly subscription will start automatically. You can cancel at any time.

We Value Your Feedback

We are committed to the ongoing improvement of our MT5 to NinjaTrader Trade Copier.
If you encounter an issue, feel that an important feature is missing, or have suggestions that could make the copier more efficient or user-friendly, please send us a message.
Your feedback helps us refine the tool and better meet the needs of traders who rely on it every day.


4. INSTALLATION AND SETUP

The ZIP file downloaded from the product page contains two components: the .ex5 file named “Nordman_MT5NT8_Sender_EA” (Sender) for installation in MetaTrader 5, and the ZIP archive “NordmanMT5NT8Receiver” (Receiver) for installation in the NinjaTrader 8 platform

4.1 Installing and Configuring the MT5 Expert Advisor as the Sender

Step 1: Import the “Nordman_MT5NT8_Sender_EA.ex5” file (Expert Advisor) into MetaTrader 5

1. Extract the file “Nordman_MT5NT8_Sender_EA.ex5” from the general ZIP archive "Nordman_MT5_to_ NT8_Trade_Copier".

2. Open or launch your MetaTrader 5 terminal.

3. Go to the designated folder in the MetaTrader 5 terminal for placing Expert Advisors. To do this, click “File” in the terminal's main menu and then select “Open Data Folder”.

MetaTrader 5 menu showing the “Open Data Folder” option under the File menu

4. In the folder that opens, go to the MQL5 folder, then open the Experts folder. Paste the “Nordman_MT5NT8_Sender_EA.ex5” file into the Experts folder.

Step 2: Verify File Import

1. Open the Navigator window. If the Navigator panel is not visible, go to the “View” menu and enable “Navigator”, or press the Ctrl + N keyboard shortcut.

MetaTrader 5 Navigator panel opened from the View menu

2. In the Navigator window, select the “Expert Advisors” section, right-click it, and then click “Refresh”.

MetaTrader 5 Navigator window with Expert Advisors section refreshed

3. Confirm that the “Nordman_MT5NT8_Sender_EA” appears in the updated Navigator window. This confirms successful import into the terminal.

MT5 Navigator showing the Nordman_MT5NT8_Sender_EA loaded in Expert Advisors

Step 3: Terminal Setup

Before running the EA (“Nordman_MT5NT8_Sender_EA”), ensure that the terminal settings are configured correctly:

1. Open the Options window: Click “Tools” in the top navigation menu and select “Options”.

MetaTrader 5 Tools menu highlighting the Options selection

2. Go to the “Expert Advisors” tab and check the following settings (refer to the provided screenshot for confirmation):

  • Allow algorithmic trading: Enabled.
  • Allow DLL imports: Enabled.

MT5 Options window showing Expert Advisors settings with algorithmic trading and DLL imports enabled

3. Ensure the Algo Trading function is enabled in the MetaTrader 5 control panel:

After verifying the general “Expert Advisors” settings, check whether the Algo Trading function is enabled on the MetaTrader 5 toolbar. This button must be activated for the EA to execute trades automatically. When enabled, the button displays a green play icon.

MetaTrader 5 toolbar with the Algo Trading button enabled and showing a green icon

Step 4: Install the Expert Advisor on the Chart and Configure It

1. Open the Navigator window. If the Navigator panel is not visible, go to the “View” menu and enable “Navigator”, or press the Ctrl + N keyboard shortcut.

2. In the “Expert Advisors” section, locate “Nordman_MT5NT8_Sender_EA”. Drag it onto the chart using your mouse, or right-click it and select “Attach to a Chart”.

3. In the EA settings window, go to the “Common” tab and make sure that “Allow Algo Trading” is enabled. Then, in the “Dependencies” tab, ensure that “Allow DLL imports” is enabled as well.

EA settings window in MT5 with Allow Algo Trading enabled on the Common tab
MT5 EA settings on the Dependencies tab with Allow DLL imports enabled

4. Navigate to the “Inputs” tab: Configure the EA according to the instructions in paragraph 5.2, “Sender Parameters and Their Description”.

4.2 Installing and Configuring the NinjaTrader Strategy as a Receiver

Step 1: Import the “NordmanMT5NT8Receiver” zip file into NinjaTrader trading terminal

1. Open your NinjaTrader trading terminal. In the “Control Center” window, click the “Tools” menu, then select “Import” and choose “NinjaScript Add-On”.

4.2.1 Import zip file into NinjaTrader trading terminal

2. When prompted to select a file with the *.zip extension, specify the folder where you saved the downloaded zip file. Select the file “NordmanMT5NT8Receiver” (do not unpack/extract the zip file) and click “Open” to begin the installation process.

3. Verify that the import was successful. Once the add-on is imported, NinjaTrader will display the message: “NinjaTrader successfully imported all scripts contained in the NinjaScript Archive File.

Step 2: Attach the Receiver (NinjaTrader Strategy) to the Chart

1. Right-click on the chart area in NinjaTrader and select “Strategies” from the menu.

4.2.2 Attach the NinjaTrader Strategy to the Chart

2. In the “Strategies” window, locate the installed Strategy, click on it, and press “Add”.

NinjaTrader Strategies window with a strategy selected and added

Now you can begin setting up the Strategy.

Step 3: Configure the Strategy Parameters

Refer to paragraph 5.3, “Receiver Parameters and Their Description, to configure the Strategy settings as needed.

After configuring all the necessary parameters, make sure to enable the “Enable” option in the Strategy settings under the “Setup” section.

NinjaTrader Strategy settings showing the Enable option activated in the Setup section

You can also enable this option in the “Control Center” by navigating to the bottom “Strategies” tab.

NinjaTrader Control Center with the Strategies tab showing the enabled strategy option

4.3 Establishing and Checking the Connection Between Sender and Receiver

To establish a proper connection, it is important to follow the correct order when setting up the Sender and Receiver. The Sender must always be installed first.

1. Setting Up the Sender:

  • Open the MetaTrader 5 terminal. Attach the Sender to the chart and set the parameter name to “Sender ID” (for more information on what Sender ID is and how to use it, refer to points 5.1 and 5.2 of the instructions).
  • After installing the Sender, the chart will display the connection status as "Disconnected". This is a temporary status and will remain until you proceed to the next step by installing the Receiver on the chart.

2. Setting Up the Receiver:

  • Open the NinjaTrader 8 terminal and attach the Receiver to the chart.
  • In the Strategy settings, set the “Sender ID” parameter to match the “Sender ID” specified in MetaTrader 5.
  • Enable the strategy by clicking the “Enable” parameter in the “Setup” section of the Strategy settings.

After installing the Sender and Receiver on their respective charts, ensure that the connection between them has been successfully established. Both components include connection indicators to confirm this. If everything is configured correctly, the indicators will display the status “Connected”.

MT5 to NinjaTrader Trade Copier. Sender status “Connected”.

MT5 to NinjaTrader Trade Copier. Receiver status “Connected”.

If all connection indicators show the status “Connected”, the Trade Copier is fully operational, and you can begin copying trades.

If any connection indicators display Disconnected”, the most common reasons for this status are:

  • The specified Sender ID does not match.
  • Multiple copiers with the same Sender ID are running.

Please verify that the “Sender ID is correctly specified for the symbols being copied.

If you are confident that the issue is not caused by these factors, refer to Section 7: Support and Contact Information for important details before reaching out to technical support.


5. FUNCTIONAL FEATURES AND SETTINGS OF SENDER (METATRADER 5 EXPERT ADVISOR) AND RECEIVER (NINJATRADER STRATEGY)

5.1 Description and Principle of Operation of Sender (MT5 Expert Advisor) and Receiver (NinjaTrader Strategy)

The Sender is an Expert Advisor for MetaTrader 5 designed to record entry and exit events for positions executed on a specified symbol. It tracks all actions on the chart where it is installed and transmits the corresponding data in real time to the Receiver through a dedicated local connection.

The Receiver, implemented as a NinjaTrader Strategy, processes and executes the orders sent by the Sender. Using the “Sender ID” parameter as an identifier, it links signals from the Sender to the correct Receiver instance. All positions are then copied directly from the Sender to the chart where the NinjaTrader Strategy is applied.

If you are using automated trading with an EA, you must open two charts for the symbol you intend to copy. Attach the Sender EA to one chart and your trading EA to the other, as MetaTrader 5 does not allow two EAs to run on the same chart. However, if you are placing orders manually, this step is unnecessary—you can trade directly from the chart where the Sender EA is attached.

The Sender tracks only the orders placed on the symbol to which it is attached. For example, if the Sender EA is placed on AUDCAD, it will not track or copy orders from EURUSD.

If multiple charts are open for the AUDCAD symbol and the Sender EA is attached to one of them, it will track executions across all AUDCAD charts. To copy trades for multiple symbols, you must use separate Sender EAs with unique Sender ID parameters for each symbol.

Example:

Symbol to be CopiedTrade Copier
Connection Channel
“Sender ID”
in the Sender
(MT5 Expert Advisor)
“Sender ID”
in the Receiver
(NinjaTrader Strategy)
EURUSDSender #1 ➜ Receiver #1MyWordMyNumbersMyWordMyNumbers
GBPUSDSender #2 ➜ Receiver #2Nordman001Nordman001

Important:
• Monitor the charts where the Sender and Receiver are placed. Changing the symbol on either chart may cause trades to be copied to an unintended instrument.
• For example, if you are browsing charts and accidentally change the symbol on the Receiver chart, the Sender will still send orders, but the Receiver will execute them on the newly selected symbol.
• Note that orders are copied based on the Sender ID, not the symbol. For instance, if the Sender is attached to a GBPUSD chart and the Receiver chart is set to GOLD instead of GBPUSD, then opening 1 lot of GBPUSD in the Sender will cause the Receiver to open 1 lot of GOLD.


5.2 Sender Parameters and Their Description

#License Email
Field for entering the license email address. Enter the email address used during the subscription process. Specifying an email address is mandatory for the proper operation of the Trade Copier — without it, the Trade Copier will not function. For more information about the license email, refer to paragraph 2 “PRODUCT LICENSE.

#Sender ID
The Sender ID parameter serves as an identifier within the system. The server uses this value to establish a connection between the Sender and the Receiver. Only one Sender with a given ID can be active at any time. If you attempt to connect multiple Senders with the same Sender ID, a warning message will appear. Avoid using special characters when configuring your Sender ID — use only letters and numbers.

#Magic Number
The Magic Number parameter allows you to specify the types of trades that will be copied:

Magic Number ValueDescription
Magic Number = -1The EA will capture all market trades on the EA’s instrument.
Magic Number = 0The EA will capture only manually opened market trades.
Magic Number > 0The EA will capture market trades with this specific magic number only.

Ensure your Magic Number settings are configured correctly to achieve the desired trade-catching behavior.

#Enable Connection Loss Alert
Enables an alert that notifies you when the Sender loses connection with the Receiver. If activated, the system will display a warning whenever the connection is interrupted, helping you react promptly to any disruption in trade copying.


5.3 Receiver Parameters and Their Description

#License Email
Field for entering the license email address. Enter the email address used during subscription. Providing a valid email address is mandatory for the proper operation of the Trade Copier — without it, the Trade Copier will not function. For more detailed information about the license email, refer to paragraph 2 “PRODUCT LICENSE.

#Sender ID
The Sender ID parameter serves as a unique identifier for connecting to the Sender. To establish a proper connection between the Sender and Receiver, you must enter the same value that is set on the MetaTrader 5 Sender side.

#Lot Multiplier
This parameter adjusts the lot size of trades copied to the Receiver. The lot size of the original trade is multiplied by this value before being executed on the Receiver side.

Formula: MT5 lot size × Lot Multiplier

Using this parameter is important when the lot specifications for the same asset differ between brokers. For example, suppose you are trading the asset ABC. At the sending broker, 1 lot of ABC equals 10 units, while at the receiving broker, 1 lot equals 1 unit. To ensure that the equivalent position size is copied correctly, you must set Lot Multiplier = 10.

Conversely, if 1 lot of ABC equals 1 unit at the sending broker and 10 units at the receiving broker, you must set Lot Multiplier = 0.1.

This ensures that your position size remains consistent across platforms.

#Debug Log
Logs all trading events in the related log file.


6. TRADE COPYING PROCESS

6.1 Types of Orders Copied and their processing

Market OrdersPending (Limit) Orders
Market orders are copied immediately.
Typically, the copying speed is under one second, although the speed and quality of your internet connection may affect this.
Pending orders are not copied at the moment they are placed. Instead, they are copied to the Receiver only when the order is triggered (executed).

Why Are Pending (Limit) Orders Not Copied Immediately?
Because Bid/Ask prices may differ across platforms and brokers, a situation may occur where a limit order is triggered on one side but not on the other. This can lead to desynchronized positions, which is why pending orders are copied only when they are actually executed.

6.2 Partial Execution and Order Modification

Partial Execution: Orders are processed according to the market execution principle.

Order Modification: Orders are not copied at the moment they are placed or modified. Instead, they are copied to the Receiver only when they are actually executed, in accordance with the market execution principle.


6.3 Order Execution Specifics for MT5 Hedging Accounts (FIFO Logic)

If your MetaTrader 5 account is configured as a hedging account type, the Trade Copier applies a FIFO (First In, First Out) execution rule. This is necessary because NinjaTrader 8 operates exclusively on a netting model, where all positions are combined into a single net position.
In hedging mode, MT5 allows multiple independent positions on the same symbol, while NinjaTrader does not. Therefore, in order to maintain synchronization between platforms, the Trade Copier processes incoming trade signals using FIFO logic.

If your MT5 account uses the netting account type, no additional processing is required—both MT5 and NinjaTrader operate under the same netting model, allowing for straightforward one-to-one synchronization.

How FIFO Execution Works in Hedging Mode

When multiple trades are open in MT5 and a reverse signal arrives (e.g., a Sell signal while long positions are open), the Receiver processes the trades in the order they were opened—oldest first.
This ensures that the resulting net position on NinjaTrader accurately reflects the intended position on MT5.

Example

Assume the following long positions currently exist on the Receiver side:

  • #1 Long 1.0 lot
  • #2 Long 1.0 lot
  • #3 Long 2.0 lots

If the Sender issues a Short signal for 5.0 lots, the Receiver will process it as follows:

  1. Close Long #1 (1.0 lot)
  2. Close Long #2 (1.0 lot)
  3. Close Long #3 (2.0 lots)
  4. Open a new Short 1.0 lot position
    (because 5.0 – 4.0 closed = 1.0 remaining to reverse)

This ensures that the final net position on NinjaTrader matches the intent of the executed trade on the MT5 hedging account.


7. SUPPORT AND CONTACT INFORMATION

We have prepared detailed instructions for you and hope they will address most of your questions and issues. If you have any further inquiries or encounter any technical problems, please contact us using the form on the Contact Us page.

Troubleshooting

The Sender (MT5 Expert Advisor) and Receiver (NinjaTrader Strategy) generate detailed activity records in their logs. These logs are essential for diagnosing and resolving any issues. If you encounter an error, please send us the relevant log files along with a screenshot of the chart to help us troubleshoot your support request.

How to Access Logs in Terminals

MetaTrader 5NinjaTrader 8
Logs can be viewed in the Experts tab of the Terminal panel.

To save the log files, right-click in the Expert Advisor log, select Open from the pop-up menu, and save the files.
Logs can be viewed in the Log tab of the Control Center's bottom panel.
 
To save the log files, right-click on the logs, select Export from the pop-up menu, and save them to your preferred folder.

Log File Locations
The related log files can also be found in the following folders:

C:Users{YourUserName}DocumentsNinjaTrader 8_LogCustNordmanMT5NT8Receiver

C:Users{YourUserName}DocumentsNinjaTrader 8log

FREQUENTLY ASKED QUESTIONS (FAQ)

Quick answers to common questions about the MT5 to NinjaTrader Trade Copier

Q: How fast does the Trade Copier copy trades?
A: Trade copying occurs at a speed of less than 0.1 seconds.

Q: What happens if there are connection issues between platforms? Will trades be lost?
A: The Trade Copier does not store information about open or closed trades. It simply sends a command to copy a trade and does not track it afterward. If trades are executed while the copier is offline or disconnected, they will not be synchronized or copied.

Q: Does the Trade Copier copy pending (limit) orders from MT5 to NinjaTrader?
A: Pending (limit) orders are not copied at the moment they are placed; they are copied only when they are executed. This is because Bid/Ask prices may differ between platforms, which can result in a situation where an order is triggered on one platform but not on the other, leading to desynchronized positions. For more details, please refer to Instruction Section 6.1 Types of Orders Copied and their processing.

Q: Is it possible to copy trades from one MT5 account to several NinjaTrader accounts? Are there any special requirements?
A: The current standard version of the MT5 to NinjaTrader Trade Copier does not support this feature. However, we can develop a custom version of the Trade Copier tailored to your specific needs, including the ability to copy trades to multiple NinjaTrader accounts. Please contact us to discuss your requirements.

Q: NinjaTrader uses a netting account type, while MetaTrader 5 uses a hedging account type. How will trades be copied in this case?
A: When using an MT5 hedging account, the Trade Copier applies FIFO (First In, First Out) logic to ensure proper synchronization with NinjaTrader’s netting model. If the MT5 account is netting-based, trades are copied directly without additional processing. For more details, see Instruction Section 6.3 Order Execution Specifics for MT5 Hedging Accounts (FIFO Logic).

Q: How do I trade the same lot size on the Sender and Receiver sides?
A: Use the Lot Multiplier parameter to align lot sizes. This parameter adjusts the copied trade’s lot size by multiplying the original lot size by the specified value. This ensures consistent position sizing across platforms, even when brokers use different lot specifications.