Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Realtime vs History

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

    Realtime vs History

    If I have this line of code in OnBarUpdate()

    if(State == State.Historical) return;

    Can I assume that all processing will be done in real time?

    Thanks!!

    #2
    Hello GibbsB613,

    Yes, this would check the State and if the State is State.Historical then OnBarUpdate will return and will not process past this point.

    This is shown in the 'Using State to only process real-time data' example in the help guide.
    http://ninjatrader.com/support/helpG...n-us/state.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kazisl, Today, 06:41 PM
    0 responses
    2 views
    0 likes
    Last Post kazisl
    by kazisl
     
    Started by einstein, Today, 06:20 PM
    0 responses
    2 views
    0 likes
    Last Post einstein  
    Started by op1031, Today, 05:51 PM
    0 responses
    4 views
    0 likes
    Last Post op1031
    by op1031
     
    Started by nighttrader99, Today, 04:34 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by Simon Investimens, Today, 02:51 PM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X