Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ignore data

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

    ignore data

    Is there a way to make NinjaTrader ignore ALL previous data it has collected on a symbol when you start a strategy? Some of my indicators for instance OBV is affected by data from previous days. I want everyday to start fresh with no knowledge of past days... How can i do this?

    #2
    Code:
    if (Historical)
         return;
    It will ignore ALL historical data regardless if it is historical data from this day or the previous day.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I assume I need to add that to each indicator as well to prevent indicators from being calculated on historical data?

      Comment


        #4
        That needs to go into the top of the OnBarUpdate() method for all indicators you wish this behavior to apply to.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Is there a way to make ninjatrader not record tick data from when running live? I see there is an option to click to not record bar data.. does this include not recording tick data and such as well?

          Comment


            #6
            When you uncheck "Store real-time bar data" it will not store anything, tick or anything else.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            68 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            38 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            62 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            62 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            53 views
            0 likes
            Last Post CarlTrading  
            Working...
            X