NinjaTrader Connect- Login Failed


Ever have a problem connecting to your data feed when using Ninjatrader while simultaneously using QuoteTracker? If you have quotes running on QT before you connect to your data feed on Ninjatrader you may get a connection login failed. In order to resolve this, stop the quotes in QT, then restart Ninjatrader and connect your data feed in Ninjatrader first, then start quotes in QuoteTracker.

NinjaTrader Debugging with Visual Studio 2008 Tutorial YouTube Video



You need to use a professional addition of Visual Studio or if you use the Express edition you will need to follow the steps outlined here-

www.ninjatrader-support2.com/vb/showthre ad.php?t=15671&highlight=visual+studio

If you have Visual Studio 2005 or 2008 Professional follow these steps-
Step 1- Enable Debugging in NT
Step 2- Bring up a chart and apply the indicators and strategies you want to debug (add your indicators and strategies to the chart)
Step 3- Open Visual Studio (2005 or 2008 Professional Edition)
Step 4- Go to "Tools" and select attach to process and select NinjaTrader.exe (the title should be a chart- ie ES 5min)
Step 5- In Visual Studio open file and go to your ninjatrader directory and select the ".cs" files you want to debug.
Step 6- Add Break points on your selected file (you must add breakpoints in order to debug)
Step 7- Go to your open NT chart and right click and select "reload ninjascript"
Step 8- Visual studio should now pop up going from "running" to debugging" mode and should be focused on your first breakpoint.
Step 9- Add watch points and press F5 to step through.

Remember when debugging that you need to have 1 chart up with the indicators and strategies you want applied to the chart and the debugger starts stepping through at the very first bar on the chart (not the last bar). It is helpful to "add watch" on selected "indicators" and "time" when debugging.

Zenfire Data Feed for NinjaTrader is faster than Interactive Brokers Youtube Video

HPT compares the two data feeds- ZenFire is notably faster giving tick by tick data where as IB gives 0.2 to 0.3 second snap shots of the data. ZenFire T&S is even faster if you change the timer refresh rate to FALSE by right clicking T&S and changing properties.

Starc Bands indicator for Ninja Trader

STARC Bands- These bands are around an SMA line, with the width calculated as the ATR (Average True Range) for the period.

Starcbands on Ninjatrader chart compared to quotetracker chart-
Indicator settings- To displace the bands back a fixed number of bars, go to the indicator settings.
Indicator code for Starc bands


Free Starc Bands indicator download for ninjatrader

ADX BollingerBandwidth CCI Indicator



I made a variation of the CCI indicator that also takes inputs from ADX and Bollingerbandwidth. You can change any of the parameters for the inputs. The indicator looks a lot like the CCI indicator except on big moves and trending moves, where the ADX and bollingerbandwidth give extra weight to the indicators movement.


I put all the indicators I make available to you in one folder at Mediafire.

Download HPT's Free NinjaTrader Indicators

Custom Trend Indicator for NinjaTrader



I haven't seen anyone else code this so here is my code. This code lets you input 2 look-back periods for the trend and 1 value for the reversal period. So for example, lets say you want to make sure that the current bar is Higher then 60 bars ago as well as 30 bars ago (2 look-back periods- Slow & Fast), and also the current bar has pulled back 3 bars and is continuing Up on the current bar (Reversal Bar). For this indicator I've used the MAX function so the MAX High or Low is found for the look-back periods. This indicator is an improved version of the original HPT 60min vs 7min trend. If you optimize the look-back periods you may find using a Slow period greater then 60 minutes as best(ie 160 period on 1min bars was found to be better optimal period for the Slow Period). You can play around with the Period settings to see which are best depending on the stock you or futures contract you trade using Ninja's Backtesting and Optimization reports.

(Please NOTE when setting the periods- SLOW PERIOD> FAST PERIOD> REVERSAL BAR or else you will get no arrows.)



I've decided to put all the indicators I make available to you in one folder at Mediafire.

Download HPT's Free NinjaTrader Indicators

The Next indicator I will be giving out is a custom Oscillator with inputs from ADX, BollingerBandwidth, and the CCI.