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 rbeckmann05, Yesterday, 06:48 PM
    1 response
    12 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    15 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Working...
    X