NexusFi: Find Your Edge


Home Menu

 





Bad Fills - NT8 and IB


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one UpTik with 8 posts (1 thanks)
    2. looks_two askerix with 3 posts (3 thanks)
    3. looks_3 sam028 with 2 posts (3 thanks)
    4. looks_4 ABCTG with 2 posts (2 thanks)
      Best Posters
    1. looks_one sam028 with 1.5 thanks per post
    2. looks_two askerix with 1 thanks per post
    3. looks_3 ABCTG with 1 thanks per post
    4. looks_4 Sandpaddict with 1 thanks per post
    1. trending_up 3,079 views
    2. thumb_up 12 thanks given
    3. group 6 followers
    1. forum 17 posts
    2. attach_file 2 attachments




 
Search this Thread

Bad Fills - NT8 and IB

  #1 (permalink)
 UpTik 
Lansing Michigan/USA
 
Experience: Beginner
Platform: NinjaTrader
Trading: NQ, ES, YM
Posts: 19 since Apr 2020
Thanks Given: 18
Thanks Received: 13

Hello fellow traders.
I’m having technical problems that involve NinjaTrader 8 and Interactive Brokers. I realize there are other posts regarding these companies. They mostly involve connectivity problems, whereas my issue is poor entry fills. But please feel free to move this to an open discussion.
I recently connected the latest version of NT 8 and IB’s TWS and Gateway (build 978.2c, as required by NT). Rithmic is my data provider. I’m using a five-lot ATM with trailing stops and tiered targets. Ever since I started paper trading, the entries have been wildly erratic. In the typical long scenario, 3 contracts might be filled at 13,900 (MNQ) and two filled at 13,013.50. Yes, 54 ticks higher! Flip this the other way for shorts. The only consistency is the number 54. The discrepancy is always 54 ticks. I’ve had hours of assistance from NT’s support, including 2 TeamViewer sessions. After they determined it was not on their side, I reached out to IB. So, has anyone experienced anything like this, or know someone who has?

Thanks.
UpTik

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
33 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
HumbleTraders next chapter
11 thanks
GFIs1 1 DAX trade per day journal
11 thanks
  #2 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


UpTik View Post
Hello fellow traders.
I’m having technical problems that involve NinjaTrader 8 and Interactive Brokers. I realize there are other posts regarding these companies. They mostly involve connectivity problems, whereas my issue is poor entry fills. But please feel free to move this to an open discussion.
I recently connected the latest version of NT 8 and IB’s TWS and Gateway (build 978.2c, as required by NT). Rithmic is my data provider. I’m using a five-lot ATM with trailing stops and tiered targets. Ever since I started paper trading, the entries have been wildly erratic. In the typical long scenario, 3 contracts might be filled at 13,900 (MNQ) and two filled at 13,013.50. Yes, 54 ticks higher! Flip this the other way for shorts. The only consistency is the number 54. The discrepancy is always 54 ticks. I’ve had hours of assistance from NT’s support, including 2 TeamViewer sessions. After they determined it was not on their side, I reached out to IB. So, has anyone experienced anything like this, or know someone who has?

Thanks.
UpTik

Check the Ninja trace files: when (with the millisecond timestamp) was executed the trades?

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:
  #3 (permalink)
 UpTik 
Lansing Michigan/USA
 
Experience: Beginner
Platform: NinjaTrader
Trading: NQ, ES, YM
Posts: 19 since Apr 2020
Thanks Given: 18
Thanks Received: 13


Hello sam028.
I sent the trace file and the log to NinjaTrader support and they didn't see any problems. Also, NinjaTrader's executions in the Control Panel perfectly matched each trade reported in TWS. So, the exact second two contracts were purchased at 13,900, three were purchased at 13,013.50. I usually expect to see slippage, but 54 ticks?????

Thanks,
UpTik

Started this thread Reply With Quote
  #4 (permalink)
 UpTik 
Lansing Michigan/USA
 
Experience: Beginner
Platform: NinjaTrader
Trading: NQ, ES, YM
Posts: 19 since Apr 2020
Thanks Given: 18
Thanks Received: 13

I tried to attach a screenshot, but I'm not sure I did it correctly :-(




Started this thread Reply With Quote
  #5 (permalink)
 askerix 
Zurich Switzerland
 
Experience: None
Platform: NT
Trading: Ukulele
Frequency: Never
Duration: Never
Posts: 60 since Mar 2011
Thanks Given: 554
Thanks Received: 62

have you tried entering with a stop-limit order, it seems you enter at market? you can (pre-)set the limit to the for you max acceptable slippage in the properties of chartrader, or just use the buy-Ask or buy-bid button in chart trader which also creates an limit order at the ask/bid which should avoid such bad fills.

hth
askerix

Reply With Quote
Thanked by:
  #6 (permalink)
 UpTik 
Lansing Michigan/USA
 
Experience: Beginner
Platform: NinjaTrader
Trading: NQ, ES, YM
Posts: 19 since Apr 2020
Thanks Given: 18
Thanks Received: 13

Hello askerix.

Thank you for for your suggestions. I'm waiting to hear back from Interactive Brokers' API Department. When I described over the phone what was happening, the support tech claimed he'd never seen anything like this. My uneducated guess is IB's API, (using TWS or Gateway), cannot handle ATM Strategy orders from NT8. If I place an order with no stops or targets, everything is fine. But when I select an ATM Strategy, even if its for one contract, I get that bogus fill. As I previously wrote, the bogus fills are not random. The ones I've monitored are usually 54 ticks from the expected entry price. It seems to me that's a coding glitch.

I've attached another screen shot that shows a bad fill when a trade was stopped out. In this instance, 4 contracts closed at the limit price, but one closed 55 ticks lower.

Thanks again for taking the time to write.

UpTik

Attached Thumbnails
Click image for larger version

Name:	Time 6.15.33 am.jpg
Views:	111
Size:	89.2 KB
ID:	311561  
Started this thread Reply With Quote
  #7 (permalink)
 askerix 
Zurich Switzerland
 
Experience: None
Platform: NT
Trading: Ukulele
Frequency: Never
Duration: Never
Posts: 60 since Mar 2011
Thanks Given: 554
Thanks Received: 62

sorry no clue, but please keep us posted about the explanation from IB!

just one more - you trade against the IB Demo account? otherwise there must be a wick for the candle visible up to your bad fill

cheers

Reply With Quote
Thanked by:
  #8 (permalink)
 UpTik 
Lansing Michigan/USA
 
Experience: Beginner
Platform: NinjaTrader
Trading: NQ, ES, YM
Posts: 19 since Apr 2020
Thanks Given: 18
Thanks Received: 13

askerix,
Nothing would please me more than to report that the problem has been solved
There is no long wick because all five contracts should have been stopped out at 13,806.25. NT simply put the lower price marker where IB indicated that contract was filled.

Have a great day!!

UpTik

Started this thread Reply With Quote
  #9 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

UpTik,

this could be caused by a bad tick in the data. You can check this by adding two additional charts and let them run side by side to your main chart - same resolution etc. just set one to bid and the other to ask data (you might even gain more information by using 1 tick charts, but this can be harder to analyze later). If you experience another of these fills, check the corresponding bid and ask chart bars. If you see a spike there, enabling the bad tick filter for realtime data in NT might help you.

I have seen a similar situation during my testing once, although in that case the simulated trading was solely based on the data feed and NT's simulated account and not connected to IB.

Edit: Seeing that you are observing the same fill prices in the TWS logs it seems the bad tick filtering in NT might not help here.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #10 (permalink)
 UpTik 
Lansing Michigan/USA
 
Experience: Beginner
Platform: NinjaTrader
Trading: NQ, ES, YM
Posts: 19 since Apr 2020
Thanks Given: 18
Thanks Received: 13


Hello ABCTG.
The Bid and Ask charts is a good idea. But I would think that if my Rithmic tick data was bad, I'd be getting spikes in my NT charts. That never happens. These 50+ tick aberrations only occur when IB reports the entry and stop-out prices for a trade. I've been paper trading this morning. So far, I haven't gotten these extreme fills with my ATM strategy trading only one contract. I'll test this throughout the day to see if it holds up. If it does, that would suggest IB's API can't handle a multiple-contract ATM Strategy.
I'll keep everyone posted!

Thanks for your help.

UpTik

Started this thread Reply With Quote
Thanked by:




Last Updated on April 19, 2021


© 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