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 charlesugo_1, 05-26-2026, 05:03 PM
                  0 responses
                  59 views
                  0 likes
                  Last Post charlesugo_1  
                  Started by DannyP96, 05-18-2026, 02:38 PM
                  1 response
                  143 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by CarlTrading, 05-11-2026, 05:56 AM
                  0 responses
                  161 views
                  0 likes
                  Last Post CarlTrading  
                  Started by CarlTrading, 05-10-2026, 08:12 PM
                  0 responses
                  97 views
                  0 likes
                  Last Post CarlTrading  
                  Started by Hwop38, 05-04-2026, 07:02 PM
                  0 responses
                  283 views
                  0 likes
                  Last Post Hwop38
                  by Hwop38
                   
                  Working...
                  X