Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with "Closes"

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

    #16
    Lou,

    Please send in an email to support [at] ninjatrader [dot] com with a link to this thread and Attn: Josh in the subject. Please include your phone number and I will arrange for the proper resources to assist you tomorrow. Thank you.
    Josh P.NinjaTrader Customer Service

    Comment


      #17
      Josh,
      I've sent the email to your attention. I look forward to hearing from you soon.

      -Lou

      Comment


        #18
        bluelou, thank - we got your email and followed up directly to schedule a call.

        Comment


          #19
          Originally posted by NinjaTrader_Bertrand View Post
          bluelou, thank - we got your email and followed up directly to schedule a call.

          I just heard back from Brett a few minutes ago. Thx.

          Comment


            #20
            In NT6.5, what would be the equivalent to the NT7 code below? (Noting that CurrentBars[x] doesn't exist in NT6.5)

            Here's an example using NT7:
            if (BarsInProgress == 0)
            {
            if(CurrentBars[1] >=2)
            {if(Closes[1][0] >= Closes[1][1])
            {
            Cls1up =1;
            }
            else
            Cls1up =0;
            }
            }

            Comment


              #21
              There is no equivalent. You would just have to make and store your own variables that tracks CurrentBars of your various BIPs.

              Code:
              if (BarsInProgress == 0)
                  CurrentBarsZero = CurrentBar;
              else if (BarsInProgress == 1)
                  CurrentBarsOne = CurrentBar;
              Josh P.NinjaTrader Customer Service

              Comment


                #22
                Brett,
                Any progress on the BarsArray issue with Gain Capital data? Is this a bug in the NT7 platform as you had speculated? If so, will the bug be fixed in the next beta, NT7 v20?


                Also, I tried your suggestion (sent via Skype IM) to set CurrentBars[1] >= 20 but that just gave me an OnBarUpdate() error "You are accessing an index with a value that is invalid since its out of range."

                See attachment for the code that I used.

                Thx,
                Lou
                Attached Files

                Comment


                  #23
                  Lou, I will ask Brett if he has found anything. In the mean time, please try the other code with:
                  Code:
                  OnBarUpdate()
                  {
                      if (CurrentBar < 20)
                          return;
                      else
                      {
                           // all your other code goes here, starting with
                           if (BarsInProgress == 0)
                           ...
                       }
                  }
                  AustinNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  648 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  369 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
                  572 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