Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using Tradestation to cancel ordersin the dome.

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

    Using Tradestation to cancel ordersin the dome.

    I place orders in the Dome manually then use a TradeStation strategy to place and then tighten a stop at pre-determined price points. However, if my Tradestation chart refreshes for any reason it restarts the strategy which places a new stop with a new unique orderid which means I now have two stops which if hit will reverse my position.

    What is the command to cancel all orders for a particular symbol for a particular account when the stop orderid is not known? If the NTcommand needs to have the correct valid orderid to work, is it possible to use a generic orderid for the stop i.e. "STOP1" or does each orderid need to be unique?



    Is it possible to use the NTcommand “cancelallorders” to only cancel all orders for a particular account and symbol by modifying the wrapper function? I have tried to do this but it still cancels all orders across all accounts for all symbols?
    Last edited by strad739; 01-28-2009, 07:57 AM. Reason: typing errors

    #2
    CancelAllOrders does what it sounds like. It will cancel all orders.

    Use NTOrders to get your orderIds. Then just use NTCancel and cancel the individual ones you do not want.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Johnny Santiago, 10-11-2019, 09:21 AM
    95 responses
    6,193 views
    0 likes
    Last Post xiinteractive  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    2 responses
    11 views
    0 likes
    Last Post xiinteractive  
    Started by Irukandji, Today, 09:34 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by RubenCazorla, Today, 09:07 AM
    1 response
    5 views
    0 likes
    Last Post RubenCazorla  
    Started by TraderBCL, Today, 04:38 AM
    3 responses
    25 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X