Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy without historical data

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

    Strategy without historical data

    Hello,

    I have a strategy that only requires real time data to be processed. To optimize the memory usage I would like to avoid loading historical data when starting the strategy but it seems at least one day has to be loaded.

    Is there a way to avoid loading any historical data?

    #2
    Hello guillembm,

    You can limit the amount of historical data that is downloaded in the Data Series window on a chart, or the Data Series section of the Strategy window from the Strategies tab of the Control Center. In the Data Series window of a chart the Load data based on can be set to bars, and Bars to load can be set to 1. On the Strategy window from the Strategies tab, the least data you can add is 1 day.

    You can also prevent your script from processing any historical data by adding if (!Historical) return; to the top of OnBarUpdate() in the script.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    76 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    26 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    62 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X