Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Automating Backtests in NinjaTrader or Python

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Automating Backtests in NinjaTrader or Python

    Hello NinjaTrader Community,

    I hope this post finds you well. I'm currently working on a project where I need to run a large number of backtests. For efficiency, I'm looking to automate this process and I'm exploring two possible routes:
    1. Automating backtests in NinjaTrader: Is there any way to automatically run a backtest in NinjaTrader using a script or command line interface?
    2. Backtesting in Python with NinjaTrader's market data: Alternatively, I'm considering running the backtests in Python using market data exported from NinjaTrader. Has anyone done something similar and could share some insights? Specifically, I'm interested in the process of exporting the data from NinjaTrader in a format that can be easily read by Python, and any challenges that might come up when using this data for backtesting in Python.

    Any guidance, insights, or references would be highly appreciated.

    Thank you in advance for your help. I look forward to hearing your thoughts and suggestions.

    Best regards, Aviram Y.

    #2
    Hello Aviram,

    Thank you for your post.

    There is no documented/supported way to automate backtests in NinjaTrader. You could look into writing a script or backtesting in Python at your own discretion, though NinjaTrader would not be able to guarantee the results. That said, if you are looking to run tests on multiple instruments at a time there is a way to perform basket tests in the Strategy Analyzer:I understand if that information is not relevant for your testing needs, I just thought I would mention it in case it helps out. As for exporting data, we have a page about how to export historical data here:The way files are formatted for different data types is explained here:If you have any other questions, we would be glad to provide additional resources if they exist. Otherwise, this thread will remain open for other members of the forum community to chime in with their insights and tips.

    Please let us know if we may be of further assistance.
    Emily C.NinjaTrader Customer Service

    Comment


      #3
      Thank you for the quick reply! i will look into everything.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,403 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by Shai Samuel, 07-02-2022, 02:46 PM
      4 responses
      94 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by DJ888, Yesterday, 10:57 PM
      0 responses
      6 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      158 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Yesterday, 09:29 PM
      0 responses
      8 views
      0 likes
      Last Post Belfortbucks  
      Working...
      X