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 burtoninlondon, Today, 12:38 AM
            0 responses
            10 views
            0 likes
            Last Post burtoninlondon  
            Started by AaronKoRn, Yesterday, 09:49 PM
            0 responses
            14 views
            0 likes
            Last Post AaronKoRn  
            Started by carnitron, Yesterday, 08:42 PM
            0 responses
            11 views
            0 likes
            Last Post carnitron  
            Started by strategist007, Yesterday, 07:51 PM
            0 responses
            14 views
            0 likes
            Last Post strategist007  
            Started by StockTrader88, 03-06-2021, 08:58 AM
            44 responses
            3,983 views
            3 likes
            Last Post jhudas88  
            Working...
            X