Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DLL interface, order rejection management

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

    DLL interface, order rejection management

    Hello,

    I am using the TradeStation dll integration and I wanted to get an advise on one topic.
    I am getting the following scenario sometimes:
    I have a position in the market and a bracket order around it.
    At certain level I would like to start and trail my stop. Sometimes the trail is very tight.
    I am checking before I am sending the new stop value (with NTChange function) that I am using an appropriate stop value (for longs the stop will be below close) , however sometimes the market can move very fast and by the time the order will get to the exchange/broker the stop price is illegal and i am getting an order rejection.

    So far fine, now the question is how I can manage this rejection...
    I am getting an error box on NT with sound alert for this event, however, would it be possible to evaluate if my order has been changed on the TradeStation code?
    What will the order status return? I do have the old original stop price in the market; hence the status would probably not be rejected.
    Any other idea to let the TradeStation code know that the order have not been changed?
    Thanks,
    Nir

    #2
    Hi nfeldberg,

    You might want to consider placing a stop with respect to the bid or ask instead of the close.

    In general, the best approach here may be to submit a more liberal stop price, then adjust as necessary.
    TimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by AttiM, 02-14-2024, 05:20 PM
    12 responses
    213 views
    0 likes
    Last Post DrakeiJosh  
    Started by cre8able, 02-11-2023, 05:43 PM
    3 responses
    238 views
    0 likes
    Last Post rhubear
    by rhubear
     
    Started by frslvr, 04-11-2024, 07:26 AM
    8 responses
    117 views
    1 like
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    10 responses
    47 views
    0 likes
    Last Post stafe
    by stafe
     
    Started by rocketman7, Today, 09:41 AM
    3 responses
    12 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X