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 NullPointStrategies, Today, 05:17 AM
            0 responses
            20 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            119 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            63 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            41 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            45 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X