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 cmoran13, Yesterday, 01:02 PM
              0 responses
              29 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              21 views
              0 likes
              Last Post PaulMohn  
              Started by CarlTrading, 03-31-2026, 09:41 PM
              1 response
              160 views
              1 like
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              95 views
              1 like
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              148 views
              2 likes
              Last Post CaptainJack  
              Working...
              X