Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

newbie indicator questions

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

    newbie indicator questions

    1) is it possible for an indicator to delete drawing objects...all current drawing objects on the chart? (how?)

    2) is it possible for an indicator to cancel pending orders? (how?)

    Thanks

    #2
    Hi Turtle Trader,

    1. Yes, you can remove objects drawn by an indicator or strategy with RemoveDrawObjects();
    More info at - http://www.ninjatrader-support.com/H...oveDrawObjects

    In NT7, you can access all draw objects with - http://www.ninjatrader.com/support/h...rawobjects.htm

    2. Unfortunately not, you can cancel orders from a custom strategy, but not an indicator.
    TimNinjaTrader Customer Service

    Comment


      #3
      reply

      OK...

      1) Then it seems it would be possible to have a simpel strategy running that would delete the pending order?

      2) Is there no way to programatically delete user drawn lines in 6.5? (i.e. invoke the Remove Drawing Objects function)?

      Thanks

      Comment


        #4
        reply 2

        Is it possible to post a code snippet that would cancel all pending orders?

        (for newbies...)

        Comment


          #5
          Hi Turtle Trader,

          You can cancel orders with CancelOrder()
          More info at - http://www.ninjatrader-support.com/H...ml?CancelOrder

          Are you referring to orders placed within the Strategy, or placed manually outside of a strategy? Only orders placed within a strategy can be cancelled from within a strategy.

          In 6.5, no, the manually drawn objects are not accessible and cannot be deleted programmatically.
          TimNinjaTrader Customer Service

          Comment


            #6
            reply

            I'm referring to ATM orders placed manually...I need to have them cancelled automatically on a certain price event.

            If not in 6.5 will this be available in NT 7?

            (by the way, when to you expect NT7 to be out of beta?)

            In NT7 can manually created lines be deleted in an indicator or strategy?

            Thanks

            Comment


              #7
              Hi Turtle Trader,

              Only orders placed within a strategy can be cancelled from within a strategy. You cannot cancel order that were placed outside of the strategy, this has not changed with NT7.

              Unfortunately I do not have an exact ETA on the full release of NT7.

              In NT7, you can access and delete manually drawn lines - http://www.ninjatrader.com/support/h...rawobjects.htm
              TimNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              597 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              343 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              556 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              555 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X