Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

backtesting Ninjascript with own historical data

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

    backtesting Ninjascript with own historical data

    I've read lots about people using Ninjatrader with historical data to evaluate performance of your algorithms. But what about back testing to check the logic of your code? That is, making sure it is doing what you want. Are either of these options possible:

    1) Back test with imported data on my hard drive. This is not data "recorded" with the software, but rather historical minute by minute data I purchased from another source.

    2) Back test with historical data provided by Ninjatrader WITHOUT needing to purchase a data feed and record the data manually?

    I simply want to make sure that I code my strategy correctly in Ninjascript before I even think about back testing to evaluate performance.

    #2
    Hello YD777,


    Yes, this is possible if the data is properly formatted for NinjaTrader. Historical data can be imported from a text file with a ".txt" extension within the Import tab of the Historical Data Manager. Several formats and data types are supported and NinjaTrader can optionally build 'Minute' bars from tick data as well as 'Day' bars from tick or minute data.
    Here is the Help Guide on Importing Historical Data to assist you further.




    Yes, NinjaTrader offers a limited amount of replay data free to download. Only the most common instruments are currently available.

    To download replay data:

    1.Select the File menu in the Control Center, select the menu item Utilities and select Download Replay Data... The Download Replay Data window appears.
    2.Select the instrument and date of the desired replay data and press the OK button to begin the download.



    The status of the download will appear in the lower right hand corner of the Control Center.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    87 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    131 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    106 views
    0 likes
    Last Post CarlTrading  
    Working...
    X