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 carnitron, Today, 08:42 PM
    0 responses
    5 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    6 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,974 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    8 views
    0 likes
    Last Post rbeckmann05  
    Started by rhyminkevin, Today, 04:58 PM
    4 responses
    58 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Working...
    X