Are there tools to format NinjaTrader data for MT5 import?

 
Hi, I have data export from NT8 and need to import it in MT5 but the formats compatible with the two platforms are clearly different. Is there a process/tool to automate this?
 
seankach:
Hi, I have data export from NT8 and need to import it in MT5 but the formats compatible with the two platforms are clearly different. Is there a process/tool to automate this?

I've never heard of a free tool nor process for this.

It sounds like a good custom job for a Freelancer to do:  All orders - new on freelance service for MetaTrader - forex jobs

Trading applications for MetaTrader 5 to order
Trading applications for MetaTrader 5 to order
  • 2025.01.26
  • www.mql5.com
The largest freelance service with MQL5 application developers
 
NT8 (NinjaTrader 8) and MT5 (MetaTrader 5) use different data formats. There’s no official one-click solution.
 
import csv
from datetime import datetime

def convert_nt8_to_mt5(input_file, output_file):
    with open(input_file, 'r') as infile, open(output_file, 'w', newline='') as outfile:
        reader = csv.reader(infile, delimiter=';')
        writer = csv.writer(outfile)

        # Write MT5 header
        writer.writerow(['Time', 'Open', 'High', 'Low', 'Close', 'Volume'])

        for row in reader:
            try:
                date_str, time_str, open_, high, low, close, volume = row
                dt = datetime.strptime(date_str + ' ' + time_str, '%Y%m%d %H%M%S')
                mt5_time = dt.strftime('%Y.%m.%d %H:%M')
                writer.writerow([mt5_time, open_, high, low, close, volume])
            except ValueError:
                continue  # skip headers or malformed lines

convert_nt8_to_mt5('NT8_export.csv', 'MT5_import.csv')