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 arvidvanstaey, Today, 02:19 PM
      4 responses
      11 views
      0 likes
      Last Post arvidvanstaey  
      Started by samish18, 04-17-2024, 08:57 AM
      16 responses
      60 views
      0 likes
      Last Post samish18  
      Started by jordanq2, Today, 03:10 PM
      2 responses
      9 views
      0 likes
      Last Post jordanq2  
      Started by traderqz, Today, 12:06 AM
      10 responses
      18 views
      0 likes
      Last Post traderqz  
      Started by algospoke, 04-17-2024, 06:40 PM
      5 responses
      47 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X