NexusFi: Find Your Edge


Home Menu

 





Automated strategy fill issues


Discussion in TradeStation

Updated
      Top Posters
    1. looks_one kevinkdog with 2 posts (2 thanks)
    2. looks_two ShadowFox with 2 posts (1 thanks)
    3. looks_3 Fu510n with 1 posts (0 thanks)
    4. looks_4 FastNCurious with 1 posts (0 thanks)
    1. trending_up 3,309 views
    2. thumb_up 3 thanks given
    3. group 4 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
 

Automated strategy fill issues

 
 
ShadowFox's Avatar
 ShadowFox 
CO/USA
 
Experience: Intermediate
Platform: TradeStation, Multicharts
Trading: Stocks, Futures
Posts: 129 since Jun 2020
Thanks Given: 70
Thanks Received: 157

I have searched far and wide for similar posts but have not found anything. For the automated traders out there using Tradestation, do you have issues with strategy fills? Seems like every few days I have what should be a strategy fill that doesn't get a signal until I reload the strategy or restart the application (only in automated execution. I also get issues where the strategy generates a fill but I do not get an order generated. I find myself missing trades more than I would like and I cannot figure out why. Could it be related to the fill logic? I am using "Strategy will fill non-historical orders only when the TradeManager reports them as filled" and only the "Wait for UROut confirmation before sending a subsequent entry order for the same signal to the market". All of these orders are market orders on the next bar (no intrabar order generation). Any help at all would be greatly appreciated.

Visit my NexusFi Trade Journal Started this thread

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Request for MACD with option to use different MAs for fa …
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
65 thanks
NexusFi site changelog and issues/problem reporting
48 thanks
Battlestations: Show us your trading desks!
36 thanks
GFIs1 1 DAX trade per day journal
32 thanks
What percentage per day is possible? [Poll]
31 thanks

 
 kevinkdog   is a Vendor
 
Posts: 3,645 since Jul 2012
Thanks Given: 1,890
Thanks Received: 7,336


ShadowFox View Post
I have searched far and wide for similar posts but have not found anything. For the automated traders out there using Tradestation, do you have issues with strategy fills? Seems like every few days I have what should be a strategy fill that doesn't get a signal until I reload the strategy or restart the application (only in automated execution. I also get issues where the strategy generates a fill but I do not get an order generated. I find myself missing trades more than I would like and I cannot figure out why. Could it be related to the fill logic? I am using "Strategy will fill non-historical orders only when the TradeManager reports them as filled" and only the "Wait for UROut confirmation before sending a subsequent entry order for the same signal to the market". All of these orders are market orders on the next bar (no intrabar order generation). Any help at all would be greatly appreciated.

If they are all market orders - not stop orders or limit orders, it should be fairly straightforward to diagnose.

Show a few examples that show the fill time on the strategy, and the Trade Manager messages tab which does not show the fill.

The restart issue could be if you use daily bars, and the settlement price is posted after the strategy calculates the code and generates order (based on last price traded).

Their could be multiple issues going on too.

Some examples could lead to solutions.

Follow me on Twitter
The following user says Thank You to kevinkdog for this post:
 
 
ShadowFox's Avatar
 ShadowFox 
CO/USA
 
Experience: Intermediate
Platform: TradeStation, Multicharts
Trading: Stocks, Futures
Posts: 129 since Jun 2020
Thanks Given: 70
Thanks Received: 157


Thanks Kevin! I will definitely look into the message log further when this happens. I find myself just manually managing a trade based on my strategy when I do not get filled which makes me feel like I need to babysit every second.

What about for issues where the strategy does not fill at all? Meaning the signal is never generated from the strategy to even fill an order. I have tested with having multiple charts up with one chart running the strategy in automation and the other with automation off just to see if one fills and not the other, and the non automated strategy works flawlessly. This happens a few times a week. The strategy will not fill until I reload the strategy on the automated chart or restart Tradestation. I assume this will show nothing in the message log as its like the strategy never fired the order. This is not a code issue as far as I can tell as it happens on every strategy I run and I do get a lot of orders generated.

Visit my NexusFi Trade Journal Started this thread
The following user says Thank You to ShadowFox for this post:
 
 kevinkdog   is a Vendor
 
Posts: 3,645 since Jul 2012
Thanks Given: 1,890
Thanks Received: 7,336


ShadowFox View Post
Thanks Kevin! I will definitely look into the message log further when this happens. I find myself just manually managing a trade based on my strategy when I do not get filled which makes me feel like I need to babysit every second.

What about for issues where the strategy does not fill at all? Meaning the signal is never generated from the strategy to even fill an order. I have tested with having multiple charts up with one chart running the strategy in automation and the other with automation off just to see if one fills and not the other, and the non automated strategy works flawlessly. This happens a few times a week. The strategy will not fill until I reload the strategy on the automated chart or restart Tradestation. I assume this will show nothing in the message log as its like the strategy never fired the order. This is not a code issue as far as I can tell as it happens on every strategy I run and I do get a lot of orders generated.

That is weird if you are running 2 identical charts, and the strategy fills in one, and not the other.

Try this an an experiment. First, delete the non-automated chart. Then, copy the automated one, and paste it right next to automated one. You will get an error saying 2nd one has automation disabled.

Then run both, and when you see a strategy fill on one or not the other, take a screenshot and post it.

I definitely had times where weird things have happened, but usually there was an explanation (in my case usually it is some snafu I created!)...

Follow me on Twitter
The following user says Thank You to kevinkdog for this post:
 
 
FastNCurious's Avatar
 FastNCurious 
saint louis MO
 
Experience: Intermediate
Platform: TradeStation
Trading: NQ, ES, YM, CL, GC
Posts: 149 since Oct 2017
Thanks Given: 95
Thanks Received: 177

I too have had completely missed trades on a daily basis. I am running roughly 60 strategies at a time and I have a friend who is running over 160+ strategies and TS seems to miss trades every day. Sometimes its an exit that doesn't get sent. Sometimes an entry. There doesn't seem to be any rhyme or reason to it. Our solution for now is to literally restart TS 5 times per day based on when we most likely will get missed trades. Usually it is around the open of the particular market being traded. Currently I am working on a solution to use MultiCharts to send the orders to another broker. When I was only running 10-20 strategies I would only sometimes get issues with missed orders but it seems once you get above 30 the missed orders are just too frequent. I wish there was an easy solution but so far I think this is just the limitation of a retail platform that tries to do it all (provide data, analyze the data, send signals, and fill orders) I will report back with any progress made in using MC instead of TS

Visit my NexusFi Trade Journal
 
 
Fu510n's Avatar
 Fu510n 
Suffield, CT
 
Experience: Advanced
Platform: MC, TS, Python, Rust
Broker: IB, IQFeed, TS, Kraken
Trading: ES, NQ, RTY, YM, CL, RB, 6E
Frequency: Several times daily
Duration: Seconds
Posts: 144 since Oct 2009
Thanks Given: 902
Thanks Received: 143

Have you dug into the "TradeManager - Messages" log at all? It shows (in gory detail) pretty much everything that was sent/received to TS timestamped to the second (why they haven't bothered including milliseconds like MultiCharts is beyond me). When I had to convert an EasyLanguage strategy to an indicator-equivalent version (to get proper tick-level/IOG support on Renko charts), I recall a lot of pain having to deal with partial fills (among other things) that the Messages log helped me to resolve.

This was all on TS 9.5 BTW - haven't bothered much with 10.x yet...

Follow me on Twitter
 
Duviuvi
Sydney NSW
 
Posts: 1 since Oct 2023
Thanks Given: 0
Thanks Received: 0

@ShadowFox - did you ever get to the bottom of your issue? Im finding a similar problem of missing strategy fills and the messenger is not showing any attempted trade but the strategy shows a historical position. Simple entries like buy on a monday is getting missed.


 




Last Updated on October 17, 2023


© 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