NexusFi: Find Your Edge


Home Menu

 





Creating a data feed connection provider for NT


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one rleplae with 23 posts (7 thanks)
    2. looks_two 33rdvirus with 7 posts (0 thanks)
    3. looks_3 KillerJukeBox with 6 posts (0 thanks)
    4. looks_4 sam028 with 5 posts (4 thanks)
      Best Posters
    1. looks_one Koepisch with 1 thanks per post
    2. looks_two zweistein with 1 thanks per post
    3. looks_3 sam028 with 0.8 thanks per post
    4. looks_4 rleplae with 0.3 thanks per post
    1. trending_up 29,264 views
    2. thumb_up 14 thanks given
    3. group 19 followers
    1. forum 55 posts
    2. attach_file 2 attachments




 
Search this Thread

Creating a data feed connection provider for NT

  #11 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

What a bummer....

I was able to create a small FIX server and bring the connection up.
(Logon message working and heartbeat message working...)

When i connect to IQfeed and then to the FIX server, both connecitons are up.

If i request a normal symbol then that works on IQfeed

When i request a symbol that is only defined for the FIX connection (TT) then the
request does not arrive in my FIX server and gives an invalid symbol error.

When i bring the IQfeed connection down, then the message comes in the FIX server.

That kind of invalidates my plan for having an IQfeed connection and next to it
my own synthetic data feed in parallel ... @Big Mike was right on that, doesn't work.


Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
26 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Tao te Trade: way of the WLD
22 thanks
My NQ Trading Journal
16 thanks
HumbleTraders next chapter
9 thanks
  #12 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

6 weeks later...

I was able to create my own synthetic data server and it provides now both historical and streaming data to Ninjatrader and my own trading engines. I have it also working on Ninjatrader 8.0 as there were some subtle differences in how they pull the data, that was a nice experience.

For the future I plan to start doing my developments in parallel on 7.0 and 8.0. While NT 7.0 stays the production environment, slowly getting up-to-speed in Nt 8.0

NT 7.0 and NT 8.0 and my own platform now concurrently connect to my data-server. No difference in update speed, the charts blink at the same moment.

I also noticed, if I do "wrong" things, it can make Ninjatrader 8.0 spin like a wheel and it will be difficult to bring it back under control. But that's only in a development environment. In that respect NT 7.0 seems to be a bit safer when you present it mall formatted information.

At the end i have chosen to write all data out to the DB and pull it back from the DB. The number of instruments is only a bit more than 100 and the speed is not critical, within a few seconds is perfectly acceptable.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #13 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,207
Thanks Received: 101,599



rleplae View Post
6 weeks later...

I was able to create my own synthetic data server and it provides now both historical and streaming data to Ninjatrader and my own trading engines. I have it also working on Ninjatrader 8.0 as there were some subtle differences in how they pull the data, that was a nice experience.

For the future I plan to start doing my developments in parallel on 7.0 and 8.0. While NT 7.0 stays the production environment, slowly getting up-to-speed in Nt 8.0

NT 7.0 and NT 8.0 and my own platform now concurrently connect to my data-server. No difference in update speed, the charts blink at the same moment.

I also noticed, if I do "wrong" things, it can make Ninjatrader 8.0 spin like a wheel and it will be difficult to bring it back under control. But that's only in a development environment. In that respect NT 7.0 seems to be a bit safer when you present it mall formatted information.

At the end i have chosen to write all data out to the DB and pull it back from the DB. The number of instruments is only a bit more than 100 and the speed is not critical, within a few seconds is perfectly acceptable.

Nicely done. There would be some uses for this, if you consider sharing it at some point in the future it may benefit some.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #14 (permalink)
 
GentleTrader's Avatar
 GentleTrader 
Rio de Janeiro - Brazil
 
Experience: Advanced
Platform: Sierra Chart
Broker: Stage5/IQFeed
Trading: ES
Posts: 85 since Jun 2009
Thanks Given: 7
Thanks Received: 47


rleplae View Post
6 weeks later...

I was able to create my own synthetic data server and it provides now both historical and streaming data to Ninjatrader and my own trading engines. I have it also working on Ninjatrader 8.0 as there were some subtle differences in how they pull the data, that was a nice experience.

For the future I plan to start doing my developments in parallel on 7.0 and 8.0. While NT 7.0 stays the production environment, slowly getting up-to-speed in Nt 8.0

NT 7.0 and NT 8.0 and my own platform now concurrently connect to my data-server. No difference in update speed, the charts blink at the same moment.

I also noticed, if I do "wrong" things, it can make Ninjatrader 8.0 spin like a wheel and it will be difficult to bring it back under control. But that's only in a development environment. In that respect NT 7.0 seems to be a bit safer when you present it mall formatted information.

At the end i have chosen to write all data out to the DB and pull it back from the DB. The number of instruments is only a bit more than 100 and the speed is not critical, within a few seconds is perfectly acceptable.

What kind of connection are you emulating? I tried once and gave up. I ended up implementing my own data feed in the open protocol created by SierraChart, called DTC. Working very nice, but I miss some 3rd party software I have on Ninjatrader. Any hint? The Ninjatrader guys keep saying the only way to get data is using the available connection types.

[]s
GentleTrader

Follow me on Twitter Reply With Quote
  #15 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


GentleTrader View Post
What kind of connection are you emulating? I tried once and gave up. I ended up implementing my own data feed in the open protocol created by SierraChart, called DTC. Working very nice, but I miss some 3rd party software I have on Ninjatrader. Any hint? The Ninjatrader guys keep saying the only way to get data is using the available connection types.

[]s
GentleTrader

I am using the IQfeed connector that is built-in to NinjaTrader.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #16 (permalink)
 
GentleTrader's Avatar
 GentleTrader 
Rio de Janeiro - Brazil
 
Experience: Advanced
Platform: Sierra Chart
Broker: Stage5/IQFeed
Trading: ES
Posts: 85 since Jun 2009
Thanks Given: 7
Thanks Received: 47


rleplae View Post
I am using the IQfeed connector that is built-in to NinjaTrader.

Does your software pretends to be IQFeed actual software? Is the comunication between Ninja and IQFeed made by sockets, even if it's local, or am I wrong? Does it use a special/proprietary protocol?

Follow me on Twitter Reply With Quote
  #17 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


GentleTrader View Post
What kind of connection are you emulating? I tried once and gave up. I ended up implementing my own data feed in the open protocol created by SierraChart, called DTC. Working very nice, but I miss some 3rd party software I have on Ninjatrader. Any hint? The Ninjatrader guys keep saying the only way to get data is using the available connection types.

[]s
GentleTrader


GentleTrader View Post
Does your software pretends to be IQFeed actual software? Is the comunication between Ninja and IQFeed made by sockets, even if it's local, or am I wrong? Does it use a special/proprietary protocol?

You are right, the proxymodule, pretends to be iQfeed and then goes out to the real IQfeed for the normal symbols, or to my data server for my private symbols.


Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #18 (permalink)
 gztanwei 
toronto
 
Experience: Beginner
Platform: NinjaTrader
Posts: 33 since Sep 2009
Thanks Given: 3
Thanks Received: 11


rleplae View Post
You are right, the proxymodule, pretends to be iQfeed and then goes out to the real IQfeed for the normal symbols, or to my data server for my private symbols.


very interesting , could you share some more about the proxy ??

Reply With Quote
  #19 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


gztanwei View Post
very interesting , could you share some more about the proxy ??

It is a program that listens on a TCP/IP port for an incoming request from NT.
It analyses that message and decides to forward that request to the left or to the right.
The answer that is received is then returned to NT.

It is very similar to any other proxy that is able to interpret the protocol.
a web proxy would do the same and block certain request based on the URL or serve the request from
it's cache if it already knows the answer. This is what is commonly known as a "proxy".

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #20 (permalink)
 gztanwei 
toronto
 
Experience: Beginner
Platform: NinjaTrader
Posts: 33 since Sep 2009
Thanks Given: 3
Thanks Received: 11



rleplae View Post
It is a program that listens on a TCP/IP port for an incoming request from NT.
It analyses that message and decides to forward that request to the left or to the right.
The answer that is received is then returned to NT.

It is very similar to any other proxy that is able to interpret the protocol.
a web proxy would do the same and block certain request based on the URL or serve the request from
it's cache if it already knows the answer. This is what is commonly known as a "proxy".

Understand the concept , but how can we Point IQFeed to my own Database source?? are we need to build another machine to be "IQFeed" Server ? I would like to do something similar , which Point I need to start ??

Reply With Quote




Last Updated on March 7, 2020


© 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