Feed Ninja with my demo generator? - NinjaTrader Programming | futures io social day trading
futures io futures trading


Feed Ninja with my demo generator?
Updated: Views / Replies:967 / 7
Created: by blt31 Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Feed Ninja with my demo generator?

  #1 (permalink)
Trading Apprentice
Paris France
 
Futures Experience: Intermediate
Platform: Prorealtime
Favorite Futures: CFD on European Index
 
Posts: 3 since Oct 2013
Thanks: 0 given, 0 received

Feed Ninja with my demo generator?

Dear all,

I would like to know if it is possible to *simulate* a continuous live feed with quotes to Ninja, (assuming i write a program that produce/generate continuous some fake ticks produced by a random walk) ?

I'm already capable of generating fake data quotes/timestamp, my question is about how to plug it to Ninja so that it see/use it as a continuous live feed ?

Is it possible ? How should i do ?

I've also found some people that explain that "tcp/ip client server communication" may be possible with NT, by the way i didn't found any other information about what kind of network packets that may be sent to NT or what NT expected to receive...

Please notice that i really do want to plug *my own* data progammed live feed and *not use any replay* or demo account ! (for replay accound, unless it can be used in real time)

(i've already successfully imported some historical data inside NT from a text file, but what about if this text file is conunously growing. Or should it be send by a particular protocol ? which one ?)

(i hope that i do not have miss similar question here, i already have asket to The NT guys, but did not get much more help...)

(i'm in the process of buying Ninja to study it and do some backtests, i'm tired ot these other platforms, but i would not be able to afford having real account during this process, and having a 1 or 2 weeks demo won't be enough, also i want tp plug my own data collector to NT...)

thx for any insight or pointers to documentation,

best regards

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
NC, USA
 
Futures Experience: None
Platform: None Yet
Favorite Futures: Guitar
 
MrYou's Avatar
 
Posts: 403 since Jun 2011
Thanks: 618 given, 193 received



blt31 View Post
I'm already capable of generating fake data quotes/timestamp, my question is about how to plug it to Ninja so that it see/use it as a continuous live feed ?

For this purpose (fake data quotes) NinjaTrader has a builtin "Simulated Data Feed".


blt31 View Post
Please notice that i really do want to plug *my own* data progammed live feed and *not use any replay* or demo account ! (for replay accound, unless it can be used in real time)

For this purpose you would want to use NinjaTraders builtin "External Data Feed" API:

"This connection targets those traders who have programming experience and wish to create a market data link between their charting or custom application and NinjaTrader which allows them to use the full functionality of NinjaTrader simulator. Please refer to the Ask and Bid functions of the DLL Interface."

These features are available in the free version.

Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Paris France
 
Futures Experience: Intermediate
Platform: Prorealtime
Favorite Futures: CFD on European Index
 
Posts: 3 since Oct 2013
Thanks: 0 given, 0 received


MrYou View Post
For this purpose (fake data quotes) NinjaTrader has a builtin "Simulated Data Feed".

For this purpose you would want to use NinjaTraders builtin "External Data Feed" API:

"This connection targets those traders who have programming experience and wish to create a market data link between their charting or custom application and NinjaTrader which allows them to use the full functionality of NinjaTrader simulator. Please refer to the Ask and Bid functions of the DLL Interface."

These features are available in the free version.

Thak you for your replay, i get almost the same of the NT Team,

(for now i can not post links as i'm new to this forum, but you can find my thread @ their forums, same nickname)

BTW, i was hoping that someone here have more to say, may be done something approaching or even have a C# skeleton to share or even having some specifications of the stream that NT is expecting...

the DLL interface documentation is rather really really short on this subject ! (i found nothing valuable inside but i may be wrong)

Also, if i can produce and feed continuously data through "Simulated Data Feed" builtin, will be processed as a real live data feed ?


Last edited by blt31; October 7th, 2013 at 08:33 AM.
Reply With Quote
 
  #5 (permalink)
Elite Member
Denver, CO
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: NinjaTrader Brokerage
Favorite Futures: ES
 
NinjaTrader's Avatar
 
Posts: 1,260 since May 2010
Thanks: 153 given, 1,890 received


blt31 View Post
Thak you for your replay, i get almost the same of the NT Team,

(for now i can not post links as i'm new to this forum, but you can find my thread @ their forums, same nickname)

BTW, i was hoping that someone here have more to say, may be done something approaching or even have a C# skeleton to share or even having some specifications of the stream that NT is expecting...

the DLL interface documentation is rather really really short on this subject ! (i found nothing valuable inside but i may be wrong)

Also, if i can produce and feed continuously data through "Simulated Data Feed" builtin, will be processed as a real live data feed ?

You can check out the TradeStation Easy Language script that implements the External Data Feed for passing real-time data to NinjaTrader.

Finding this file and it's real-time usage is all explained here - NinjaTrader stock, futures and forex charting software and online trading platform. TradeStation Connection Guide.

Reply With Quote
 
  #6 (permalink)
Elite Member
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 3,340 since Dec 2012
Thanks: 11,283 given, 7,092 received


blt31 View Post
BTW, i was hoping that someone here have more to say, may be done something approaching or even have a C# skeleton to share or even having some specifications of the stream that NT is expecting...

Attached is a ZIP file of a simple Windows console client I created for my own use a couple of years ago, I apologise in advance large buckets for the really ugly code but is is a hacked hack of a test harness I created of a hack of a tcp demo and I never had time to rewrite it, you know the sort of story...

It establishes a simple tcp client/server connection, it being the client and expecting a normal tcpListener/tcpSocket type server at the other end to share a simple send-ack protocol between them. You really don't need raw network speed for this sort of application. You could write one the other way around if that was better for you, or use a completely different data link method.

For the NT DLL usage you are only really interested in the block of code in the str.Contains("run") section. It just accepts my own format ascii strings over the tcp connection and uses the NT DLL Bid/Ask/Last calls to feed price and volume data into Ninja. I also implemented my own timestamping mechanism to filter historical data otherwise Ninja puts it all in the last bar of any extant charts, pity.

I have not made use of any of the trade functions so can't help you there. I also optimised data transmission by effectively only sending price changes with accompanying aggregated volume, that worked well for me for minute based charts for many instruments. I haven't loaded it with high speed tick data so couldn't really comment on likely results, but at a guess wouldn't recommend this approach for that.

The strings are basically <instrument name><timestamp><ticksize><price><up volume><down volume> for live data, and an OHLC version for historical data. You may obviously want to use your own formats and approaches to transmission and insertion, as far as Ninja and the DLL are concerned the 'stream' is just a series of DLL calls.

I built it using the free VisualStudio2010 and although well ugly the resulting console application is stable and fast, I don't use it currently but ran it for about 18 months, often 24/7, maybe it can help you get started.

I have no idea what the likely future for the DLL interface is (i.e. with NT8 in mind), only that this approach worked well for me for now, although I would counsel that you can end up spending *way* too much time doing this sort of stuff.

Cheers

Travel Well
Attached Files
Register to download File Type: zip ForBit31.zip (4.7 KB, 57 views)
Reply With Quote
The following 2 users say Thank You to ratfink for this post:
 
  #7 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,355 given, 83,237 received

You can also find a very extensive discussion and advanced Windows app that generates random data based on learning source data:

https://futures.io/elite-circle/19156-random-data-generator.html

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #8 (permalink)
Trading Apprentice
Paris France
 
Futures Experience: Intermediate
Platform: Prorealtime
Favorite Futures: CFD on European Index
 
Posts: 3 since Oct 2013
Thanks: 0 given, 0 received

woaaaw great !

many thanks i'm gonna to study all these ! thank a lot !

best regards

Reply With Quote

Reply



futures io > > > > > Feed Ninja with my demo generator?

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
CQG demo Data feed problems Bau250 Reviews of Brokers and Data Feeds 11 January 18th, 2016 06:24 AM
Can I use a Ninja demo account to trade with a live web-based account? budfox NinjaTrader 23 July 16th, 2013 08:49 AM
FX-Currencies Demo Data feed for Ninja? emini_Holy_Grail Reviews of Brokers and Data Feeds 4 October 10th, 2011 03:54 AM
does anyone find ninja demo vastly innacurate anniebee321 Traders Hideout 11 September 9th, 2010 11:50 PM
Ninja Live/Demo vs Replay differences kandlekid NinjaTrader 2 December 2nd, 2009 03:48 AM


All times are GMT -4. The time now is 01:58 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-17 in 0.13 seconds with 20 queries on phoenix via your IP 54.226.113.250