Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Import Data to execute backtesting

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

    Import Data to execute backtesting

    Hi All,

    I was wondering if the below scenario is possible within NinjaTrader.

    If I can import into the tool, a pre-defined list of stocks with date, time, price and action ( buy/sell), can i perform back-testing for this for the date on which the signal was generated. The expected result is if the target or SL is hit first.

    The evaluation needs to happen atleast on 5 min time frame but not in real time. I can run this end of day as well.

    Regards,
    Konal

    #2
    Hello Konal,

    Thank you for your post.

    There's not exactly a way to import a list of dates, times, prices and actions to backtest. You'd need a NinjaScript Strategy, though you could certainly have that read from a file of signals and fire the appropriate signals on the necessary instrument as those times are passed in the Strategy Analyzer, however.

    Here's a link to our help guide that goes over how to use StreamReader to read data from a file:



    You could utilize this same sort of setup within a strategy and base your order submittal on the values your script reads in.

    I'd also review the section on Multi-Time Frame and Instruments:



    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    113 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    60 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    40 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    43 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    81 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X