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 rhyminkevin, Today, 04:58 PM
            4 responses
            52 views
            0 likes
            Last Post dp8282
            by dp8282
             
            Started by iceman2018, Today, 05:07 PM
            0 responses
            5 views
            0 likes
            Last Post iceman2018  
            Started by lightsun47, Today, 03:51 PM
            0 responses
            7 views
            0 likes
            Last Post lightsun47  
            Started by 00nevest, Today, 02:27 PM
            1 response
            14 views
            0 likes
            Last Post 00nevest  
            Started by futtrader, 04-21-2024, 01:50 AM
            4 responses
            50 views
            0 likes
            Last Post futtrader  
            Working...
            X