NexusFi: Find Your Edge


Home Menu

 





About Ninja Trader and IB Securities


Discussion in NinjaTrader

Updated
    1. trending_up 862 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 1 attachments




 
Search this Thread

About Ninja Trader and IB Securities

  #1 (permalink)
LW11041104
Tokyo,Sapporo
 
Posts: 74 since Jan 2023
Thanks Given: 2
Thanks Received: 3

The chart graphs, prices, etc. seem to be different in real time between the Ninja Trader platform and IB Securities (TWS), how can this be resolved?

I have also asked about this issue on the Ninja Trader forum, but have not yet found a solution.

Attached Thumbnails
Click image for larger version

Name:	スクリーンショット 2023-01-23  Ninja Trade.jpg
Views:	61
Size:	182.0 KB
ID:	329315  
Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
Quantum physics & Trading dynamics
The Elite Circle
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103

You need to check the difference. You screenshot is not very helpful, because the charts only have two bars in common. The NinjaTrader daily chart has all daily bars hidden after December 3, while the TWS chart only displays daily bars after December 6. You have made an effort to make the comparison as difficult as possible.

Going back to the two common bars on your chart.

(1) Green bar: The two green bars look similar. Are they or are they not? So far the charts do not show, whether the problem only relates to the current bar or also to closed bars.

(2) The red bars are different. The current prices are the same. However, the NinjaTrader chart shows a higher opening price for the bar. In my opinion there are three possible explanations.

- NinjaTrader has received a false tick prior to the open of the exchange. The false tick is built into the daily bar and results in a false open.
- NinjaTrader uses different trading hours when compared to Interactive Brokers.
- NinjaTrader sometimes, when running for a long time without being disconnected, may build the last chart bar by including data from the prior highs and lows.
This is pretty rare, but I have seen such cases when loading data from IB. Please check whether the bar high at 474.00 is identical to the high of the daily bar around September 15.

Suggestions:

The case 3 is special, as the problem can not easily be reproduced. It can be fixed by reloading the chart. Eventually, you would need to delete the chart cache (Documents -> NinjaTrader 8 -> db -> cache).
For the other two cases, I would suggest to replace the daily bars with 1440 min bars just to compare them. Pay attention to the trading hours template selected for NinjaTrader.
Also, I would not use a numerical value for a charted instruments, but include letters. 4397 is pretty odd for an instrument name.

Does the data charted with NinjaTrader use the same source? Is NinjaTrader connected to IB for loading data or does it come from a different source? What the hell is TSEJ?

Reply With Quote
Thanked by:
  #3 (permalink)
LW11041104
Tokyo,Sapporo
 
Posts: 74 since Jan 2023
Thanks Given: 2
Thanks Received: 3


Thank you for your reply.

My apologies.
I think that was the only screenshot of the 4397 product name, but I found a video and I am attaching the link.
I would appreciate it if you could check it again from around 3 minutes 40 seconds.
Thank you very much for your time.

https://www.screencast.com/t/piXxv5xNy9X


Yes, the historical bars on the NInja Trader chart seem to all match the TWS chart graph and prices.

However, if the Ninja Trader platform is launched before the market starts and the market starts with TWS connected and waiting, there is an issue like this one.
And even during real time, if you reload, it seems to match TWS.

Also, here are the bars around September 15 for the 4397 commodity name.

Sept. 14 High: 459 yen
Sept. 15 High: 475 yen
September 16 High: 459 yen


>Case 3 is a special problem that cannot be easily reproduced. It can be fixed by reloading the chart.

Is it possible to reload only once, and then over time the problem will no longer occur with 4397 or any other trade name?


>Also, I would not use a numerical value for a charted instrument, but include letters. 4397 is pretty odd for an instrument name.

For TSEJ data (Tokyo Stock Exchange), in order to get
It seems that you need to set it up as posted here in the Ninja Trader forum.

https://forum.ninjatrader.com/forum/ninjatrader-8/platform-technical-support-aa/100135-ib-symbol-mapping-for-tokyo-stock-%20exchange



>Does the data charted with NinjaTrader use the same source? Is NinjaTrader connected to IB for loading data or does it come from a different source? What the hell is TSEJ?

Ninja Tarder appears to receive data from IB Securities and display it on the chart.
TSEJ is the Tokyo Stock Exchange.

https://www.jpx.co.jp/english/

Below is a link to my previous post on the Ninja Tarder forum regarding this issue.

https://forum.ninjatrader.com/forum/ninjatrader-8/platform-technical-support-aa/1224962-price-data-differs-from-that-%20reflected-in-real-time

Reply With Quote
  #4 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


LW11041104 View Post
I think that was the only screenshot of the 4397 product name, but I found a video and I am attaching the link.
I would appreciate it if you could check it again from around 3 minutes 40 seconds.
Thank you very much for your time.

https://www.screencast.com/t/piXxv5xNy9X

I think it looks like a bug of the adapter that connects NinjaTrader to Interactive Brokers (could be on either side of the adapter, that is NT or IB).



LW11041104 View Post
For TSEJ data (Tokyo Stock Exchange), in order to get
It seems that you need to set it up as posted here in the Ninja Trader forum.

https://forum.ninjatrader.com/forum/ninjatrader-8/platform-technical-support-aa/100135-ib-symbol-mapping-for-tokyo-stock-%20exchange

You may select any name for the stock that has not yet been used.

Reply With Quote
  #5 (permalink)
LW11041104
Tokyo,Sapporo
 
Posts: 74 since Jan 2023
Thanks Given: 2
Thanks Received: 3

Thank you for your reply.

Sorry, some of the links did not seem to be working, so I am attaching them again.


https://forum.ninjatrader.com/forum/ninjatrader-8/platform-technical-support-aa/1224962-price-data-differs-from-that-reflected-in-real-time



Quoting 
You may select any name for the stock that has not yet been used.

You were talking about the names of the instruments.

I had thought that you were referring to the setting of the instruments

https://forum.ninjatrader.com/forum/ninjatrader-8/platform-technical-support-aa/100135-ib-symbol-mapping-for-tokyo-stock-exchange

Reply With Quote




Last Updated on January 30, 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