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 cmtjoancolmenero, Yesterday, 03:58 PM
    9 responses
    35 views
    0 likes
    Last Post cmtjoancolmenero  
    Started by DayTradingDEMON, Today, 09:28 AM
    4 responses
    21 views
    0 likes
    Last Post DayTradingDEMON  
    Started by geddyisodin, Yesterday, 05:20 AM
    9 responses
    50 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by George21, Today, 10:07 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by Stanfillirenfro, Today, 07:23 AM
    9 responses
    24 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X