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 sjsj2732, 03-23-2026, 04:31 AM
    0 responses
    154 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    356 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    393 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    182 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    138 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X