Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

SampleOnOrderUpdate

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

    SampleOnOrderUpdate

    I have a question concerning the SampleOnOrderUpdate sample strategy, http://www.ninjatrader-support2.com/...ad.php?t=7499:
    does the command line stopOrder=null cancel the working order? If yes, what is the difference between setting the IOrder object to null and using CancelOrder()?
    Thank you

    #2
    mdm72, no this is just a reset to 'empty' state if the associated position is closed. CancelOrder() is still needed to cancel a working order.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      you want to cancel the order before setting back to null

      (spent a week figuring this out! )

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by lorem, 04-25-2024, 09:18 AM
      15 responses
      64 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by doihaveto13, Today, 12:46 PM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_Zachary  
      Started by owen5819, 05-11-2024, 02:24 PM
      3 responses
      20 views
      0 likes
      Last Post owen5819  
      Started by Vitamite, Today, 12:48 PM
      0 responses
      6 views
      0 likes
      Last Post Vitamite  
      Started by MrAdamSK, 04-02-2024, 11:25 PM
      3 responses
      41 views
      0 likes
      Last Post NinjaTrader_Zachary  
      Working...
      X