Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancelling and automated order

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

    Cancelling and automated order

    I would like to know if this is possible. If I have a ninja strategy that automatically places an order when my conditions are met. The strategy places a limit order at the closing price of the candle the signal originated. I want to know if it is possible to have the script cancel the pending order if the trade moves 4 ticks in the direction of the trade before the pending order is filled. I currently manually cancel orders that do not fill prior to the trade moving 4 ticks. But I would like to automate the process to place the order and be smart enough to cancel the pending order if I do not get filled because I do not want to get filled after the move is over.



    #2
    imported post

    Yes this is possible but you would have to program it in NinjaScript.

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      I'm still new to this, so what code do I use to cancel a pending order?
      Thanks.

      Comment


        #4

        Comment


          #5
          Originally posted by NinjaTrader_Dierk View Post
          Thanks! I actually managed to find it a few moments before you replied =)

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          27 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          117 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          69 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          226 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          417 views
          0 likes
          Last Post CaptainJack  
          Working...
          X