NexusFi: Find Your Edge


Home Menu

 





Tradestation rejected orders cancelling automation.


Discussion in TradeStation

Updated
    1. trending_up 5,370 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Tradestation rejected orders cancelling automation.

  #1 (permalink)
KPreston
Harrisburg PA, USA
 
Posts: 2 since Sep 2014
Thanks Given: 1
Thanks Received: 0

So here's the issue I'm having, If you place two orders through strategy automation, one a sell above the current bar and one a buy below the current bar, Tradestation on their end will hold both but only place the order you are closer to. If the price action starts to become very fast an error can occur where Tradestation attempts to cancel an order before it is sent. Now, this issue is on Tradestations side not in the code which I know for certain from troubleshooting with Tradestation Easylanguage support. What I'm trying to do as a work around and not having any luck with yet is in 'using elsystem' to listen for a rejection and then recalculate(restart) the strategy so it continues in automation. Of that attempted solution my only problem is I have been unable to find any way to listen for a rejected order. Mind you, I'm not actually placing the order again, it's only calculated end of bar, Tradestation is holding both orders and placing one or the other based on proximity so I need to not listen for a rejection on an order I'm placing but just any rejection at all on the account. Thanks for the help! And let me know if my explanation isn't cutting I'm still finding it a little confusing myself!

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

KPreston,
have you checked the OCOOrderTicket object, this should allow what you have in mind with automated cancellation of the opposite order? Alternatively you might want to look at the Orders Class. This should allow you to monitor for changes of particular order.

Regards,
ABCTG

Follow me on Twitter Reply With Quote
  #3 (permalink)
KPreston
Harrisburg PA, USA
 
Posts: 2 since Sep 2014
Thanks Given: 1
Thanks Received: 0


Unfortunately that's not really what I'm looking to do. The rejection is after both orders have been placed; Tradestation platform then automatically will take away and place orders as you gain proximity to them, in rapid succession you end up with a rejection. What I really would love to do is watch for a rejection, flatten, and recalculate the strategy. Normally when an automated strategy gets a rejection it turns itself off which in rare circumstances can leave you in a trade. Now, I would always recommend not running a live strategy with you not present but that does not mean that all people do so my goal is rather than automation shutting off just recalculate and proceed or at least flatten the position if it is going to shut off! Any Ideas?

Reply With Quote




Last Updated on November 19, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts