Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

WaitForClosingOcoBracket

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

    WaitForClosingOcoBracket

    When I try to enter "WaitForClosingOcoBracket = true;" in the Initialize() section, I get the following error:

    The name "WaitForClosingOcoBracket" does not exist in the current context CS0103.

    I use TD Ameritrade. What am I doing wrong?

    #2
    Which NinjaTrader version do you use? You can check under Help > About.

    Comment


      #3
      6.5.1000.9

      Comment


        #4
        Ok, then please upgrade to 6.5.1000.10 by going to Help > Download Site in the software. Then recheck your script.

        Comment


          #5
          I am using 6.5.1000.10 now but I still have the same problem.

          Comment


            #6
            Hi,

            Can you please send a note to support at ninjatrader dot com and refer to this post.

            We will send you a link for a custom build version for TDA.
            Vince B.NinjaTrader Customer Service

            Comment


              #7
              wrong spelling

              please type

              this.

              as soon as the dot is typed
              intellisense will then propose all the member functions and you choose the function you need.

              for example:

              this.WaitForOcoClosingBracket
              and it compiles without error


              (your spelling was different)

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              558 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              324 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              545 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              547 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X