Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Historical

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

    Historical

    I don't understand.

    I had this code working fine:

    protected override void OnBarUpdate()
    {


    if (Historical)
    return;

    From now and I don't know why with the same code it's executing code on historical. Did you have anyu similar issue?

    #2
    guillembm, is this a single or multiseries strategy / script?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Multi-instrument strategy. But it always worked. I'm LOST

      Comment


        #4
        guillembm, as first step please ensure you load enough bars for all series involved so that BarsRequired would be fulfilled.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Increasing the number of bars was enough. I don't understand. Two hours ago with the same number of bars than always I had no problem. What is the explanation?

          Comment


            #6
            Glad to hear, I would tip on a data loading issue for one or more series so the BarsRequired could not be satisfied.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Check here:





              Originally posted by guillembm View Post
              I don't understand.

              I had this code working fine:

              protected override void OnBarUpdate()
              {


              if (Historical)
              return;

              From now and I don't know why with the same code it's executing code on historical. Did you have anyu similar issue?

              Comment


                #8
                Uff! this is an old thread.

                I had to reinstall NT and the error was solved. Could be whatever

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by GwFutures1988, Today, 02:48 PM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by ScottWalsh, 04-16-2024, 04:29 PM
                6 responses
                30 views
                0 likes
                Last Post ScottWalsh  
                Started by frankthearm, Today, 09:08 AM
                10 responses
                36 views
                0 likes
                Last Post frankthearm  
                Started by mmenigma, Today, 02:22 PM
                1 response
                3 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by NRITV, Today, 01:15 PM
                2 responses
                9 views
                0 likes
                Last Post NRITV
                by NRITV
                 
                Working...
                X