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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    115 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    161 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    83 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    127 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    87 views
    0 likes
    Last Post PaulMohn  
    Working...
    X