Go Back   NinjaTrader Support Forum > NinjaTrader 8 > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 06-19-2017, 11:29 AM   #16
NinjaTrader_Jim
NinjaTrader Customer Service
 
NinjaTrader_Jim's Avatar
 
Join Date: Nov 2016
Location: Denver, CO
Posts: 517
Thanks: 32
Thanked 112 times in 106 posts
Default

Hello WallSt,

I have only tested with Market Replay.

I will test this on Realtime data tomorrow so I can catch the 9:30 market open and report my findings.

Thanks in advance for your patience.
NinjaTrader_Jim is offline  
Reply With Quote
Old 06-19-2017, 01:16 PM   #17
WallSt.
Junior Member
 
Join Date: Mar 2017
Posts: 25
Thanks: 2
Thanked 0 times in 0 posts
Default

Ok, thanks Jim.

WallSt.
WallSt. is offline  
Reply With Quote
Old 06-20-2017, 07:50 AM   #18
NinjaTrader_Jim
NinjaTrader Customer Service
 
NinjaTrader_Jim's Avatar
 
Join Date: Nov 2016
Location: Denver, CO
Posts: 517
Thanks: 32
Thanked 112 times in 106 posts
Default

Hello WallSt.,

I have tested your script on today's open and I received prints for all of the SP500 stocks.

I would suggest to add more information to your prints to see the time the bars update, and to observe your task manager as well to see if the program is slowing down, and that print just has not been processed yet. Adding 500 data series did slow down my platform when I was downloading the data upon enabling the strategy.

I would also advise to troubleshoot your internet connection to make sure there are not any dropped packets. As NinjaTrader demands reliable data connections at a fast pace, we recommend to plugin directly to your router or modem with an Ethernet cable.

Additionally, please make sure you are on the latest version of NinjaTrader 8. (Release 7)

Please let me know if I can be of further help.
NinjaTrader_Jim is offline  
Reply With Quote
Old 06-20-2017, 08:35 AM   #19
WallSt.
Junior Member
 
Join Date: Mar 2017
Posts: 25
Thanks: 2
Thanked 0 times in 0 posts
Default

Thanks for testing it on your end Jim.

I will follow-up on your suggestions and hopefully get this thing working.

WallSt.
WallSt. is offline  
Reply With Quote
Old Yesterday, 08:38 AM   #20
WallSt.
Junior Member
 
Join Date: Mar 2017
Posts: 25
Thanks: 2
Thanked 0 times in 0 posts
Default

Hi Jim,

I noticed that the strategy was enabled/changed to a green color prior to IQ Feed’s Connection Manager – Number of symbols field - showing the total number of symbols (504). It changed green when that field showed only around 300 and then ended up printing for 370. Is this normal behavior when enabling a strategy or should it not turn green until that field shows the total number of symbols?

I added more information to my prints to show the time the bars update and for those 370 symbols the first bar time was correct. I plugged directly into the router but that didn’t seem to make any difference in how many symbols printed which is not all that surprising as I had already tested my WiFi prior to using NT and it is good for a 70 Mbps download speed which should be adequate for all but the most extreme market conditions. Today, I removed the Bars.IsFirstBarOfSession command from the script and simply printed the first update for each symbol. I gave it until 15 minutes into the session and still only 370 symbols printed so I find it doubtful that dropped packets are the issue as with 15 minutes of time and set to calculate on each tick that gives each symbol hundreds if not thousands of ticks to get one packet through and get a print off. As my prior output that I attached showed, even 10 symbols didn’t all get prints which also casts doubt on it being an internet bottleneck.

I am running on the latest version of NT, turned off the anti-virus, and excluded the NT folders from Windows search indexing. My computer is only 6 months old and has quad core processor, lots of RAM, SSD, etc.

I am beginning to think connections are not being made for all symbols between NT and the data feed and/or something is getting screwed up in the transition between states (I have been running the test script with 3 days of historical data loaded). Is there some way to troubleshoot these connections and/or change of states?

Regards,

WallSt.
Last edited by WallSt.; Yesterday at 08:41 AM.
WallSt. is offline  
Reply With Quote
Old Yesterday, 10:54 AM   #21
NinjaTrader_Jim
NinjaTrader Customer Service
 
NinjaTrader_Jim's Avatar
 
Join Date: Nov 2016
Location: Denver, CO
Posts: 517
Thanks: 32
Thanked 112 times in 106 posts
Default

Hello WallSt,

Thanks for the reply.

Could you test adding all of these symbols to a Market Analyzer to verify that you are getting data on all of these symbols and you are able to receive data for that many symbols? Please add an indicator as well so we can observe calculations made from the incoming data.

Here is a video describing the test: https://www.screencast.com/t/uNf3q8O2z

If I understand correctly, the IQFeed application is only allowing you to view data for 370 symbols?

Kinetick which is based on IQFeed, has symbol limitations for their accounts. Our test account allows us to test with 500 symbols. Judging from the IQFeed website, most accounts should allow for 500 symbols. I would also suggest to double check with IQFeed on the number of symbols you can view.

Here is where I found some information on IQFeed's symbol limits - http://www.iqfeed.net/index.cfm?disp...ction=services

If the above does not resolve your inquiry, I could provide you with the login credentials to our Kinetick account so you can test with our data provider. The account is refreshed everyday, so you would not be able to use it for very long. Please send me an email at platformsupport[at]ninjatrader[dot]com with the text "Attention Jim" and the thread URL the day you would like to test this, and I will be able to provide you the credentials for the account.

I look forward to assisting further.
Last edited by NinjaTrader_Jim; Yesterday at 10:59 AM.
NinjaTrader_Jim is offline  
Reply With Quote
Old Yesterday, 11:39 AM   #22
WallSt.
Junior Member
 
Join Date: Mar 2017
Posts: 25
Thanks: 2
Thanked 0 times in 0 posts
Default

Hi Jim,

I tested the symbols in Market Analyzer as you instructed and I am receiving data for all symbols.

I may not have explained myself properly in the prior post: the strategy changed to a green color when only around 300 symbols were showing as connected in the IQ Feed Connection Manager, within less than a minute after this all symbols showed as connected (this all occurred prior to market open). Even though all symbols showed as connected I still only received prints for about two-thirds of the symbols. My symbol limit with IQ Feed is 1000.

I would be interested in trying to run the test script with NT’s Kinetick account on market open so I will email you today and hopefully we can have that set-up for tomorrow’s open.

Thanks,

WallSt.
Last edited by WallSt.; Yesterday at 11:46 AM.
WallSt. is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why my stop didn´t execute? andriuking Platform Technical Support 8 08-22-2012 01:17 PM
Strategy Not trading in Live Simulation but trading on Market replay oliver1337 Platform Technical Support 6 08-13-2012 07:02 PM
Multi-DataSeries Indicator works differently in Market Replay SatChitAnanda Indicator Development 1 07-26-2012 03:32 AM
Does Print() works on live strategy? freewind General Development 8 06-15-2011 03:51 AM


All times are GMT -6. The time now is 02:47 AM.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content. Visit the CFTC resources for education regarding the industry and signs of fraud.