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 SalmaTrader, 07-07-2026, 10:26 PM
              0 responses
              47 views
              0 likes
              Last Post SalmaTrader  
              Started by CarlTrading, 07-05-2026, 01:16 PM
              0 responses
              22 views
              0 likes
              Last Post CarlTrading  
              Started by CaptainJack, 06-17-2026, 10:32 AM
              0 responses
              15 views
              0 likes
              Last Post CaptainJack  
              Started by kinfxhk, 06-17-2026, 04:15 AM
              0 responses
              21 views
              0 likes
              Last Post kinfxhk
              by kinfxhk
               
              Started by kinfxhk, 06-17-2026, 04:06 AM
              0 responses
              23 views
              0 likes
              Last Post kinfxhk
              by kinfxhk
               
              Working...
              X