Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stochastics K[1] returns a value of 0

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

    #16
    I don't get the "Until enough bars are processed".. What tells the computer to process old bars? Doesn't it just process the bar that is continuously being updated in a trading day when price changes?

    Is the computer processing all bars ever created in some historical database over and over, and discards them over and over, if they are not called for in the script, or what?

    Comment


      #17
      m96gran,

      The NinjaTrader core calls the old bars. Otherwise you wouldn't be able to do calculations with the historical data. This is also called backtest.

      When the script starts, NinjaTrader will call OnBarUpdate for every historical bar of data in order. The Historical bool will be true. After the last historical bar is processed, the Historical bool will be turned to false and then the script will start to process real-time bars.

      The script does not just process the continuously updated bar as it does process historical bars first, and then processes real-time bars.

      The script only processes the data loaded in the script (because thats what was loaded in the script) and processes this only once, before real-time data begins to be processed.

      Please see the help guide on the Historical bool.


      And on the differences between real-time and backtest.
      Last edited by NinjaTrader_ChelseaB; 10-25-2016, 07:09 AM.
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bmartz, 03-12-2024, 06:12 AM
      5 responses
      32 views
      0 likes
      Last Post NinjaTrader_Zachary  
      Started by Aviram Y, Today, 05:29 AM
      4 responses
      13 views
      0 likes
      Last Post Aviram Y  
      Started by algospoke, 04-17-2024, 06:40 PM
      3 responses
      28 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by gentlebenthebear, Today, 01:30 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by cls71, Today, 04:45 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X