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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    110 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    59 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    37 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    41 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    78 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X