Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Read buy-sells from disk

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

    Read buy-sells from disk

    Hello,

    I want to read a series of buy and sells from disk into minute charts. Each minute bar would have a buy a sell or neither.

    It seems wasteful to read the disk file on every bar update.

    Can I create an IntSeries and fill it minute-by-minute in the Initialize() method?

    Or is the barseries not initialized until a barupdate occurs?

    Is there a way to build the series ahead of time?

    Thanks in advance
    Last edited by cstrader; 02-21-2015, 11:41 AM.

    #2
    Hello Cstrader,

    When you create a new series in the initialize and use the keyword "this" it will have the new series sync to the bars of the primary instrument.

    You then set values in the OnBarUpdate as this will get run historically for each bar.

    You cannot create the series to already have all the items already built in before processing.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    87 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    131 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    106 views
    0 likes
    Last Post CarlTrading  
    Working...
    X