Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Position - Any way to stop a strategy processing historical data?

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

    Strategy Position - Any way to stop a strategy processing historical data?

    Hi,

    I'm just going through the manual to get a clear idea of the way NT works before purchasing it and I've got to page 242 which states that when starting up a strategy in mid-session it will evaluate all historical data from that session and generate virtual orders (essentially playing catch up). This runs the (very large) risk of your strategy position being out of synch with your account position.

    Now I can see the point of the strategy doing this when it is recovering from a failure of some sort, but surely there must be a flag you can set which will initiate the strategy mid-session without it processing the historical data?

    Thanks in advance

    Stuart

    #2
    Hi Stuart, welcome to our support forums!

    For this you could work with 'Historical' to make sure it start processing real time data only - http://www.ninjatrader-support.com/H...istorical.html

    Or you go to your 'Strategies > NinjaScript tab' and choose the first open to 'wait until flat before executing live' - http://www.ninjatrader-support.com/H...tegiesTab.html

    Comment


      #3
      So if were to wrap up any order entry calls within something like:

      // Determine if data being evaluated is historical
      if (Historical == false)
      {
      // Enter trade
      EnterLong();
      }

      then this would mean that all the historical data would be available for the calculation of indicator values as soon as the strategy started to process realtime data but obviously the actual trade would not be taken. Is that correct?

      Thanks

      Stuart

      Comment


        #4
        Correct, with wrapping your order entry logic this way the strategy would take the first real time generated trade and not calculate any historical ones.

        Comment


          #5
          Hi Bertrand,

          is there a possibility to adjust only one or two days of historical for example. I cannot start with realtime data only as I require data from the previous trading day but I don't want to have some thousands of bars getting proceeded before the strategy sets up.

          Many thanks

          Robert

          Comment


            #6
            Hi Robert, you can adjust either on the chart or strategies tab how many days back the data for the strategy / data series would be loaded up by NT, I don't see then how you would use the Historical property though discussed here in the thread as solution to not have any virtual position for the strategy, this would always exist if a strategy calculates on historical data and would not be flat upon being enabled for live trading.

            Comment


              #7
              Hi Bertrand,

              Many thanks for your quick response. Could you please specify "strategies tab". When I click on the link you posted somtime http://www.ninjatrader-support.com/H...tegiesTab.html before I receive the standard ninjatrader-support website. Where do I find the "strategies tab"?

              Thanks.

              Robert

              Comment


                #8
                You're welcome, that was the link for 6.5 - the current doc for the strategies tab found in NT's Control Center would be located here - http://www.ninjatrader.com/support/h...egies_tab2.htm

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                646 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                367 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                108 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                570 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                573 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X